1
Fork 0

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:
Matthias Krüger 2024-03-04 07:57:56 +01:00 committed by GitHub
commit c620ae5be9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 94 additions and 1 deletions

View file

@ -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}`