diff --git a/compiler/rustc_builtin_macros/src/source_util.rs b/compiler/rustc_builtin_macros/src/source_util.rs index f92122184a180..fbf29f0d44952 100644 --- a/compiler/rustc_builtin_macros/src/source_util.rs +++ b/compiler/rustc_builtin_macros/src/source_util.rs @@ -252,7 +252,7 @@ fn load_binary_file( if let Some(new_path) = new_path { err.span_suggestion( path_span, - "there is a file in another directory", + "there is a file with the same name in a different directory", format!("\"{}\"", new_path.escape_debug()), rustc_lint_defs::Applicability::MachineApplicable, );