Skip to content

Commit 0518509

Browse files
committed
fixup! Positive case
1 parent 0f9f7c5 commit 0518509

File tree

1 file changed

+1
-1
lines changed
  • src/librustc_typeck/coherence

1 file changed

+1
-1
lines changed

src/librustc_typeck/coherence/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ impl<'a, 'tcx> CoherenceChecker<'a, 'tcx> {
387387

388388
for &impl_did in &*trait_impls.borrow() {
389389
let items = impl_items.get(&impl_did).unwrap();
390-
if items.len() < 1 {
390+
if items.is_empty() {
391391
// We'll error out later. For now, just don't ICE.
392392
continue;
393393
}

0 commit comments

Comments
 (0)