diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-02-20 05:47:09 -0500 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2015-02-22 02:14:27 +0100 |
| commit | 3ebc2abc6affd826c564630c036f4aa24c4fbe53 (patch) | |
| tree | 0cadd3521348f840d225c543faa9a5907551b64c | |
| parent | 640000a7c0d49e03b22c635e98679d5cffb18f1a (diff) | |
| download | rust-3ebc2abc6affd826c564630c036f4aa24c4fbe53.tar.gz rust-3ebc2abc6affd826c564630c036f4aa24c4fbe53.zip | |
tweak exhaustive matching of ty_infer
| -rw-r--r-- | src/librustc/middle/traits/select.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc/middle/traits/select.rs b/src/librustc/middle/traits/select.rs index f824ec50dc4..1eb1c650e7c 100644 --- a/src/librustc/middle/traits/select.rs +++ b/src/librustc/middle/traits/select.rs @@ -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: {}", |
