This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update macro_magic to 0.4.1 (#14356)
* update to macro_magic 0.4.0 * remove deprecated syntax and related doc comments * upgrade to macro_magic v0.4.1 * fix import issue * fix UI tests * resolve frame_support path properly * add docs note about importing * fix typo * Update frame/support/procedural/src/lib.rs Co-authored-by: Guillaume Yu Thiolliere <[email protected]> * revert UI tests changes because we can't use rust 1.70 * fix UI tests * fix another UI test * use simplified import style * switch back import since tests are written expecting it that way --------- Co-authored-by: Guillaume Yu Thiolliere <[email protected]>
- Loading branch information
Showing
9 changed files
with
65 additions
and
72 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
16 changes: 3 additions & 13 deletions
16
frame/support/test/tests/derive_impl_ui/attached_to_non_impl.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,15 +1,5 @@ | ||
error: expected `impl` | ||
--> tests/derive_impl_ui/attached_to_non_impl.rs:24:1 | ||
--> tests/derive_impl_ui/attached_to_non_impl.rs:39:1 | ||
| | ||
24 | / #[register_default_impl(FourLeggedAnimal)] | ||
25 | | impl Animal for FourLeggedAnimal { | ||
26 | | type Locomotion = RunsOnFourLegs; | ||
27 | | type Diet = Omnivore; | ||
... | | ||
37 | | | ||
38 | | #[derive_impl(FourLeggedAnimal as Animal)] | ||
| |_-----------------------------------------^ | ||
| | | ||
| in this procedural macro expansion | ||
| | ||
= note: this error originates in the macro `__import_tokens_attr_derive_impl_inner` which comes from the expansion of the attribute macro `derive_impl` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
39 | struct Something {} | ||
| ^^^^^^ |
17 changes: 3 additions & 14 deletions
17
frame/support/test/tests/derive_impl_ui/bad_disambiguation_path.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,16 +1,5 @@ | ||
error[E0433]: failed to resolve: use of undeclared type `Insect` | ||
--> tests/derive_impl_ui/bad_disambiguation_path.rs:24:1 | ||
--> tests/derive_impl_ui/bad_disambiguation_path.rs:38:35 | ||
| | ||
24 | / #[register_default_impl(FourLeggedAnimal)] | ||
25 | | impl Animal for FourLeggedAnimal { | ||
26 | | type Locomotion = RunsOnFourLegs; | ||
27 | | type Diet = Omnivore; | ||
... | | ||
37 | | | ||
38 | | #[derive_impl(FourLeggedAnimal as Insect)] | ||
| | -----------------------------------------^ | ||
| |_|________________________________________| | ||
| | use of undeclared type `Insect` | ||
| in this procedural macro expansion | ||
| | ||
= note: this error originates in the macro `__import_tokens_attr_derive_impl_inner` which comes from the expansion of the attribute macro `derive_impl` (in Nightly builds, run with -Z macro-backtrace for more info) | ||
38 | #[derive_impl(FourLeggedAnimal as Insect)] | ||
| ^^^^^^ use of undeclared type `Insect` |