Skip to content

Commit 488c368

Browse files
committed
Infallible version of explicit_item_bounds.
1 parent 83122e6 commit 488c368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_typeck/src/collect/item_bounds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pub(super) fn explicit_item_bounds(
9797
span,
9898
..
9999
}) => opaque_type_bounds(tcx, def_id, bounds, *span),
100-
_ => bug!("item_bounds called on {:?}", def_id),
100+
_ => &[],
101101
}
102102
}
103103

0 commit comments

Comments
 (0)