Merge pull request #20228 from ChayimFriedman2/fix-use-display

fix: Fix display of `use<>` syntax
This commit is contained in:
Chayim Refael Friedman 2025-07-10 21:19:38 +00:00 committed by GitHub
commit e2c8cefa63
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2328,6 +2328,7 @@ impl HirDisplayWithExpressionStore for TypeBound {
store[*path].hir_fmt(f, store)
}
TypeBound::Use(args) => {
write!(f, "use<")?;
let edition = f.edition();
let last = args.len().saturating_sub(1);
for (idx, arg) in args.iter().enumerate() {