Rollup merge of #121130 - chenyukang:yukang-fix-121061-macro-later, r=matthiaskrgr
Suggest moving definition if non-found macro_rules! is defined later Fixes #121061
This commit is contained in:
commit
c620ae5be9
7 changed files with 94 additions and 1 deletions
|
@ -83,6 +83,10 @@ resolve_consider_declaring_with_pub =
|
|||
resolve_consider_marking_as_pub =
|
||||
consider marking `{$ident}` as `pub` in the imported module
|
||||
|
||||
resolve_consider_move_macro_position =
|
||||
consider moving the definition of `{$ident}` before this call
|
||||
|
||||
|
||||
resolve_const_not_member_of_trait =
|
||||
const `{$const_}` is not a member of trait `{$trait_}`
|
||||
.label = not a member of trait `{$trait_}`
|
||||
|
@ -176,6 +180,9 @@ resolve_lowercase_self =
|
|||
attempt to use a non-constant value in a constant
|
||||
.suggestion = try using `Self`
|
||||
|
||||
resolve_macro_defined_later =
|
||||
a macro with the same name exists, but it appears later at here
|
||||
|
||||
resolve_macro_expected_found =
|
||||
expected {$expected}, found {$found} `{$macro_path}`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue