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 {
92
92
|db| {
93
93
cx. tcx . infer_ctxt ( ) . enter ( |infcx| {
94
94
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 ( ) {
102
97
db. note ( & format ! (
103
98
"`{}` doesn't implement `{}`" ,
104
99
trait_pred. self_ty( ) ,
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ use rustc_middle::ty;
12
12
use rustc_session:: { declare_tool_lint, impl_lint_pass} ;
13
13
use rustc_span:: Span ;
14
14
use rustc_target:: abi:: LayoutOf ;
15
- use rustc_target:: spec:: Target ;
16
15
use rustc_target:: spec:: abi:: Abi ;
16
+ use rustc_target:: spec:: Target ;
17
17
18
18
declare_clippy_lint ! {
19
19
/// **What it does:** Checks for functions taking arguments by reference, where
You can’t perform that action at this time.
0 commit comments