Revert "Suppress type error message involving a function type whose result is ty_err"
This reverts commit e45312e5a0
.
This commit is contained in:
parent
7b433d098a
commit
4557f70487
1 changed files with 0 additions and 8 deletions
|
@ -741,14 +741,6 @@ impl infer_ctxt {
|
||||||
// Don't report an error if actual type is ty_err.
|
// Don't report an error if actual type is ty_err.
|
||||||
match ty::get(actual_ty).sty {
|
match ty::get(actual_ty).sty {
|
||||||
ty::ty_err => return,
|
ty::ty_err => return,
|
||||||
// Should really not report an error if the type
|
|
||||||
// has ty_err anywhere as a component, but that's
|
|
||||||
// annoying since we haven't written a visitor for
|
|
||||||
// ty::t yet
|
|
||||||
ty::ty_fn(fty) => match ty::get(fty.sig.output).sty {
|
|
||||||
ty::ty_err => return,
|
|
||||||
_ => ()
|
|
||||||
},
|
|
||||||
_ => ()
|
_ => ()
|
||||||
}
|
}
|
||||||
let error_str = err.map_default(~"", |t_err|
|
let error_str = err.map_default(~"", |t_err|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue