}
ty::PredicateKind::WellFormed(ty) => {
- if !self.tcx.sess.opts.debugging_opts.chalk {
+ if !self.tcx.sess.opts.unstable_opts.chalk {
// WF predicates cannot themselves make
// errors. They can only block due to
// ambiguity; otherwise, they always
let hir = self.tcx.hir();
Some(match node {
Node::Expr(&hir::Expr {
- kind: hir::ExprKind::Closure { body, fn_decl_span, .. },
+ kind: hir::ExprKind::Closure(&hir::Closure { body, fn_decl_span, .. }),
..
}) => (
sm.guess_head_span(fn_decl_span),
// |
// = note: cannot satisfy `_: Tt`
+ // Clear any more general suggestions in favor of our specific one
+ err.clear_suggestions();
+
err.span_suggestion_verbose(
span.shrink_to_hi(),
&format!(