-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supress unhelpful diagnostics for unresolved top level attributes
- Loading branch information
1 parent
04521fd
commit c6e936d
Showing
30 changed files
with
97 additions
and
196 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
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
#![derive(Copy)] //~ ERROR cannot determine resolution for the attribute macro `derive` | ||
#![derive(Copy)] | ||
//~^ ERROR `derive` attribute cannot be used at crate level | ||
|
||
#![test]//~ ERROR cannot determine resolution for the attribute macro `test` | ||
#![test] | ||
//~^ ERROR `test` attribute cannot be used at crate level | ||
|
||
#![test_case]//~ ERROR cannot determine resolution for the attribute macro `test_case` | ||
#![test_case] | ||
//~^ ERROR `test_case` attribute cannot be used at crate level | ||
|
||
#![bench]//~ ERROR cannot determine resolution for the attribute macro `bench` | ||
#![bench] | ||
//~^ ERROR `bench` attribute cannot be used at crate level | ||
|
||
#![global_allocator]//~ ERROR cannot determine resolution for the attribute macro `global_allocator` | ||
#![global_allocator] | ||
//~^ ERROR `global_allocator` attribute cannot be used at crate level | ||
|
||
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
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
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// compile-flags: --test | ||
|
||
#![allow(soft_unstable)] | ||
#![test] //~ ERROR cannot determine resolution for the attribute macro `test` | ||
#![test] | ||
//~^ ERROR 4:1: 4:9: `test` attribute cannot be used at crate level |
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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
use NonExistent; //~ ERROR unresolved import `NonExistent` | ||
use non_existent::non_existent; //~ ERROR unresolved import `non_existent` | ||
|
||
#[non_existent] //~ ERROR cannot determine resolution for the attribute macro `non_existent` | ||
#[derive(NonExistent)] //~ ERROR cannot determine resolution for the derive macro `NonExistent` | ||
//~| ERROR cannot determine resolution for the derive macro `NonExistent` | ||
//~| ERROR cannot determine resolution for the derive macro `NonExistent` | ||
#[non_existent] | ||
#[derive(NonExistent)] | ||
|
||
struct S; | ||
|
||
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
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
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
Oops, something went wrong.