Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn #[global_allocator] into a regular attribute macro #62735

Merged
merged 6 commits into from
Jul 26, 2019

Commits on Jul 24, 2019

  1. Configuration menu
    Copy the full SHA
    a93fdfe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4330241 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    76b1ffa View commit details
    Browse the repository at this point in the history
  4. syntax_ext: Improve and simplify code generated by #[global_allocator]

    Instead of
    ```
    mod allocator_abi { /* methods */ }
    ```
    we now generate
    ```
    const _: () = { /* methods */ }
    ```
    and use `std_path` for paths referring to standard library entities.
    
    This way we no longer need to generate `use` and `extern crate` imports, and `#[global_allocator]` starts working inside unnamed blocks.
    petrochenkov committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    bf8fc8a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6e4f161 View commit details
    Browse the repository at this point in the history
  6. Fix rebase

    petrochenkov committed Jul 24, 2019
    Configuration menu
    Copy the full SHA
    a0c2c64 View commit details
    Browse the repository at this point in the history