Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir_def/src/path.rs')
| -rw-r--r-- | crates/hir_def/src/path.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/hir_def/src/path.rs b/crates/hir_def/src/path.rs index aea1e3ec34..37c09a0984 100644 --- a/crates/hir_def/src/path.rs +++ b/crates/hir_def/src/path.rs @@ -6,7 +6,11 @@ use std::{ iter, }; -use crate::{body::LowerCtx, intern::Interned, type_ref::LifetimeRef}; +use crate::{ + body::LowerCtx, + intern::Interned, + type_ref::{ConstScalarOrPath, LifetimeRef}, +}; use hir_expand::name::{name, Name}; use syntax::ast; @@ -78,6 +82,7 @@ pub struct AssociatedTypeBinding { pub enum GenericArg { Type(TypeRef), Lifetime(LifetimeRef), + Const(ConstScalarOrPath), } impl Path { |