diff options
author | Lukas Wirth <[email protected]> | 2021-04-06 09:50:55 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2021-04-06 09:50:55 +0100 |
commit | 08dc69599efb4961319c0118b789d3abb264b7fa (patch) | |
tree | f4951c835dd6f4840ae02ba5c06d5da44aedae94 /crates/hir_ty/src/lib.rs | |
parent | b98c681cb7ede9fd6a8683b1edd83a5b18502178 (diff) |
Use a constructor function for Static lifetimes
Diffstat (limited to 'crates/hir_ty/src/lib.rs')
-rw-r--r-- | crates/hir_ty/src/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/hir_ty/src/lib.rs b/crates/hir_ty/src/lib.rs index 1dfe2075c..bccc73449 100644 --- a/crates/hir_ty/src/lib.rs +++ b/crates/hir_ty/src/lib.rs | |||
@@ -495,3 +495,7 @@ pub fn to_chalk_trait_id(id: TraitId) -> ChalkTraitId { | |||
495 | pub fn from_chalk_trait_id(id: ChalkTraitId) -> TraitId { | 495 | pub fn from_chalk_trait_id(id: ChalkTraitId) -> TraitId { |
496 | salsa::InternKey::from_intern_id(id.0) | 496 | salsa::InternKey::from_intern_id(id.0) |
497 | } | 497 | } |
498 | |||
499 | pub fn static_lifetime() -> Lifetime { | ||
500 | LifetimeData::Static.intern(&Interner) | ||
501 | } | ||