File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ impl Config {
106
106
let sysroot_src_input = self . sysroot_src . as_ref ( ) . map ( |p| join_path_buf ( dir, p) ) ;
107
107
match ( sysroot_input, sysroot_src_input) {
108
108
( None , None ) => Sysroot :: discover ( dir, & self . cargo_extra_env ) ,
109
- ( Some ( sysroot) , None ) => Sysroot :: discover_sysroot_src_dir ( sysroot) ,
109
+ ( Some ( sysroot) , None ) => Sysroot :: discover_rust_lib_src_dir ( sysroot) ,
110
110
( None , Some ( sysroot_src) ) => {
111
111
Sysroot :: discover_with_src_override ( dir, & self . cargo_extra_env , sysroot_src)
112
112
}
@@ -130,7 +130,7 @@ impl Config {
130
130
(
131
131
CargoConfig {
132
132
all_targets : self . cargo_all_targets ,
133
- sysroot_src : sysroot. src_root ( ) . map ( ToOwned :: to_owned) ,
133
+ sysroot_src : sysroot. rust_lib_src_root ( ) . map ( ToOwned :: to_owned) ,
134
134
rustc_source : self
135
135
. rustc_src
136
136
. as_ref ( )
Original file line number Diff line number Diff line change @@ -297,4 +297,5 @@ pub(crate) fn path_to_file_id(path: &Path, vfs: &Vfs) -> Option<FileId> {
297
297
. and_then ( |x| AbsPathBuf :: try_from ( x) . ok ( ) )
298
298
. map ( VfsPath :: from)
299
299
. and_then ( |x| vfs. file_id ( & x) )
300
+ . map ( |( id, _excluded) | id)
300
301
}
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ impl<'a> Translator<'a> {
417
417
}
418
418
}
419
419
ItemContainer :: Module ( it) => self . canonical_path_from_hir_module ( it) ,
420
- ItemContainer :: ExternBlock ( ) | ItemContainer :: Crate ( _ ) => Some ( "" . to_owned ( ) ) ,
420
+ ItemContainer :: ExternBlock ( .. ) | ItemContainer :: Crate ( .. ) => Some ( "" . to_owned ( ) ) ,
421
421
} ?;
422
422
Some ( format ! ( "{prefix}::{name}" ) )
423
423
}
You can’t perform that action at this time.
0 commit comments