internal: Add StaticLifetime to hir API

This commit is contained in:
Lukas Wirth 2024-05-16 08:02:51 +02:00
parent abb3ed5db6
commit aaa5426fec
14 changed files with 70 additions and 40 deletions

View file

@ -2563,6 +2563,15 @@ impl HasVisibility for TypeAlias {
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct StaticLifetime;
impl StaticLifetime {
pub fn name(self) -> Name {
known::STATIC_LIFETIME
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct BuiltinType {
pub(crate) inner: hir_def::builtin_type::BuiltinType,