diff options
| author | est31 <MTest31@outlook.com> | 2020-10-18 17:28:00 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2020-10-18 17:30:15 +0200 |
| commit | b87e4f36e70862a9506109cc29528e490a5d22da (patch) | |
| tree | c0d78ba3d142834ef0881fb7fff5718680a4e5fb /compiler/rustc_feature/src | |
| parent | a687420d1766b01583858ec2dee30fd57acead41 (diff) | |
| download | rust-b87e4f36e70862a9506109cc29528e490a5d22da.tar.gz rust-b87e4f36e70862a9506109cc29528e490a5d22da.zip | |
Remove redundant 'static in the compiler
Diffstat (limited to 'compiler/rustc_feature/src')
| -rw-r--r-- | compiler/rustc_feature/src/builtin_attrs.rs | 2 |
1 files changed, 1 insertions, 1 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() { |
