Skip to content

Commit a28dffa

Browse files
Merge pull request #20228 from ChayimFriedman2/fix-use-display
fix: Fix display of `use<>` syntax
2 parents c1cf45a + e6a8a13 commit a28dffa

File tree

1 file changed

+1
-0
lines changed
  • src/tools/rust-analyzer/crates/hir-ty/src

1 file changed

+1
-0
lines changed

src/tools/rust-analyzer/crates/hir-ty/src/display.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2328,6 +2328,7 @@ impl HirDisplayWithExpressionStore for TypeBound {
23282328
store[*path].hir_fmt(f, store)
23292329
}
23302330
TypeBound::Use(args) => {
2331+
write!(f, "use<")?;
23312332
let edition = f.edition();
23322333
let last = args.len().saturating_sub(1);
23332334
for (idx, arg) in args.iter().enumerate() {

0 commit comments

Comments
 (0)