-
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.
Auto merge of #91517 - matthiaskrgr:rollup-3fmp4go, r=matthiaskrgr
Rollup of 3 pull requests Successful merges: - #87054 (Add a `try_reduce` method to the Iterator trait) - #89701 (Updated error message for accidental uses of derive attribute as a crate attribute) - #90519 (Keep spans for generics in `#[derive(_)]` desugaring) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
- Loading branch information
Showing
29 changed files
with
731 additions
and
148 deletions.
There are no files selected for viewing
154 changes: 76 additions & 78 deletions
154
compiler/rustc_builtin_macros/src/deriving/generic/mod.rs
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,3 +1,16 @@ | ||
#![derive(Copy)] //~ ERROR cannot determine resolution for the attribute macro `derive` | ||
//~^ ERROR `derive` attribute cannot be used at crate level | ||
|
||
#![test]//~ ERROR cannot determine resolution for the attribute macro `test` | ||
//~^ ERROR `test` attribute cannot be used at crate level | ||
|
||
#![test_case]//~ ERROR cannot determine resolution for the attribute macro `test_case` | ||
//~^ ERROR `test_case` attribute cannot be used at crate level | ||
|
||
#![bench]//~ ERROR cannot determine resolution for the attribute macro `bench` | ||
//~^ ERROR `bench` attribute cannot be used at crate level | ||
|
||
#![global_allocator]//~ ERROR cannot determine resolution for the attribute macro `global_allocator` | ||
//~^ ERROR `global_allocator` attribute cannot be used at crate level | ||
|
||
fn main() {} |
Oops, something went wrong.