We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab45660 commit e94779aCopy full SHA for e94779a
clippy_lints/src/future_not_send.rs
@@ -79,7 +79,7 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
79
let send_trait = cx.tcx.get_diagnostic_item(sym::Send).unwrap();
80
let span = decl.output.span();
81
let infcx = cx.tcx.infer_ctxt().build();
82
- let ocx = ObligationCtxt::new(&infcx);
+ let ocx = ObligationCtxt::new_with_diagnostics(&infcx);
83
let cause = traits::ObligationCause::misc(span, fn_def_id);
84
ocx.register_bound(cause, cx.param_env, ret_ty, send_trait);
85
let send_errors = ocx.select_all_or_error();
0 commit comments