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
Auto merge of #106253 - nbdd0121:upcast, r=compiler-errors
Skip possible where_clause_object_safety lints when checking `multiple_supertrait_upcastable`
Fix#106247
To achieve this, I lifted the `WhereClauseReferencesSelf` out from `object_safety_violations` and move it into `is_object_safe` (which is changed to a new query).
cc `@dtolnay`
r? `@compiler-errors`
Copy file name to clipboardexpand all lines: compiler/rustc_error_messages/locales/en-US/lint.ftl
+2
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,8 @@ lint_cstring_ptr = getting the inner pointer of a temporary `CString`
100
100
.note = pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
101
101
.help = for more information, see https://doc.rust-lang.org/reference/destructors.html
102
102
103
+
lint_multple_supertrait_upcastable = `{$ident}` is object-safe and has multiple supertraits
0 commit comments