@@ -53,8 +53,7 @@ macro_rules! declare_features {
53
53
/// Represents active features that are currently being implemented or
54
54
/// currently being considered for addition/removal.
55
55
const ACTIVE_FEATURES :
56
- & ' static [ ( & ' static str , & ' static str , Option <u32 >,
57
- Option <Edition >, fn ( & mut Features , Span ) ) ] =
56
+ & [ ( & str , & str , Option <u32 >, Option <Edition >, fn ( & mut Features , Span ) ) ] =
58
57
& [ $( ( stringify!( $feature) , $ver, $issue, $edition, set!( $feature) ) ) ,+] ;
59
58
60
59
/// A set of features to be used by later passes.
@@ -771,7 +770,7 @@ pub fn is_builtin_attr(attr: &ast::Attribute) -> bool {
771
770
}
772
771
773
772
// Attributes that have a special meaning to rustc or rustdoc
774
- pub const BUILTIN_ATTRIBUTES : & ' static [ ( & ' static str , AttributeType , AttributeGate ) ] = & [
773
+ pub const BUILTIN_ATTRIBUTES : & [ ( & str , AttributeType , AttributeGate ) ] = & [
775
774
// Normal attributes
776
775
777
776
( "warn" , Normal , Ungated ) ,
@@ -1385,48 +1384,48 @@ fn leveled_feature_err<'a>(sess: &'a ParseSess, feature: &str, span: Span, issue
1385
1384
1386
1385
}
1387
1386
1388
- const EXPLAIN_BOX_SYNTAX : & ' static str =
1387
+ const EXPLAIN_BOX_SYNTAX : & str =
1389
1388
"box expression syntax is experimental; you can call `Box::new` instead." ;
1390
1389
1391
- pub const EXPLAIN_STMT_ATTR_SYNTAX : & ' static str =
1390
+ pub const EXPLAIN_STMT_ATTR_SYNTAX : & str =
1392
1391
"attributes on expressions are experimental." ;
1393
1392
1394
- pub const EXPLAIN_ASM : & ' static str =
1393
+ pub const EXPLAIN_ASM : & str =
1395
1394
"inline assembly is not stable enough for use and is subject to change" ;
1396
1395
1397
- pub const EXPLAIN_GLOBAL_ASM : & ' static str =
1396
+ pub const EXPLAIN_GLOBAL_ASM : & str =
1398
1397
"`global_asm!` is not stable enough for use and is subject to change" ;
1399
1398
1400
- pub const EXPLAIN_CUSTOM_TEST_FRAMEWORKS : & ' static str =
1399
+ pub const EXPLAIN_CUSTOM_TEST_FRAMEWORKS : & str =
1401
1400
"custom test frameworks are an unstable feature" ;
1402
1401
1403
- pub const EXPLAIN_LOG_SYNTAX : & ' static str =
1402
+ pub const EXPLAIN_LOG_SYNTAX : & str =
1404
1403
"`log_syntax!` is not stable enough for use and is subject to change" ;
1405
1404
1406
- pub const EXPLAIN_CONCAT_IDENTS : & ' static str =
1405
+ pub const EXPLAIN_CONCAT_IDENTS : & str =
1407
1406
"`concat_idents` is not stable enough for use and is subject to change" ;
1408
1407
1409
- pub const EXPLAIN_FORMAT_ARGS_NL : & ' static str =
1408
+ pub const EXPLAIN_FORMAT_ARGS_NL : & str =
1410
1409
"`format_args_nl` is only for internal language use and is subject to change" ;
1411
1410
1412
- pub const EXPLAIN_TRACE_MACROS : & ' static str =
1411
+ pub const EXPLAIN_TRACE_MACROS : & str =
1413
1412
"`trace_macros` is not stable enough for use and is subject to change" ;
1414
- pub const EXPLAIN_ALLOW_INTERNAL_UNSTABLE : & ' static str =
1413
+ pub const EXPLAIN_ALLOW_INTERNAL_UNSTABLE : & str =
1415
1414
"allow_internal_unstable side-steps feature gating and stability checks" ;
1416
- pub const EXPLAIN_ALLOW_INTERNAL_UNSAFE : & ' static str =
1415
+ pub const EXPLAIN_ALLOW_INTERNAL_UNSAFE : & str =
1417
1416
"allow_internal_unsafe side-steps the unsafe_code lint" ;
1418
1417
1419
- pub const EXPLAIN_CUSTOM_DERIVE : & ' static str =
1418
+ pub const EXPLAIN_CUSTOM_DERIVE : & str =
1420
1419
"`#[derive]` for custom traits is deprecated and will be removed in the future." ;
1421
1420
1422
- pub const EXPLAIN_DEPR_CUSTOM_DERIVE : & ' static str =
1421
+ pub const EXPLAIN_DEPR_CUSTOM_DERIVE : & str =
1423
1422
"`#[derive]` for custom traits is deprecated and will be removed in the future. \
1424
1423
Prefer using procedural macro custom derive.";
1425
1424
1426
- pub const EXPLAIN_DERIVE_UNDERSCORE : & ' static str =
1425
+ pub const EXPLAIN_DERIVE_UNDERSCORE : & str =
1427
1426
"attributes of the form `#[derive_*]` are reserved for the compiler" ;
1428
1427
1429
- pub const EXPLAIN_UNSIZED_TUPLE_COERCION : & ' static str =
1428
+ pub const EXPLAIN_UNSIZED_TUPLE_COERCION : & str =
1430
1429
"unsized tuple coercion is not stable enough for use and is subject to change" ;
1431
1430
1432
1431
struct PostExpansionVisitor < ' a > {
0 commit comments