diff options
| author | Flavio Percoco <flaper87@gmail.com> | 2015-02-20 11:17:08 +0100 |
|---|---|---|
| committer | Flavio Percoco <flaper87@gmail.com> | 2015-02-22 02:14:27 +0100 |
| commit | 1cc5a87c08fb1e9c6214e3370c78e3c217a0bae4 (patch) | |
| tree | 9fe46a31cb243a43f763e34e66c0b8097ba5fabf | |
| parent | 38ef5ee48f7a2994a7fd8e6a1a818d378d51d40e (diff) | |
| download | rust-1cc5a87c08fb1e9c6214e3370c78e3c217a0bae4.tar.gz rust-1cc5a87c08fb1e9c6214e3370c78e3c217a0bae4.zip | |
Don't report bug for IntVar and FloatVar
| -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 c86f0004de9..04c555632e1 100644 --- a/src/librustc/middle/traits/select.rs +++ b/src/librustc/middle/traits/select.rs @@ -1642,13 +1642,15 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> { ty::ty_str | ty::ty_err | ty::ty_param(..) | + ty::ty_infer(ty::IntVar(_)) | + ty::ty_infer(ty::FloatVar(_)) | ty::ty_char => { Some(Vec::new()) } ty::ty_trait(..) | ty::ty_projection(..) | - ty::ty_infer(..) => { + ty::ty_infer(_) => { self.tcx().sess.bug( &format!( "asked to assemble constituent types of unexpected type: {}", |
