Skip to content

Commit 818203e

Browse files
committed
typeck: Remove old diagnostic that refers to do.
1 parent 34a224f commit 818203e

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

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

-12
Original file line numberDiff line numberDiff line change
@@ -2087,18 +2087,6 @@ pub fn check_expr_with_unifier(fcx: @FnCtxt,
20872087
};
20882088
check_expr(fcx, rhs);
20892089

2090-
// If the or operator is used it might be that the user forgot to
2091-
// supply the do keyword. Let's be more helpful in that situation.
2092-
if op == ast::BiOr {
2093-
match ty::get(lhs_resolved_t).sty {
2094-
ty::ty_bare_fn(_) | ty::ty_closure(_) => {
2095-
tcx.sess.span_note(
2096-
ex.span, "did you forget the `do` keyword for the call?");
2097-
}
2098-
_ => ()
2099-
}
2100-
}
2101-
21022090
ty::mk_err()
21032091
}
21042092

src/test/compile-fail/missing-do.rs

-19
This file was deleted.

0 commit comments

Comments
 (0)