Skip to content

Commit

Permalink
Don't report bug for IntVar and FloatVar
Browse files Browse the repository at this point in the history
  • Loading branch information
flaper87 committed Feb 22, 2015
1 parent 38ef5ee commit 1cc5a87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/librustc/middle/traits/select.rs
Expand Up @@ -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: {}",
Expand Down

0 comments on commit 1cc5a87

Please sign in to comment.