List all defined and required lang items in -Zls
This commit is contained in:
parent
7279cc0abd
commit
369a8ac52b
@ -778,6 +778,26 @@ impl MetadataBlob {
|
|||||||
}
|
}
|
||||||
write!(out, "\n")?;
|
write!(out, "\n")?;
|
||||||
|
|
||||||
|
writeln!(out, "\n=Lang items=")?;
|
||||||
|
for (id, lang_item) in root.lang_items.decode(self) {
|
||||||
|
writeln!(
|
||||||
|
out,
|
||||||
|
"{} = crate{}",
|
||||||
|
lang_item.name(),
|
||||||
|
DefPath::make(LOCAL_CRATE, id, |parent| root
|
||||||
|
.tables
|
||||||
|
.def_keys
|
||||||
|
.get(self, parent)
|
||||||
|
.unwrap()
|
||||||
|
.decode(self))
|
||||||
|
.to_string_no_crate_verbose()
|
||||||
|
)?;
|
||||||
|
}
|
||||||
|
for lang_item in root.lang_items_missing.decode(self) {
|
||||||
|
writeln!(out, "{} = <missing>", lang_item.name())?;
|
||||||
|
}
|
||||||
|
write!(out, "\n")?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user