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
Running crater to see how common that pattern is. The Lint would have to be at most warn-by-default because there are a handful of cases detected that are actually perfectly reasonable (`type` aliases with per-platform `cfg`, or macros) which are now at best half-heartedly handled.
I've detected a handful of cases where we're calling `.into()` unnecessarily in the `rustc` codebase as well, and changed those.
Copy file name to clipboardexpand all lines: compiler/rustc_lint/messages.ftl
+2
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,8 @@ lint_builtin_no_mangle_static = declaration of a `no_mangle` static
129
129
lint_builtin_non_shorthand_field_patterns = the `{$ident}:` in this pattern is redundant
130
130
.suggestion = use shorthand field pattern
131
131
132
+
lint_self_type_conversion = this conversion is useless `{$source}` to `{$target}`
133
+
132
134
lint_builtin_overridden_symbol_name =
133
135
the linker's behavior with multiple libraries exporting duplicate symbol names is undefined and Rust cannot provide guarantees when you manually override them
0 commit comments