mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
internal: Add StaticLifetime to hir API
This commit is contained in:
parent
abb3ed5db6
commit
aaa5426fec
14 changed files with 70 additions and 40 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue