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

Rollup of 8 pull requests #129665

Merged
merged 36 commits into from
Aug 27, 2024
Merged

Rollup of 8 pull requests #129665

merged 36 commits into from
Aug 27, 2024

Commits on Aug 25, 2024

  1. Configuration menu
    Copy the full SHA
    5412499 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    21dd88f View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. Fix tidy

    compiler-errors committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    56d8611 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    38e62b9 View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. Configuration menu
    Copy the full SHA
    e81fad2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d607cfb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2b56212 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5fd503a View commit details
    Browse the repository at this point in the history
  5. Add warn(unreachable_pub) to rustc_expand.

    Plus a tiny bit of reformatting.
    nnethercote committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    df5fbf0 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    0d8d05c View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a510813 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    fa18140 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    bffa224 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5acf4e7 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3aae994 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7fc0444 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    969f970 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    d054835 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    37becf7 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    46fe09f View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    6887927 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    a941a4b View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    6c84c55 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    f102841 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    e7f1922 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    22cdd63 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    ab7b03e View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    ab4a743 View commit details
    Browse the repository at this point in the history
  25. Rollup merge of rust-lang#129507 - RalfJung:per-fn-const_precise_live…

    …_drops, r=wesleywiser
    
    make it possible to enable const_precise_live_drops per-function
    
    This makes const_precise_live_drops work with rustc_allow_const_fn_unstable so that we can stabilize individual functions that rely on const_precise_live_drops.
    
    The goal is that we can use that to stabilize some of rust-lang#67441 without having to stabilize const_precise_live_drops.
    matthiaskrgr authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    849c240 View commit details
    Browse the repository at this point in the history
  26. Rollup merge of rust-lang#129581 - RalfJung:exit, r=joshtriplett

    exit: explain our expectations for the exit handlers registered in a Rust program
    
    This documents the position of ``@Amanieu`` and others in rust-lang#126600: a library with an atexit handler that destroys state that other threads could still be working on is buggy. We do not consider it acceptable for a library to say "you must call the following cleanup function before exiting from `main` or calling `exit`". I don't know if this is established ``@rust-lang/libs-api``  consensus so I presume this will have to go through FCP.
    
    Given that Rust supports concurrency, I don't think there is any way to write a sound Rust wrapper around a library that has such a required cleanup function: even if we made `exit` unsafe, and the Rust wrapper used the scope-with-callback approach to ensure it can run cleanup code before returning from the wrapper (like `thread::scope`), one could still call this wrapper in a second thread and then return from `main` while the wrapper runs. Making this sound would require `std` to provide a way to "block" returning from `main`, so that while the wrapper runs returning from `main` waits until the wrapper is done... that just doesn't seem feasible.
    
    The `exit` docs do not seem like the best place to document this, but I also couldn't think of a better one.
    matthiaskrgr authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    6ab1805 View commit details
    Browse the repository at this point in the history
  27. Rollup merge of rust-lang#129634 - compiler-errors:tidy-2024, r=alber…

    …tlarsan68
    
    Fix tidy to allow `edition = "2024"` in `Cargo.toml`
    
    Needed to upgrade to edition 2024 eventually.
    matthiaskrgr authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    df9c87c View commit details
    Browse the repository at this point in the history
  28. Rollup merge of rust-lang#129635 - compiler-errors:unsafe-blocks, r=s…

    …pastorino
    
    Use unsafe extern blocks throughout the compiler
    
    Making this change in preparation for edition 2024.
    
    r? spastorino
    matthiaskrgr authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    3299e30 View commit details
    Browse the repository at this point in the history
  29. Rollup merge of rust-lang#129645 - beetrees:fix-float-docs, r=tgross35

    Fix typos in floating-point primitive type docs
    
    Fixes a few typos. Also reflows the text of a couple of paragraphs in the source code to the standard line width to make the source easier to read (will have no effect on the rendered documentation).
    matthiaskrgr authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    0249125 View commit details
    Browse the repository at this point in the history
  30. Rollup merge of rust-lang#129648 - nnethercote:unreachable_pub-2, r=U…

    …rgau
    
    More `unreachable_pub`
    
    Add `unreachable_pub` checking to some more compiler crates. A follow-up to rust-lang#126013.
    
    r? ``@Urgau``
    matthiaskrgr authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    489eb23 View commit details
    Browse the repository at this point in the history
  31. Rollup merge of rust-lang#129649 - RalfJung:unadjusted-abi-mismatch, …

    …r=petrochenkov
    
    ABI compat check: detect unadjusted ABI mismatches
    matthiaskrgr authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    5e226dd View commit details
    Browse the repository at this point in the history
  32. Rollup merge of rust-lang#129652 - RalfJung:ptr-to-ref, r=traviscross

    fix Pointer to reference conversion docs
    
    The aliasing rules documented in rust-lang#128157 are wrong, this fixes them.
    matthiaskrgr authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    ac0cc70 View commit details
    Browse the repository at this point in the history