From 97feb71254a4f6e01d355941e18cd9e9b33b9fa4 Mon Sep 17 00:00:00 2001 From: yukang Date: Thu, 15 Feb 2024 15:03:14 +0800 Subject: Suggest moving if non-found macro_rules! is defined later --- compiler/rustc_resolve/messages.ftl | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'compiler/rustc_resolve/messages.ftl') diff --git a/compiler/rustc_resolve/messages.ftl b/compiler/rustc_resolve/messages.ftl index 0747685c35c..c9463e59173 100644 --- a/compiler/rustc_resolve/messages.ftl +++ b/compiler/rustc_resolve/messages.ftl @@ -87,6 +87,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_}` @@ -186,6 +190,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}` -- cgit 1.4.1-3-g733a5