aboutsummaryrefslogtreecommitdiff
path: root/crates/hir_ty/src/infer
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-12-12 14:35:38 +0000
committerGitHub <[email protected]>2020-12-12 14:35:38 +0000
commit479d1f7eec22c3564867223e2093f14774092528 (patch)
tree0b7b74f69d33ca5c86267ace1ac38c2c15248e50 /crates/hir_ty/src/infer
parent64a1c9810d5979cfd0fe6e7c385d9ca3caac2163 (diff)
parent11f86641829273e2b2b7023c2028bb475fce58ee (diff)
Merge #6818
6818: Add Lifetimes to the HIR r=matklad a=Veykril This doesn't handle resolve yet as I don't know yet how that will be used. I'll get to that once I start moving the lifetime reference PR to the hir. This also adds a new `hir` name type for lifetimes and labels, `hir::LifetimeName`. Co-authored-by: Lukas Wirth <[email protected]>
Diffstat (limited to 'crates/hir_ty/src/infer')
-rw-r--r--crates/hir_ty/src/infer/expr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/hir_ty/src/infer/expr.rs b/crates/hir_ty/src/infer/expr.rs
index d7ad198b3..ca005bc99 100644
--- a/crates/hir_ty/src/infer/expr.rs
+++ b/crates/hir_ty/src/infer/expr.rs
@@ -862,6 +862,7 @@ impl<'a> InferenceContext<'a> {
862 let ty = self.make_ty(type_ref); 862 let ty = self.make_ty(type_ref);
863 substs.push(ty); 863 substs.push(ty);
864 } 864 }
865 GenericArg::Lifetime(_) => {}
865 } 866 }
866 } 867 }
867 }; 868 };