forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expansion: Remove restriction on use of macro attributes with test/bench
The restrictions were introduced in rust-lang#54277 and no longer necessary now because legacy plugins are now expanded in usual left-to-right order
- Loading branch information
1 parent
60a1d4e
commit 8994c6d
Showing
7 changed files
with
44 additions
and
114 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
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,32 +1,8 @@ | ||
error: macro attributes must be placed before `#[derive]` | ||
--> $DIR/attribute-order-restricted.rs:15:1 | ||
--> $DIR/attribute-order-restricted.rs:11:1 | ||
| | ||
LL | #[attr_proc_macro] //~ ERROR macro attributes must be placed before `#[derive]` | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: macro attributes cannot be used together with `#[test]` or `#[bench]` | ||
--> $DIR/attribute-order-restricted.rs:18:1 | ||
| | ||
LL | #[attr_proc_macro] //~ ERROR macro attributes cannot be used together with `#[test]` or `#[bench]` | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: macro attributes cannot be used together with `#[test]` or `#[bench]` | ||
--> $DIR/attribute-order-restricted.rs:23:1 | ||
| | ||
LL | #[attr_proc_macro] //~ ERROR macro attributes cannot be used together with `#[test]` or `#[bench]` | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: macro attributes cannot be used together with `#[test]` or `#[bench]` | ||
--> $DIR/attribute-order-restricted.rs:26:1 | ||
| | ||
LL | #[attr_proc_macro] //~ ERROR macro attributes cannot be used together with `#[test]` or `#[bench]` | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: macro attributes cannot be used together with `#[test]` or `#[bench]` | ||
--> $DIR/attribute-order-restricted.rs:31:1 | ||
| | ||
LL | #[attr_proc_macro] //~ ERROR macro attributes cannot be used together with `#[test]` or `#[bench]` | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 5 previous errors | ||
error: aborting due to previous error | ||
|