Skip to content

Commit c120be2

Browse files
committed
fix: handle new TypeBoundKind variant
1 parent 8d20290 commit c120be2

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

src/tools/rust-analyzer/crates/hir-def/src/hir/type_ref.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ impl TypeBound {
379379
None => TypeBound::Error,
380380
}
381381
}
382+
ast::TypeBoundKind::Use(_) => TypeBound::Error,
382383
ast::TypeBoundKind::Lifetime(lifetime) => {
383384
TypeBound::Lifetime(LifetimeRef::new(&lifetime))
384385
}

0 commit comments

Comments
 (0)