File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 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};
77use rustc_middle:: ty:: { EarlyBinder , Opaque , PredicateKind :: Trait } ;
88use rustc_session:: { declare_lint_pass, declare_tool_lint} ;
99use rustc_span:: { sym, Span } ;
10- use rustc_trait_selection:: traits:: error_reporting:: suggestions:: InferCtxtExt ;
10+ use rustc_trait_selection:: traits:: error_reporting:: suggestions:: TypeErrCtxtExt ;
1111use rustc_trait_selection:: traits:: { self , FulfillmentError } ;
1212
1313declare_clippy_lint ! {
@@ -90,7 +90,7 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
9090 |db| {
9191 cx. tcx . infer_ctxt ( ) . enter ( |infcx| {
9292 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) ;
9494 if let Trait ( trait_pred) = obligation. predicate . kind ( ) . skip_binder ( ) {
9595 db. note ( & format ! (
9696 "`{}` doesn't implement `{}`" ,
You can’t perform that action at this time.
0 commit comments