Skip to content

Commit f068b79

Browse files
committed
include EIIs in used crates check
1 parent 6a075ae commit f068b79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: compiler/rustc_resolve/src/check_unused.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ impl Resolver<'_, '_> {
402402
!tcx.is_compiler_builtins(cnum)
403403
&& !tcx.is_panic_runtime(cnum)
404404
&& !tcx.has_global_allocator(cnum)
405-
// TODO: test for EII in the crate
405+
&& tcx.externally_implementable_items(cnum).is_empty()
406406
}) {
407407
maybe_unused_extern_crates.insert(id, import.span);
408408
}

0 commit comments

Comments
 (0)