-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #105200 - cjgillot:issue-104562, r=compiler-errors
Remove useless filter in unused extern crate check. Fixes #104562
- Loading branch information
Showing
3 changed files
with
22 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#[w = { extern crate alloc; }] | ||
//~^ ERROR unexpected expression: `{ | ||
//~| ERROR cannot find attribute `w` in this scope | ||
fn f() {} | ||
|
||
fn main() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
error: unexpected expression: `{ | ||
extern crate alloc; | ||
}` | ||
--> $DIR/unused-item-in-attr.rs:1:7 | ||
| | ||
LL | #[w = { extern crate alloc; }] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
error: cannot find attribute `w` in this scope | ||
--> $DIR/unused-item-in-attr.rs:1:3 | ||
| | ||
LL | #[w = { extern crate alloc; }] | ||
| ^ | ||
|
||
error: aborting due to 2 previous errors | ||
|