File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
compiler/rustc_metadata/src Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -692,6 +692,7 @@ pub struct CrateLocationUnknownType<'a> {
692692 #[ primary_span]
693693 pub span : Span ,
694694 pub path : & ' a Path ,
695+ pub crate_name : Symbol ,
695696}
696697
697698#[ derive( Diagnostic ) ]
Original file line number Diff line number Diff line change @@ -1024,7 +1024,7 @@ impl CrateError {
10241024 if !locator. crate_rejections . via_filename . is_empty ( ) {
10251025 let mismatches = locator. crate_rejections . via_filename . iter ( ) ;
10261026 for CrateMismatch { path, .. } in mismatches {
1027- sess. emit_err ( CrateLocationUnknownType { span, path : & path } ) ;
1027+ sess. emit_err ( CrateLocationUnknownType { span, path : & path, crate_name } ) ;
10281028 sess. emit_err ( LibFilenameForm {
10291029 span,
10301030 dll_prefix : & locator. dll_prefix ,
You can’t perform that action at this time.
0 commit comments