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 15 pull requests #132551

Closed
wants to merge 37 commits into from

Commits on Oct 8, 2024

  1. Add LowerExp and UpperExp implementations

    Mark the new fmt impls with the correct rust version
    
    Clean up the fmt macro and format the tests
    rick-de-water committed Oct 8, 2024
    Configuration menu
    Copy the full SHA
    fead1d5 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2024

  1. Configuration menu
    Copy the full SHA
    9fe9041 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2024

  1. Configuration menu
    Copy the full SHA
    720d618 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    34432f7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5266623 View commit details
    Browse the repository at this point in the history
  4. make codegen help output more consistent

    The output of `rustc -C help` generally has one option per line. There was one
    exception because of a (presumably) forgotten line continuation escape.
    senekor committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    8837fc7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    afe1902 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f341a19 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b919675 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    82f8b8f View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c7b07d5 View commit details
    Browse the repository at this point in the history
  10. PassWrapper: adapt for llvm/llvm-project@5445edb5d

    As with ab5583e, we had been explicitly
    passing defaults whose type have changed. Rather than do an ifdef, we
    simply rely on the defaults.
    
    @rustbot label: +llvm-main
    durin42 committed Nov 2, 2024
    Configuration menu
    Copy the full SHA
    c613122 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    16394e9 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    7745b06 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2024

  1. Configuration menu
    Copy the full SHA
    586766e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb0cd56 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4046e36 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    31cbde0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ab6994f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1aae8b9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    721787c View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8ed8f22 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#129329 - eduardosm:rc-from-mut-slice, r=dto…

    …lnay
    
    Implement `From<&mut {slice}>` for `Box/Rc/Arc<{slice}>`
    
    ACP: rust-lang/libs-team#424
    
    New API:
    
    ```rust
    impl<T: Clone> From<&mut [T]> for Box<[T]>
    impl From<&mut str> for Box<str>
    impl From<&mut CStr> for Box<CStr>
    impl From<&mut OsStr> for Box<OsStr>
    impl From<&mut Path> for Box<Path>
    
    impl<T: Clone> From<&mut [T]> for Rc<[T]>
    impl From<&mut str> for Rc<str>
    impl From<&mut CStr> for Rc<CStr>
    impl From<&mut OsStr> for Rc<OsStr>
    impl From<&mut Path> for Rc<Path>
    
    impl<T: Clone> From<&mut [T]> for Arc<[T]>
    impl From<&mut str> for Arc<str>
    impl From<&mut CStr> for Arc<CStr>
    impl From<&mut OsStr> for Arc<OsStr>
    impl From<&mut Path> for Arc<Path>
    ```
    
    Since they are trait implementations, I think these are insta-stable.
    
    As mentioned in rust-lang/libs-team#424 (comment), a crater run might be needed.
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    34bd495 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#131377 - rick-de-water:nonzero-exp, r=dtolnay

    Add LowerExp and UpperExp implementations to NonZero
    
    Adds `LowerExp` and `UpperExp` trait implementations to `NonZero`, as discussed in rust-lang/libs-team#458.
    
    I had to modify the macro to mark the new impls with a different rust version. Let me know if this is the right way to do it (first timer here!)
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    68920c9 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#132275 - compiler-errors:deref-effects, r=f…

    …ee1-dead
    
    Register `~const` preds for `Deref` adjustments in HIR typeck
    
    This doesn't *do* anything yet, since `Deref` and `DerefMut` aren't constified, and we explicitly don't error on calling non-const trait methods in HIR yet -- presumably that will wait until std is re-constified. But I'm confident this logic is correct, and this (afaict?) is the only major hole left in enforcing `~const` in HIR typeck.
    
    r? fee1-dead
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    ffc2382 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#132393 - zedddie16:issue-131865-fix, r=tgro…

    …ss35
    
    Docs: added brief colon explanation
    
    rust-lang#131865
    (this is my first attempt at contributing, feedback is welcome)
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    b5f7956 View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#132437 - Zalathar:inline-mixed-regression, …

    …r=jieyouxu
    
    coverage: Regression test for inlining into an uninstrumented crate
    
    Regression test for rust-lang#132395, after I was able to figure out a simple way to reproduce it. See also rust-lang#132436.
    
    In addition to confirming that there is no ICE, this test also demonstrates that the affected code is undercounted, because executing the inlined copy doesn't increment coverage counters.
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    731cca7 View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#132499 - RalfJung:unicode_data.rs, r=tgross35

    unicode_data.rs: show command for generating file
    
    rust-lang#131647 made this an easily runnable tool, now we just have to mention that in the comment. :)
    
    Fixes rust-lang#131640.
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    cc193c8 View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#132503 - RalfJung:const-hash-map, r=Amanieu

    better test for const HashMap; remove const_hash leftovers
    
    The existing `const_with_hasher` test is kind of silly since the HashMap it constructs can never contain any elements. So this adjusts the test to construct a usable HashMap, which is a bit non-trivial since the default hash builder cannot be built in `const`. `BuildHasherDefault::new()` helps but is unstable (rust-lang#123197), so we also have a test that does not involve that type.
    
    The second commit removes the last remnants of rust-lang#104061, since they aren't actually useful -- without const traits, you can't do any hashing in `const`.
    
    Cc ```@rust-lang/libs-api``` ```@rust-lang/wg-const-eval```
    Closes rust-lang#104061
    Related to rust-lang#102575
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    7700920 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#132520 - matthiaskrgr:knobu, r=jieyouxu

    NFC add known bug nr to test
    
    r? `````@jieyouxu`````
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    32f785f View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#132522 - senekor:consistenst-codegen-help, …

    …r=compiler-errors
    
    make codegen help output more consistent
    
    The output of `rustc -C help` generally has one option per line. There was one exception because of a (presumably) forgotten line continuation escape.
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    ff53426 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#132523 - ranger-ross:test-issue-117446, r=c…

    …ompiler-errors
    
    Added regression test for generics index out of bounds
    
    Added a regression test for  rust-lang#117446
    This ICE was fixed in Rust 1.75 but a regression test was never added.
    
    This PR adds a UI test with a reduced version of the original bug report that does not rely on external crates.
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    9f7fb6b View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#132528 - compiler-errors:fallback-sugg-opt,…

    … r=jieyouxu
    
    Use `*_opt` typeck results fns to not ICE in fallback suggestion
    
    Self-explanatory. Fixes rust-lang#132517.
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    78cf1b8 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#132537 - durin42:llvm-20-prelinklto, r=DianQK

    PassWrapper: adapt for llvm/llvm-project@5445edb5d
    
    As with ab5583e, we had been explicitly passing defaults whose type have changed. Rather than do an ifdef, we simply rely on the defaults.
    
    ``@rustbot`` label: +llvm-main
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    4dd3e5f View commit details
    Browse the repository at this point in the history
  21. Rollup merge of rust-lang#132540 - compiler-errors:gc, r=calebcartwright

    Do not format generic consts
    
    We introduced **nightly support** for generic const items in rust-lang#113522, but formatting of consts was not modified. Making them format *correctly* is hard, so let's just bail formatting them so we don't accidentally strip their generics and where clauses. This is essentially no-op formatting for generic const items.
    
    r? ```@calebcartwright``` or ```@ytmimi```
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    881a8fb View commit details
    Browse the repository at this point in the history
  22. Rollup merge of rust-lang#132543 - cyrgani:master, r=compiler-errors

    add and update some crashtests
    
    Adds tests for rust-lang#126268 and rust-lang#132126, updates it for rust-lang#131050.
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    f04c1d6 View commit details
    Browse the repository at this point in the history
  23. Rollup merge of rust-lang#132550 - workingjubilee:rustc-abi-selects-b…

    …orrowck-for-mono-sans, r=compiler-errors
    
    compiler: Continue introducing rustc_abi to the compiler
    
    Some crates have not heard of rustc_abi before, so arrange introductions.
    
    Encourage some crates to go further and leave rustc_target behind: it was no good for them.
    workingjubilee authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    eb2185c View commit details
    Browse the repository at this point in the history