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 cfgs 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.
Summary
If possible I would like to move the
cfg_ifmacro fromsrc/libstd/macros.rstosrc/libcore/macros.rs.Motivation
The
cfg_ifmacro could potentially increase the readability of somecfgs inno_stdcode. In particular it could dramatically improve the readability of some code inlibcoree.g.ffi::VaList(why I'm interested in moving it 😄). I don't see anything in the macro that would make it invalid inlibcore.