Closed
Description
Summary
If possible I would like to move the cfg_if
macro from src/libstd/macros.rs
to src/libcore/macros.rs
.
Motivation
The cfg_if
macro could potentially increase the readability of some cfg
s in no_std
code. In particular it could dramatically improve the readability of some code in libcore
e.g. ffi::VaList
(why I'm interested in moving it 😄). I don't see anything in the macro that would make it invalid in libcore
.