diff options
| author | bors <bors@rust-lang.org> | 2020-10-18 21:02:05 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-10-18 21:02:05 +0000 |
| commit | b1496c6e606dd908dd651ac2cce89815e10d7fc5 (patch) | |
| tree | aae875ed56f60c1311684a5a2d897e3369d0e77f /compiler | |
| parent | 187b8771dca797ccac6b5c8a87db1c3afd11172e (diff) | |
| parent | b87e4f36e70862a9506109cc29528e490a5d22da (diff) | |
| download | rust-b1496c6e606dd908dd651ac2cce89815e10d7fc5.tar.gz rust-b1496c6e606dd908dd651ac2cce89815e10d7fc5.zip | |
Auto merge of #78075 - est31:remove_redundant_static, r=jonas-schievink
Remove redundant 'static
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_feature/src/builtin_attrs.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_parse/src/lib.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_feature/src/builtin_attrs.rs b/compiler/rustc_feature/src/builtin_attrs.rs index 527a49b0538..83aa1f62106 100644 --- a/compiler/rustc_feature/src/builtin_attrs.rs +++ b/compiler/rustc_feature/src/builtin_attrs.rs @@ -598,7 +598,7 @@ pub fn is_builtin_attr_name(name: Symbol) -> bool { BUILTIN_ATTRIBUTE_MAP.get(&name).is_some() } -pub static BUILTIN_ATTRIBUTE_MAP: SyncLazy<FxHashMap<Symbol, &'static BuiltinAttribute>> = +pub static BUILTIN_ATTRIBUTE_MAP: SyncLazy<FxHashMap<Symbol, &BuiltinAttribute>> = SyncLazy::new(|| { let mut map = FxHashMap::default(); for attr in BUILTIN_ATTRIBUTES.iter() { diff --git a/compiler/rustc_parse/src/lib.rs b/compiler/rustc_parse/src/lib.rs index 25deb46e147..9a187c6285e 100644 --- a/compiler/rustc_parse/src/lib.rs +++ b/compiler/rustc_parse/src/lib.rs @@ -22,7 +22,7 @@ use std::str; use tracing::{debug, info}; -pub const MACRO_ARGUMENTS: Option<&'static str> = Some("macro arguments"); +pub const MACRO_ARGUMENTS: Option<&str> = Some("macro arguments"); #[macro_use] pub mod parser; |
