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

Merged
merged 20 commits into from
Mar 6, 2024
Merged

Rollup of 8 pull requests #122041

merged 20 commits into from
Mar 6, 2024

Commits on Feb 27, 2024

  1. Configuration menu
    Copy the full SHA
    a5245ef View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a0ca9b1 View commit details
    Browse the repository at this point in the history
  3. Adjust wording

    jieyouxu committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    9c963fc View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

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

Commits on Mar 4, 2024

  1. add test for rust-lang#78894

    surechen committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    6e9f59f View commit details
    Browse the repository at this point in the history
  2. hir_analysis: enums return None in find_field

    Unnamed union fields with enums are checked for, but if `find_field`
    causes an ICE then the compiler won't get to that point.
    
    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Mar 4, 2024
    Configuration menu
    Copy the full SHA
    4e03c51 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    640e99c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5e6e140 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2024

  1. add test for rust-lang#71450

    surechen committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    523ab25 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9d9b26b View commit details
    Browse the repository at this point in the history
  3. errors: share SilentEmitter between rustc and rustfmt

    Signed-off-by: David Wood <david@davidtw.co>
    davidtwco committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    2ee0409 View commit details
    Browse the repository at this point in the history
  4. Merge impl_trait_in_assoc_types_defined_by query back into `opaque_…

    …types_defined_by`
    
    Instead, when we're collecting opaques for associated items, we choose the right collection mode depending on whether we're collecting for an associated item of a trait impl or not.
    oli-obk committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    da35734 View commit details
    Browse the repository at this point in the history
  5. Rollup merge of rust-lang#121202 - Urgau:check-cfg-limit-diagnostics,…

    … r=pnkfelix
    
    Limit the number of names and values in check-cfg diagnostics
    
    The Rust for Linux [feedback](rust-lang#82450 (comment)) to the check-cfg Call for Testing, revealed a weakness in the check-cfg. They are unbounded and in the case RfL they have ~20k cfgs and having them printed (even once) is unbearable.
    
    This PR limits it to 35 (28 rustc well known + `feature` + `docsrs` + 5 custom) which feels like a good middle ground for regular users (i.e. Cargo users).
    
    When it goes over that limit print the N first with " and X more".
    
    ``@rustbot`` label +F-check-cfg
    matthiaskrgr committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    640648b View commit details
    Browse the repository at this point in the history
  6. Rollup merge of rust-lang#121301 - davidtwco:rustfmt-silent-emitter, …

    …r=pnkfelix
    
    errors: share `SilentEmitter` between rustc and rustfmt
    
    Fixes rust-lang/rustfmt#6082.
    
    Shares the `SilentEmitter` between rustc and rustfmt, and gives it a fallback bundle (since it can emit diagnostics in some contexts).
    matthiaskrgr committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    9153451 View commit details
    Browse the repository at this point in the history
  7. Rollup merge of rust-lang#121658 - jieyouxu:ice-outdated-nightly, r=o…

    …li-obk
    
    Hint user to update nightly on ICEs produced from outdated nightly
    
    This is a conservative best-effort approach to detect a potentially outdated nightly; it will fallback to the regular ICE-reporting if any of the following cases are true:
    - Channel is not nightly
    - Version information is not available
    - Version date is not parseable as a YYYY-MM-DD or is missing
    - System time is at least 36 hours ahead of the user's nightly release datetime.
    - Any internal features are used.
    
    Note that I'm not sure how to make a test for this: I tested this manually by `CFG_VER_DATE="2020-02-02" ./x build library --stage 1`, and also changing the channel detection in `rustc_driver_impl` from `Some("nightly")` to `Some("nightly" | "dev")`, and then running `rustc +stage1 test.rs -Ztreat-err-as-bug=1` with a non-existent `test.rs`.
    
    <img width="1145" alt="Screenshot 2024-02-27 at 01 12 28" src="https://github.com/rust-lang/rust/assets/39484203/eff6af2e-4b19-4a70-af57-cd739ecf0e84">
    
    Closes rust-lang#118832.
    matthiaskrgr committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    1b30268 View commit details
    Browse the repository at this point in the history
  8. Rollup merge of rust-lang#121846 - bvanjoi:fix-121760, r=petrochenkov

    only compare ambiguity item that have hard error
    
    Fixes rust-lang#121760
    
    An easy fix, r? ``@petrochenkov``
    matthiaskrgr committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    152b690 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5cdf870 View commit details
    Browse the repository at this point in the history
  10. Rollup merge of rust-lang#121975 - davidtwco:issue-121757, r=petroche…

    …nkov
    
    hir_analysis: enums return `None` in `find_field`
    
    Fixes rust-lang#121757.
    
    Unnamed union fields with enums are checked for, but if `find_field` causes an ICE then the compiler won't get to that point.
    matthiaskrgr committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    f560806 View commit details
    Browse the repository at this point in the history
  11. Rollup merge of rust-lang#121978 - GuillaumeGomez:dylib-duplicated-pa…

    …th, r=bjorn3
    
    Fix duplicated path in the "not found dylib" error
    
    While working on the gcc backend, I couldn't figure out why I had this error:
    
    ```
    error: couldn't load codegen backend /checkout/compiler/rustc_codegen_gcc/target/release/librustc_codegen_gcc.so/checkout/compiler/rustc_codegen_gcc/target/release/librustc_codegen_gcc.so: cannot open shared object file: No such file or directory
    ```
    
    As you can see, the path is duplicated for some reason. After investigating a bit more, I realized that `libloading::Error::LoadLibraryExW` starts with the path of the not found dylib, making it appear twice in our error afterward (because we do render it like this: `{path}{err}`, and since the `err` starts with the path...).
    
    Thanks to `````@bjorn3````` for linking me to rust-lang#121392. :)
    matthiaskrgr committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    f5ff6d5 View commit details
    Browse the repository at this point in the history
  12. Rollup merge of rust-lang#121991 - oli-obk:merge_opaque_types_defined…

    …_by_queries, r=compiler-errors
    
    Merge impl_trait_in_assoc_types_defined_by query back into `opaque_types_defined_by`
    
    Instead, when we're collecting opaques for associated items, we choose the right collection mode depending on whether we're collecting for an associated item of a trait impl or not.
    
    r? ```@compiler-errors```
    
    follow up to rust-lang#121838
    matthiaskrgr committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    3d6b3d0 View commit details
    Browse the repository at this point in the history