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 9 pull requests #120534

Closed
wants to merge 23 commits into from

Commits on Jan 30, 2024

  1. Configuration menu
    Copy the full SHA
    7bdf705 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a97ff2a View commit details
    Browse the repository at this point in the history
  3. Mark "unused binding" suggestion as maybe incorrect

    Ignoring unused bindings should be a determination made by a human, `rustfix` shouldn't auto-apply the suggested change.
    
    Fix rust-lang#54196.
    estebank committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    8ebd47e View commit details
    Browse the repository at this point in the history

Commits on Jan 31, 2024

  1. Configuration menu
    Copy the full SHA
    15b4734 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    40402cb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ee2cddd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7ea4dbb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8eb48b4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    8d31a53 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    f7531f1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a6b1e43 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    28f250d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d31905c View commit details
    Browse the repository at this point in the history
  11. Correct paths for hexagon-unknown-none-elf platform doc

    Update the library paths to correctly refer to libdemo{1,2}_hexagon
    and switch to the release build instead.
    
    Update references to libstandalone to the specific G0/PIC archive instead.
    androm3da committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    647a453 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#120470 - estebank:issue-54196, r=compiler-e…

    …rrors
    
    Mark "unused binding" suggestion as maybe incorrect
    
    Ignoring unused bindings should be a determination made by a human, `rustfix` shouldn't auto-apply the suggested change.
    
    Fix rust-lang#54196.
    matthiaskrgr committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    6090c3c View commit details
    Browse the repository at this point in the history
  13. Rollup merge of rust-lang#120484 - Teapot4195:issue-120480-fix, r=com…

    …piler-errors
    
    Avoid ICE when is_val_statically_known is not of a supported type
    
    2 ICE with 1 stone!
    1. Implement `llvm.is.constant.ptr` to avoid first ICE in linked issue.
    2. return `false` when the argument is not one of `i*`/`f*`/`ptr` to avoid second ICE.
    
    fixes rust-lang#120480
    matthiaskrgr committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    ea3f64a View commit details
    Browse the repository at this point in the history
  14. Rollup merge of rust-lang#120516 - Nadrieril:cleanup-impls, r=compile…

    …r-errors
    
    pattern_analysis: cleanup manual impls
    
    rust-lang#120420 introduced some unneeded manual impls. I remove them here.
    
    r? `@Nilstrieb`
    matthiaskrgr committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    c4da12a View commit details
    Browse the repository at this point in the history
  15. Rollup merge of rust-lang#120517 - Nadrieril:lower-never-as-wildcard,…

    … r=compiler-errors
    
    never patterns: It is correct to lower `!` to `_`.
    
    This is just a comment update but a non-trivial one: it is correct to lower `!` patterns as `_`. The reasoning is that `!` matches all the possible values of the type, since the type is empty. Moreover, we do want to warn that the `Err` is redundant in:
    ```rust
    match x {
      !,
      Err(!),
    }
    ```
    which is consistent with `!` behaving like a wildcard.
    
    I did try to introduce `Constructor::Never` and it ended up needing to behave exactly like `Constructor::Wildcard`.
    
    r? `@compiler-errors`
    matthiaskrgr committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    08c7f26 View commit details
    Browse the repository at this point in the history
  16. Rollup merge of rust-lang#120528 - GnomedDev:atomicu8-backtrace-style…

    …, r=cuviper
    
    Store SHOULD_CAPTURE as AtomicU8
    
    `BacktraceStyle` easily fits into a u8, so `SHOULD_CAPTURE`, which is just `Atomic<Option<BacktraceStyle>>`, should be stored as `AtomicU8`
    matthiaskrgr committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    ab0b57c View commit details
    Browse the repository at this point in the history
  17. Rollup merge of rust-lang#120529 - nikic:llvm-18-datalayout-fixes, r=…

    …cuviper
    
    Update data layouts in custom target tests for LLVM 18
    
    Apply the data layout changes from rust-lang#116672 to custom target specs as well, as we started validating them since rust-lang#120062.
    
    Fixes rust-lang#120492.
    
    r? `@cuviper`
    matthiaskrgr committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    f12c1c2 View commit details
    Browse the repository at this point in the history
  18. Rollup merge of rust-lang#120530 - trevyn:issue-116434, r=compiler-er…

    …rors
    
    Be less confident when `dyn` suggestion is not checked for object safety
    
    rust-lang#120275 no longer checks bare traits for object safety when making a `dyn` suggestion on Rust < 2021. In this case, qualify the suggestion with a note that the trait must be object safe, to prevent user confusion as seen in rust-lang#116434
    
    r? `@fmease`
    matthiaskrgr committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    958d6f8 View commit details
    Browse the repository at this point in the history
  19. Rollup merge of rust-lang#120531 - oli-obk:track_errors7, r=estebank

    Remove a bunch of `has_errors` checks that have no meaningful or the wrong effect
    
    r? `@nnethercote`
    matthiaskrgr committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    ae02de9 View commit details
    Browse the repository at this point in the history
  20. Rollup merge of rust-lang#120533 - androm3da:bcain/update_hex_docs, r…

    …=wesleywiser
    
    Correct paths for hexagon-unknown-none-elf platform doc
    
    Update the library paths to correctly refer to libdemo{1,2}_hexagon and switch to the release build instead.
    
    Update references to libstandalone to the specific G0/PIC archive instead.
    matthiaskrgr committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    7d87d59 View commit details
    Browse the repository at this point in the history