mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Merge pull request #18490 from ShoyuVanilla/dyn-compat-rename
minor: Rename `dyn compatible` to `dyn-compatible`
This commit is contained in:
commit
1042a8c22c
5 changed files with 9 additions and 8 deletions
|
@ -1009,10 +1009,10 @@ fn render_dyn_compatibility(
|
|||
safety: Option<DynCompatibilityViolation>,
|
||||
) {
|
||||
let Some(osv) = safety else {
|
||||
buf.push_str("Is Dyn compatible");
|
||||
buf.push_str("Is dyn-compatible");
|
||||
return;
|
||||
};
|
||||
buf.push_str("Is not Dyn compatible due to ");
|
||||
buf.push_str("Is not dyn-compatible due to ");
|
||||
match osv {
|
||||
DynCompatibilityViolation::SizedSelf => {
|
||||
buf.push_str("having a `Self: Sized` bound");
|
||||
|
@ -1055,7 +1055,7 @@ fn render_dyn_compatibility(
|
|||
}
|
||||
DynCompatibilityViolation::HasNonCompatibleSuperTrait(super_trait) => {
|
||||
let name = hir::Trait::from(super_trait).name(db);
|
||||
format_to!(buf, "having a dyn incompatible supertrait `{}`", name.as_str());
|
||||
format_to!(buf, "having a dyn-incompatible supertrait `{}`", name.as_str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9371,7 +9371,7 @@ trait Compat$0 {}
|
|||
|
||||
---
|
||||
|
||||
Is Dyn compatible
|
||||
Is dyn-compatible
|
||||
"#]],
|
||||
);
|
||||
check(
|
||||
|
@ -9393,7 +9393,7 @@ trait UnCompat$0 {
|
|||
|
||||
---
|
||||
|
||||
Is not Dyn compatible due to having a method `f` that is not dispatchable due to missing a receiver
|
||||
Is not dyn-compatible due to having a method `f` that is not dispatchable due to missing a receiver
|
||||
"#]],
|
||||
);
|
||||
check(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue