This repository was 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.7k
update macro_magic to 0.4.1 #14356
Merged
Merged
update macro_magic to 0.4.1 #14356
Changes from 6 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
fdd5198
update to macro_magic 0.4.0
sam0x17 63d4edc
remove deprecated syntax and related doc comments
sam0x17 5109e8d
upgrade to macro_magic v0.4.1
sam0x17 9ac1861
fix import issue
sam0x17 52805ed
fix UI tests
sam0x17 c58a633
resolve frame_support path properly
sam0x17 ac271ea
add docs note about importing
sam0x17 1a4ffeb
Merge remote-tracking branch 'origin/master' into sam-update-macro-ma…
sam0x17 81d051a
fix typo
sam0x17 f1e1c5a
Update frame/support/procedural/src/lib.rs
sam0x17 917b4de
revert UI tests changes because we can't use rust 1.70
sam0x17 3ec1da5
Merge remote-tracking branch 'origin/master' into sam-update-macro-ma…
sam0x17 78df605
fix UI tests
sam0x17 23f00ca
fix another UI test
sam0x17 58afd2d
use simplified import style
sam0x17 582b454
switch back import since tests are written expecting it that way
sam0x17 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 {} | ||
| | ^^^^^^ |
19 changes: 4 additions & 15 deletions
19
frame/support/test/tests/derive_impl_ui/bad_disambiguation_path.stderr
This file contains hidden or 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 | ||
| error[E0405]: cannot find trait `Insect` in this scope | ||
| --> 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)] | ||
| | ^^^^^^ not found in this scope |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.