Skip to content

Commit f0919ea

Browse files
committed
Generate the features structure and arrays with new macros.
This is more readable, safer, and allows for a much more efficient parsing.
1 parent a4e153b commit f0919ea

File tree

2 files changed

+196
-421
lines changed

2 files changed

+196
-421
lines changed

src/libsyntax/ext/expand.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -1345,14 +1345,14 @@ impl<'feat> ExpansionConfig<'feat> {
13451345
}
13461346

13471347
feature_tests! {
1348-
fn enable_quotes = allow_quote,
1349-
fn enable_asm = allow_asm,
1350-
fn enable_log_syntax = allow_log_syntax,
1351-
fn enable_concat_idents = allow_concat_idents,
1352-
fn enable_trace_macros = allow_trace_macros,
1348+
fn enable_quotes = quote,
1349+
fn enable_asm = asm,
1350+
fn enable_log_syntax = log_syntax,
1351+
fn enable_concat_idents = concat_idents,
1352+
fn enable_trace_macros = trace_macros,
13531353
fn enable_allow_internal_unstable = allow_internal_unstable,
1354-
fn enable_custom_derive = allow_custom_derive,
1355-
fn enable_pushpop_unsafe = allow_pushpop_unsafe,
1354+
fn enable_custom_derive = custom_derive,
1355+
fn enable_pushpop_unsafe = pushpop_unsafe,
13561356
}
13571357
}
13581358

0 commit comments

Comments
 (0)