diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-02-01 08:35:37 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-02-08 07:37:02 +0000 |
| commit | 1fcd04ed49f2591e8667694bc623fde0ff6e42bc (patch) | |
| tree | 5775916bc18d7ffd2bec775a3253bc01b204568f /compiler/rustc_hir | |
| parent | 8a5847f5c40be178d3dd6fa7ce6fecfb837cabbb (diff) | |
| download | rust-1fcd04ed49f2591e8667694bc623fde0ff6e42bc.tar.gz rust-1fcd04ed49f2591e8667694bc623fde0ff6e42bc.zip | |
inline a function that is only used in clippy
Diffstat (limited to 'compiler/rustc_hir')
| -rw-r--r-- | compiler/rustc_hir/src/hir.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_hir/src/hir.rs b/compiler/rustc_hir/src/hir.rs index ff50086ff8f..c89ad079448 100644 --- a/compiler/rustc_hir/src/hir.rs +++ b/compiler/rustc_hir/src/hir.rs @@ -163,10 +163,6 @@ impl Lifetime { (LifetimeSuggestionPosition::Normal, self.ident.span) } } - - pub fn is_static(&self) -> bool { - self.res == LifetimeName::Static - } } /// A `Path` is essentially Rust's notion of a name; for instance, |
