tweak exhaustive matching of ty_infer

This commit is contained in:
Niko Matsakis 2015-02-20 05:47:09 -05:00 committed by Flavio Percoco
parent 640000a7c0
commit 3ebc2abc6a

View File

@ -1683,7 +1683,9 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> {
ty::ty_trait(..) |
ty::ty_param(..) |
ty::ty_projection(..) |
ty::ty_infer(ty::TyVar(_)) => {
ty::ty_infer(ty::TyVar(_)) |
ty::ty_infer(ty::FreshTy(_)) |
ty::ty_infer(ty::FreshIntTy(_)) => {
self.tcx().sess.bug(
&format!(
"asked to assemble constituent types of unexpected type: {}",