fix dyn incompatible hint message

This commit is contained in:
usamoi 2024-10-23 18:09:17 +08:00
parent af7c97f97a
commit b32127e0b0

View file

@ -1042,7 +1042,7 @@ fn render_dyn_compatibility(
} }
DynCompatibilityViolation::HasNonCompatibleSuperTrait(super_trait) => { DynCompatibilityViolation::HasNonCompatibleSuperTrait(super_trait) => {
let name = hir::Trait::from(super_trait).name(db); let name = hir::Trait::from(super_trait).name(db);
format_to!(buf, "has a object unsafe supertrait `{}`", name.as_str()); format_to!(buf, "has a dyn incompatible supertrait `{}`", name.as_str());
} }
} }
} }