summary refs log tree commit diff
path: root/compiler/rustc_resolve/src/macros.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2025-02-19 18:52:53 +0000
committerEsteban Küber <esteban@kuber.com.ar>2025-02-20 17:55:31 +0000
commit835d434c79559f68e22a6ddf6394b84f4fd353cd (patch)
tree56236b2c11ed8018e4876b25c352833efdef7c0b /compiler/rustc_resolve/src/macros.rs
parentfe7ed278b7cfc8a152dcee29ca6ba583ff0d876d (diff)
downloadrust-835d434c79559f68e22a6ddf6394b84f4fd353cd.tar.gz
rust-835d434c79559f68e22a6ddf6394b84f4fd353cd.zip
Reword message
Diffstat (limited to 'compiler/rustc_resolve/src/macros.rs')
-rw-r--r--compiler/rustc_resolve/src/macros.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_resolve/src/macros.rs b/compiler/rustc_resolve/src/macros.rs
index 07d1d377b41..a70def2f6c9 100644
--- a/compiler/rustc_resolve/src/macros.rs
+++ b/compiler/rustc_resolve/src/macros.rs
@@ -1070,7 +1070,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
                 None,
             );
             if fallback_binding.ok().and_then(|b| b.res().opt_def_id()) != Some(def_id) {
-                let scope = match parent_scope.module.kind {
+                let location = match parent_scope.module.kind {
                     ModuleKind::Def(_, _, name) if name == kw::Empty => {
                         "the crate root".to_string()
                     }
@@ -1086,7 +1086,7 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> {
                     BuiltinLintDiag::OutOfScopeMacroCalls {
                         span: path.span,
                         path: pprust::path_to_string(path),
-                        scope,
+                        location,
                     },
                 );
             }