Implement built-in attribute macro #[cfg_eval]

This commit is contained in:
Vadim Petrochenkov
2021-03-06 21:33:02 +03:00
parent 069e612e73
commit 5dad6c2575
11 changed files with 259 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ mod asm;
mod assert;
mod cfg;
mod cfg_accessible;
mod cfg_eval;
mod compile_error;
mod concat;
mod concat_idents;
@@ -89,6 +90,7 @@ pub fn register_builtin_macros(resolver: &mut dyn ResolverExpand) {
register_attr! {
bench: test::expand_bench,
cfg_accessible: cfg_accessible::Expander,
cfg_eval: cfg_eval::expand,
derive: derive::Expander,
global_allocator: global_allocator::expand,
test: test::expand_test,