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> {
692
692
#[ primary_span]
693
693
pub span : Span ,
694
694
pub path : & ' a Path ,
695
+ pub crate_name : Symbol ,
695
696
}
696
697
697
698
#[ derive( Diagnostic ) ]
Original file line number Diff line number Diff line change @@ -1024,7 +1024,7 @@ impl CrateError {
1024
1024
if !locator. crate_rejections . via_filename . is_empty ( ) {
1025
1025
let mismatches = locator. crate_rejections . via_filename . iter ( ) ;
1026
1026
for CrateMismatch { path, .. } in mismatches {
1027
- sess. emit_err ( CrateLocationUnknownType { span, path : & path } ) ;
1027
+ sess. emit_err ( CrateLocationUnknownType { span, path : & path, crate_name } ) ;
1028
1028
sess. emit_err ( LibFilenameForm {
1029
1029
span,
1030
1030
dll_prefix : & locator. dll_prefix ,
You can’t perform that action at this time.
0 commit comments