Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rust-lang/rust
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: ee4596b4f016c16dfe9f64489e528949f2c082f0
Choose a base ref
...
head repository: rust-lang/rust
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f80e3ac4ed1e1df2c337cbf7b231cb72ec4e3b7a
Choose a head ref
  • 1 commit
  • 18 files changed
  • 1 contributor

Commits on May 29, 2025

  1. Use cfg_attr AST placeholder AST cfg_attr_trace for diagnostics

    PR 138515, we insert a placeholder attribute so that checks for attributes can still know about the placement of `cfg` attributes. When we suggest removing items with `cfg_attr`s (fix Issue 56328) and make them verbose. We tweak the wording of the existing "unused `extern crate`" lint.
    
    ```
    warning: unused extern crate
      --> $DIR/removing-extern-crate.rs:9:1
       |
    LL | extern crate removing_extern_crate as foo;
       | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unused
       |
    note: the lint level is defined here
      --> $DIR/removing-extern-crate.rs:6:9
       |
    LL | #![warn(rust_2018_idioms)]
       |         ^^^^^^^^^^^^^^^^
       = note: `#[warn(unused_extern_crates)]` implied by `#[warn(rust_2018_idioms)]`
    help: remove the unused `extern crate`
       |
    LL - #[cfg_attr(test, macro_use)]
    LL - extern crate removing_extern_crate as foo;
    LL +
       |
    ```
    estebank committed May 29, 2025
    Configuration menu
    Copy the full SHA
    f80e3ac View commit details
    Browse the repository at this point in the history
Loading