diff options
author | Lukas Wirth <[email protected]> | 2020-12-15 18:23:51 +0000 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2020-12-16 13:16:09 +0000 |
commit | dd496223f50232fe98312ee8edc89eb4b5ee3d85 (patch) | |
tree | 4d50c04ca78f9458ab536ff1edee76eba6ab1957 /crates/hir_def/src/item_tree | |
parent | d34611633b3b2404188b9e12b08c5def589808c2 (diff) |
Node-ify lifetimes
Diffstat (limited to 'crates/hir_def/src/item_tree')
-rw-r--r-- | crates/hir_def/src/item_tree/lower.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_def/src/item_tree/lower.rs b/crates/hir_def/src/item_tree/lower.rs index 1dc06a211..dd3409762 100644 --- a/crates/hir_def/src/item_tree/lower.rs +++ b/crates/hir_def/src/item_tree/lower.rs | |||
@@ -300,12 +300,12 @@ impl Ctx { | |||
300 | ast::SelfParamKind::Owned => self_type, | 300 | ast::SelfParamKind::Owned => self_type, |
301 | ast::SelfParamKind::Ref => TypeRef::Reference( | 301 | ast::SelfParamKind::Ref => TypeRef::Reference( |
302 | Box::new(self_type), | 302 | Box::new(self_type), |
303 | self_param.lifetime_token().map(LifetimeRef::from_token), | 303 | self_param.lifetime().as_ref().map(LifetimeRef::new), |
304 | Mutability::Shared, | 304 | Mutability::Shared, |
305 | ), | 305 | ), |
306 | ast::SelfParamKind::MutRef => TypeRef::Reference( | 306 | ast::SelfParamKind::MutRef => TypeRef::Reference( |
307 | Box::new(self_type), | 307 | Box::new(self_type), |
308 | self_param.lifetime_token().map(LifetimeRef::from_token), | 308 | self_param.lifetime().as_ref().map(LifetimeRef::new), |
309 | Mutability::Mut, | 309 | Mutability::Mut, |
310 | ), | 310 | ), |
311 | } | 311 | } |