You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: useless lint attribute
--> compiler/rustc_middle/src/ty/mod.rs:29:1
|
29 | #[allow(rustc::non_glob_import_of_type_ir_inherent)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if you just forgot a `!`, use: `#![allow(rustc::non_glob_import_of_type_ir_inherent)]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#useless_attribute
= note: `-D clippy::useless-attribute` implied by `-D clippy::correctness`
= help: to override `-D clippy::correctness` add `#[allow(clippy::useless_attribute)]`
I can imagine us adding an allow-list for lints in the rustc-namespace, however, I believe that in general, this lint should never trigger for lints from unknown namespaces.
The text was updated successfully, but these errors were encountered:
Description
rust-lang/rust#133643 failed in CI due to an false positive of the
useless_attribute
lint.https://github.com/rust-lang/rust/actions/runs/12088915947/job/33713323311
To repro, use the following inside of
rustc_middle
:This results in
I can imagine us adding an allow-list for lints in the rustc-namespace, however, I believe that in general, this lint should never trigger for lints from unknown namespaces.
The text was updated successfully, but these errors were encountered: