From 0acdb730769cfb040ffc5e2c87f83b19fd3ce291 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Fri, 1 Jan 2021 10:06:42 +0100 Subject: Add ConstParams to the HIR --- crates/hir_ty/src/infer/path.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/hir_ty/src/infer') diff --git a/crates/hir_ty/src/infer/path.rs b/crates/hir_ty/src/infer/path.rs index 80d7ed10e..5d541104e 100644 --- a/crates/hir_ty/src/infer/path.rs +++ b/crates/hir_ty/src/infer/path.rs @@ -89,6 +89,7 @@ impl<'a> InferenceContext<'a> { return None; } } + ValueNs::GenericParam(it) => return Some(self.db.const_param_ty(it)), }; let ty = self.db.value_ty(typable); -- cgit v1.2.3