Reword message
This commit is contained in:
parent
fe7ed278b7
commit
835d434c79
6 changed files with 20 additions and 20 deletions
|
@ -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,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue