about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWinston H. <56998716+winstxnhdw@users.noreply.github.com>2024-07-25 10:58:25 +0000
committerWinston H. <56998716+winstxnhdw@users.noreply.github.com>2024-07-25 10:58:25 +0000
commit71e3d882816c2f9dd75f0eea13edf8487fd23ecd (patch)
tree4536366eb4c9421d94163667181475b6b0108b92
parent113c45847a7cb47ed4d93749d9d88fe97f5edbf5 (diff)
downloadrust-71e3d882816c2f9dd75f0eea13edf8487fd23ecd.tar.gz
rust-71e3d882816c2f9dd75f0eea13edf8487fd23ecd.zip
fix: handle new `TypeBoundKind` variant
-rw-r--r--src/tools/rust-analyzer/crates/hir-def/src/hir/type_ref.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/hir-def/src/hir/type_ref.rs b/src/tools/rust-analyzer/crates/hir-def/src/hir/type_ref.rs
index 9b054322588..59ebf9c299b 100644
--- a/src/tools/rust-analyzer/crates/hir-def/src/hir/type_ref.rs
+++ b/src/tools/rust-analyzer/crates/hir-def/src/hir/type_ref.rs
@@ -379,6 +379,7 @@ impl TypeBound {
                     None => TypeBound::Error,
                 }
             }
+            ast::TypeBoundKind::Use(_) => TypeBound::Error,
             ast::TypeBoundKind::Lifetime(lifetime) => {
                 TypeBound::Lifetime(LifetimeRef::new(&lifetime))
             }