File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use rustc_lint::{LateContext, LateLintPass};
7
7
use rustc_middle:: ty:: { EarlyBinder , Opaque , PredicateKind :: Trait } ;
8
8
use rustc_session:: { declare_lint_pass, declare_tool_lint} ;
9
9
use rustc_span:: { sym, Span } ;
10
- use rustc_trait_selection:: traits:: error_reporting:: suggestions:: InferCtxtExt ;
10
+ use rustc_trait_selection:: traits:: error_reporting:: suggestions:: TypeErrCtxtExt ;
11
11
use rustc_trait_selection:: traits:: { self , FulfillmentError } ;
12
12
13
13
declare_clippy_lint ! {
@@ -90,7 +90,7 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
90
90
|db| {
91
91
cx. tcx . infer_ctxt ( ) . enter ( |infcx| {
92
92
for FulfillmentError { obligation, .. } in send_errors {
93
- infcx. maybe_note_obligation_cause_for_async_await ( db, & obligation) ;
93
+ infcx. err_ctxt ( ) . maybe_note_obligation_cause_for_async_await ( db, & obligation) ;
94
94
if let Trait ( trait_pred) = obligation. predicate . kind ( ) . skip_binder ( ) {
95
95
db. note ( & format ! (
96
96
"`{}` doesn't implement `{}`" ,
You can’t perform that action at this time.
0 commit comments