1
Fork 0

Remove some resolver outputs.

This commit is contained in:
Camille GILLOT 2023-02-22 20:41:51 +00:00
parent 958419d354
commit f38f3af22a
5 changed files with 0 additions and 19 deletions

View file

@ -278,7 +278,6 @@ impl Resolver<'_, '_> {
}
ImportKind::ExternCrate { id, .. } => {
let def_id = self.local_def_id(id);
self.maybe_unused_extern_crates.push((def_id, import.span));
if self.extern_crate_map.get(&def_id).map_or(true, |&cnum| {
!tcx.is_compiler_builtins(cnum)
&& !tcx.is_panic_runtime(cnum)