Merge pull request #18379 from usamoi/master

fix dyn incompatible hint message
This commit is contained in:
Lukas Wirth 2024-10-23 10:25:43 +00:00 committed by GitHub
commit 63b0fbecb1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1042,7 +1042,7 @@ fn render_dyn_compatibility(
}
DynCompatibilityViolation::HasNonCompatibleSuperTrait(super_trait) => {
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());
}
}
}