Skip to content

Commit 4557f70

Browse files
committed
Revert "Suppress type error message involving a function type whose result is ty_err"
This reverts commit e45312e.
1 parent 7b433d0 commit 4557f70

File tree

1 file changed

+0
-8
lines changed
  • src/librustc/middle/typeck/infer

1 file changed

+0
-8
lines changed

src/librustc/middle/typeck/infer/mod.rs

-8
Original file line numberDiff line numberDiff line change
@@ -741,14 +741,6 @@ impl infer_ctxt {
741741
// Don't report an error if actual type is ty_err.
742742
match ty::get(actual_ty).sty {
743743
ty::ty_err => return,
744-
// Should really not report an error if the type
745-
// has ty_err anywhere as a component, but that's
746-
// annoying since we haven't written a visitor for
747-
// ty::t yet
748-
ty::ty_fn(fty) => match ty::get(fty.sig.output).sty {
749-
ty::ty_err => return,
750-
_ => ()
751-
},
752744
_ => ()
753745
}
754746
let error_str = err.map_default(~"", |t_err|

0 commit comments

Comments
 (0)