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 #127657

Closed
wants to merge 30 commits into from

Commits on Jun 21, 2024

  1. On target_os = "linux", ensure that only one Rust thread calls `lib…

    …c::exit` or returns from `main`.
    zachs18 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    e71d06b View commit details
    Browse the repository at this point in the history
  2. fix rustdoc URL

    zachs18 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    bff3531 View commit details
    Browse the repository at this point in the history
  3. Don't perform mitigation for thread-unsafe libc::exit under Miri.

    1. Miri's exit is thread-safe
    2. Miri doesn't (yet) support `libc::gettid`, used in the implementation of the mitigation on Linux.
    zachs18 committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    c36fdeb View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. Configuration menu
    Copy the full SHA
    31851d4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1a05cb2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7c3673f View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Configuration menu
    Copy the full SHA
    5e83faf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    897fb6c View commit details
    Browse the repository at this point in the history
  3. Remove Miri special-case

    zachs18 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    b512608 View commit details
    Browse the repository at this point in the history
  4. Move unique_thread_exit call to lang_start_internal so it is not in a…

    … generic function, and wrap it in `catch_unwind`
    zachs18 committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    b4149c6 View commit details
    Browse the repository at this point in the history
  5. CFI: Support provided methods on traits

    Provided methods currently don't get type erasure performed on them
    because they are not in an `impl` block. If we are instantiating a
    method that is an associated item, but *not* in an impl block, treat it
    as a provided method instead.
    maurer committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    81b1f92 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Fix import suggestion ice

    chenyukang committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    fe5581d View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. Update library/std/src/sys/pal/common/exit_guard.rs

    Co-authored-by: Ralf Jung <[email protected]>
    zachs18 and RalfJung authored Jul 5, 2024
    Configuration menu
    Copy the full SHA
    9de76e3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a609370 View commit details
    Browse the repository at this point in the history
  3. Attempt to fix CI

    zachs18 committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    5db1655 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2024

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

Commits on Jul 8, 2024

  1. Attempt to fix CI

    zachs18 authored Jul 8, 2024
    Configuration menu
    Copy the full SHA
    8bcbab5 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    87856c4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a3ef94e View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

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

Commits on Jul 12, 2024

  1. Configuration menu
    Copy the full SHA
    843f5dd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bd135e4 View commit details
    Browse the repository at this point in the history
  3. Rollup merge of rust-lang#126502 - cuviper:dump-mir-exclude-alloc-byt…

    …es, r=estebank
    
    Ignore allocation bytes in some mir-opt tests
    
    This adds `rustc -Zdump-mir-exclude-alloc-bytes` to skip writing allocation bytes in MIR dumps, and applies it to tests that were failing on s390x due to its big-endian byte order.
    
    Fixes rust-lang#126261
    matthiaskrgr authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    d18af83 View commit details
    Browse the repository at this point in the history
  4. Rollup merge of rust-lang#126606 - zachs18:patch-2, r=joboet

    Guard against calling `libc::exit` multiple times on Linux.
    
    Mitigates (but does not fix) rust-lang#126600 by ensuring only one thread which calls Rust `exit` actually calls `libc::exit`, and all other callers of Rust `exit` block.
    matthiaskrgr authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    cc0a918 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#126922 - asquared31415:asm_binary_label, r=…

    …estebank
    
    add lint for inline asm labels that look like binary
    
    fixes rust-lang#94426
    
    Due to a bug/feature in LLVM, labels composed of only the digits `0` and `1` can sometimes be confused with binary literals, even if a binary literal would not be valid in that position.
    
    This PR adds detection for such labels and also as a drive-by change, adds a note to cases such as `asm!(include_str!("file"))` that the label that it found came from an expansion of a macro, it wasn't found in the source code.
    
    I expect this PR to upset some people that were using labels `0:` or `1:` without issue because they never hit the case where LLVM got it wrong, but adding a heuristic to the lint to prevent this is not feasible - it would involve writing a whole assembly parser for every target that we have assembly support for.
    
    [zulip discussion](https://rust-lang.zulipchat.com/#narrow/stream/238009-t-compiler.2Fmeetings/topic/.5Bweekly.5D.202024-06-20/near/445870628)
    
    r? `@estebank`
    matthiaskrgr authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    1d7d63c View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#127295 - maurer:default-impl-cfi, r=estebank

    CFI: Support provided methods on traits
    
    Provided methods currently don't get type erasure performed on them because they are not in an `impl` block. If we are instantiating a method that is an associated item, but *not* in an impl block, treat it as a provided method instead.
    matthiaskrgr authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    d401c47 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#127310 - chenyukang:yukang-fix-suggest-impo…

    …rt-ice, r=estebank
    
    Fix import suggestion ice
    
    Fixes rust-lang#127302
    
    rust-lang#127302 only crash in edition 2015
    rust-lang#120074 can only reproduced in edition 2021
    so I added revisions in test file.
    matthiaskrgr authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    eb85988 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#127535 - spastorino:unsafe_code-unsafe_exte…

    …rn_blocks, r=oli-obk
    
    Fire unsafe_code lint on unsafe extern blocks
    
    Fixes rust-lang#126738
    matthiaskrgr authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    58ceb36 View commit details
    Browse the repository at this point in the history
  9. Rollup merge of rust-lang#127631 - compiler-errors:yeet-fully-norm, r…

    …=lcnr
    
    Remove `fully_normalize`
    
    Yeet this function and replace it w/ some `ObligationCtxt` instead. It wasn't called very often anyways.
    
    r? lcnr
    matthiaskrgr authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    2dc3d73 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#127632 - compiler-errors:precise-capturing-…

    …rustdoc, r=fmease
    
    Implement `precise_capturing` support for rustdoc
    
    Implements rustdoc (+json) support for local (i.e. non-cross-crate-inlined) RPITs with `use<...>` precise capturing syntax.
    
    Tests kinda suck. They're really hard to write 😰
    
    r? `@fmease` or re-roll if you're too busy!
    also cc `@aDotInTheVoid` for the json side
    
    Tracking:
    * rust-lang#127228 (comment) (not fully fixed for cross-crate-inlined opaques)
    * rust-lang#123432
    matthiaskrgr authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    d15fdf4 View commit details
    Browse the repository at this point in the history