File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,12 @@ lint_renamed_or_removed_lint = {$msg}
51
51
.suggestion = use the new name
52
52
53
53
lint_suspicious_double_ref_op =
54
- using `.{ $call } ()` on a double reference, which returns `{ $ty } ` instead of { $op } the inner type
54
+ using `.{ $call } ()` on a double reference, which returns `{ $ty } ` instead of { $op ->
55
+ *[ should_not_happen ] [{ $op } ]
56
+ [ deref ] dereferencing
57
+ [ borrow ] borrowing
58
+ [ clone ] cloning
59
+ } the inner type
55
60
56
61
lint_unknown_lint =
57
62
unknown lint: `{ $name } `
Original file line number Diff line number Diff line change @@ -103,9 +103,9 @@ impl<'tcx> LateLintPass<'tcx> for NoopMethodCall {
103
103
let Some ( name) = cx. tcx . get_diagnostic_name ( i. def_id ( ) ) else { return } ;
104
104
105
105
let op = match name {
106
- sym:: noop_method_borrow => "borrowing " ,
107
- sym:: noop_method_clone => "cloning " ,
108
- sym:: noop_method_deref => "dereferencing " ,
106
+ sym:: noop_method_borrow => "borrow " ,
107
+ sym:: noop_method_clone => "clone " ,
108
+ sym:: noop_method_deref => "deref " ,
109
109
_ => return ,
110
110
} ;
111
111
You can’t perform that action at this time.
0 commit comments