Skip to content

Commit b87e4f3

Browse files
committed
Remove redundant 'static in the compiler
1 parent a687420 commit b87e4f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_feature/src/builtin_attrs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ pub fn is_builtin_attr_name(name: Symbol) -> bool {
598598
BUILTIN_ATTRIBUTE_MAP.get(&name).is_some()
599599
}
600600

601-
pub static BUILTIN_ATTRIBUTE_MAP: SyncLazy<FxHashMap<Symbol, &'static BuiltinAttribute>> =
601+
pub static BUILTIN_ATTRIBUTE_MAP: SyncLazy<FxHashMap<Symbol, &BuiltinAttribute>> =
602602
SyncLazy::new(|| {
603603
let mut map = FxHashMap::default();
604604
for attr in BUILTIN_ATTRIBUTES.iter() {

compiler/rustc_parse/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use std::str;
2222

2323
use tracing::{debug, info};
2424

25-
pub const MACRO_ARGUMENTS: Option<&'static str> = Some("macro arguments");
25+
pub const MACRO_ARGUMENTS: Option<&str> = Some("macro arguments");
2626

2727
#[macro_use]
2828
pub mod parser;

0 commit comments

Comments
 (0)