Make inlay hint location links work for more types

This commit is contained in:
Lukas Wirth 2023-01-14 13:27:32 +01:00
parent f2444b2a40
commit 27ba598dfe
7 changed files with 220 additions and 99 deletions

View file

@ -270,7 +270,7 @@ impl HirDisplay for TypeParam {
let has_only_not_sized_bound = predicates.is_empty();
if !has_only_sized_bound || has_only_not_sized_bound {
let default_sized = SizedByDefault::Sized { anchor: krate };
write_bounds_like_dyn_trait_with_prefix(":", &predicates, default_sized, f)?;
write_bounds_like_dyn_trait_with_prefix(f, ":", &predicates, default_sized)?;
}
Ok(())
}