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

Support #[global_allocator] without the allocator shim #86844

Merged
merged 14 commits into from
May 25, 2023

Commits on May 11, 2023

  1. Configuration menu
    Copy the full SHA
    79fa6ce View commit details
    Browse the repository at this point in the history
  2. Don't use an allocator shim for #[global_allocator]

    This makes it possible to use liballoc/libstd in combination with
    `--emit obj` if you use `#[global_allocator]`. Making it work for the
    default libstd allocator would require weak functions, which are not
    well supported on all systems.
    bjorn3 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    4ce2066 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    6ba7c5d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    145b057 View commit details
    Browse the repository at this point in the history
  5. Prevent insta-stable no alloc shim support

    You will need to add the following as replacement for the old __rust_*
    definitions when not using the alloc shim.
    
        #[no_mangle]
        static __rust_no_alloc_shim_is_unstable: u8 = 0;
    bjorn3 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    66982a3 View commit details
    Browse the repository at this point in the history
  6. Add test

    bjorn3 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    8ea28a4 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9506011 View commit details
    Browse the repository at this point in the history
  8. Fix fs miri test on AArch64

    bjorn3 committed May 11, 2023
    1 Configuration menu
    Copy the full SHA
    efb9c30 View commit details
    Browse the repository at this point in the history
  9. Improve miri comments

    bjorn3 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    568deb7 View commit details
    Browse the repository at this point in the history
  10. Fix review comments

    Co-authored-by: Ralf Jung <[email protected]>
    bjorn3 and RalfJung committed May 11, 2023
    Configuration menu
    Copy the full SHA
    ffd8cb8 View commit details
    Browse the repository at this point in the history
  11. Fix test

    bjorn3 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    34f6a83 View commit details
    Browse the repository at this point in the history
  12. Fix no-alloc-shim test on MSVC

    bjorn3 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    8ace03e View commit details
    Browse the repository at this point in the history
  13. Ignore test on MSVC for now

    I can't figure out how to link with the MSVC toolchain
    bjorn3 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    3082865 View commit details
    Browse the repository at this point in the history
  14. Bless miri tests

    bjorn3 committed May 11, 2023
    Configuration menu
    Copy the full SHA
    33d9b58 View commit details
    Browse the repository at this point in the history