-
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.
resolve: Block expansion of a derive container until all its derives …
…are resolved Also mark derive helpers as known as a part of the derive container's expansion instead of expansion of the derives themselves which may happen too late.
- Loading branch information
1 parent
9b91b9c
commit ec45b87
Showing
15 changed files
with
195 additions
and
153 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
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
16 changes: 5 additions & 11 deletions
16
src/test/ui/feature-gate/issue-43106-gating-of-derive.stderr
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,38 +1,32 @@ | ||
error: `derive` may only be applied to structs, enums and unions | ||
--> $DIR/issue-43106-gating-of-derive.rs:4:1 | ||
| | ||
LL | #![derive(Debug)] | ||
| ^^^^^^^^^^^^^^^^^ help: try an outer attribute: `#[derive(Debug)]` | ||
|
||
error: `derive` may only be applied to structs, enums and unions | ||
--> $DIR/issue-43106-gating-of-derive.rs:7:1 | ||
| | ||
LL | #[derive(Debug)] | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: `derive` may only be applied to structs, enums and unions | ||
--> $DIR/issue-43106-gating-of-derive.rs:10:17 | ||
--> $DIR/issue-43106-gating-of-derive.rs:7:17 | ||
| | ||
LL | mod inner { #![derive(Debug)] } | ||
| ^^^^^^^^^^^^^^^^^ help: try an outer attribute: `#[derive(Debug)]` | ||
|
||
error: `derive` may only be applied to structs, enums and unions | ||
--> $DIR/issue-43106-gating-of-derive.rs:13:5 | ||
--> $DIR/issue-43106-gating-of-derive.rs:10:5 | ||
| | ||
LL | #[derive(Debug)] | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: `derive` may only be applied to structs, enums and unions | ||
--> $DIR/issue-43106-gating-of-derive.rs:26:5 | ||
--> $DIR/issue-43106-gating-of-derive.rs:23:5 | ||
| | ||
LL | #[derive(Debug)] | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: `derive` may only be applied to structs, enums and unions | ||
--> $DIR/issue-43106-gating-of-derive.rs:30:5 | ||
--> $DIR/issue-43106-gating-of-derive.rs:27:5 | ||
| | ||
LL | #[derive(Debug)] | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: aborting due to 6 previous errors | ||
error: aborting due to 5 previous errors | ||
|
Oops, something went wrong.