1
Fork 0

Compiler: Finalize dyn compatibility renaming

This commit is contained in:
León Orell Valerian Liehr 2025-01-22 05:14:07 +01:00
parent 01a26c026d
commit 57b5d3af62
No known key found for this signature in database
GPG key ID: D17A07215F68E713
111 changed files with 193 additions and 463 deletions

View file

@ -482,11 +482,10 @@ pub fn report_dyn_incompatibility<'tcx>(
for (span, msg) in iter::zip(multi_span, messages) {
note_span.push_span_label(span, msg);
}
// FIXME(dyn_compat_renaming): Update the URL.
err.span_note(
note_span,
"for a trait to be dyn compatible it needs to allow building a vtable\n\
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>",
for more information, visit <https://doc.rust-lang.org/reference/items/traits.html#dyn-compatibility>",
);
// Only provide the help if its a local trait, otherwise it's not actionable.