File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,8 @@ impl<'tcx> LateLintPass<'tcx> for FutureNotSend {
9292 |db| {
9393 cx. tcx . infer_ctxt ( ) . enter ( |infcx| {
9494 for FulfillmentError { obligation, .. } in send_errors {
95- infcx. maybe_note_obligation_cause_for_async_await (
96- db,
97- & obligation,
98- ) ;
99- if let Trait ( trait_pred, _) =
100- obligation. predicate . skip_binders ( )
101- {
95+ infcx. maybe_note_obligation_cause_for_async_await ( db, & obligation) ;
96+ if let Trait ( trait_pred, _) = obligation. predicate . skip_binders ( ) {
10297 db. note ( & format ! (
10398 "`{}` doesn't implement `{}`" ,
10499 trait_pred. self_ty( ) ,
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ use rustc_middle::ty;
1212use rustc_session:: { declare_tool_lint, impl_lint_pass} ;
1313use rustc_span:: Span ;
1414use rustc_target:: abi:: LayoutOf ;
15- use rustc_target:: spec:: Target ;
1615use rustc_target:: spec:: abi:: Abi ;
16+ use rustc_target:: spec:: Target ;
1717
1818declare_clippy_lint ! {
1919 /// **What it does:** Checks for functions taking arguments by reference, where
You can’t perform that action at this time.
0 commit comments