From 1cc5a87c08fb1e9c6214e3370c78e3c217a0bae4 Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Fri, 20 Feb 2015 11:17:08 +0100 Subject: [PATCH] Don't report bug for IntVar and FloatVar --- src/librustc/middle/traits/select.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librustc/middle/traits/select.rs b/src/librustc/middle/traits/select.rs index c86f0004de9a5..04c555632e14e 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: {}",