Use () in dependency_formats.
This commit is contained in:
parent
ac923d94f8
commit
85a14d70bb
8 changed files with 18 additions and 13 deletions
|
@ -1303,7 +1303,7 @@ fn exported_symbols(tcx: TyCtxt<'_>, crate_type: CrateType) -> Vec<String> {
|
|||
}
|
||||
}
|
||||
|
||||
let formats = tcx.dependency_formats(LOCAL_CRATE);
|
||||
let formats = tcx.dependency_formats(());
|
||||
let deps = formats.iter().find_map(|(t, list)| (*t == crate_type).then_some(list)).unwrap();
|
||||
|
||||
for (index, dep_format) in deps.iter().enumerate() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue