Skip to content

Commit 3ebc2ab

Browse files
nikomatsakisflaper87
authored andcommitted
tweak exhaustive matching of ty_infer
1 parent 640000a commit 3ebc2ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/librustc/middle/traits/select.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
16831683
ty::ty_trait(..) |
16841684
ty::ty_param(..) |
16851685
ty::ty_projection(..) |
1686-
ty::ty_infer(ty::TyVar(_)) => {
1686+
ty::ty_infer(ty::TyVar(_)) |
1687+
ty::ty_infer(ty::FreshTy(_)) |
1688+
ty::ty_infer(ty::FreshIntTy(_)) => {
16871689
self.tcx().sess.bug(
16881690
&format!(
16891691
"asked to assemble constituent types of unexpected type: {}",

0 commit comments

Comments
 (0)