You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler/rustc_error_messages/locales/en-US/lint.ftl
+4
Original file line number
Diff line number
Diff line change
@@ -124,3 +124,7 @@ lint-non-snake-case = {$sort} `{$name}` should have a snake case name
124
124
lint-non-upper_case-global = {$sort} `{$name}` should have an upper case name
125
125
.suggestion = convert the identifier to upper case
126
126
.label = should have an UPPER_CASE name
127
+
128
+
lint-noop-method-call = call to `.{$method}()` on a reference in this situation does nothing
129
+
.label = unnecessary method call
130
+
.note = the type `{$receiver_ty}` which `{$method}` is being called on is the same as the type returned from `{$method}`, so the method call does not do anything and can be removed
0 commit comments