Rollup merge of #157023 - samueltardieu:push-mwykwuslpolq, r=nnethercote

`#[expect]` is an attribute valid for outer style
This commit is contained in:
Matthias Krüger
2026-05-28 07:53:38 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -3497,6 +3497,7 @@ pub fn is_valid_for_outer_style(&self) -> bool {
|| self.path == sym::warn
|| self.path == sym::allow
|| self.path == sym::deny
|| self.path == sym::expect
}
}
@@ -8,6 +8,11 @@ LL | fn main() {}
| ------------ the inner attribute doesn't annotate this function
|
= note: inner attributes, like `#![no_std]`, annotate the item enclosing them, and are usually found at the beginning of source files
help: to annotate the function, change the attribute from inner to outer style
|
LL - #![expect(unused)]
LL + #[expect(unused)]
|
error: aborting due to 1 previous error