1
Fork 0

Add #[cfg(panic = "...")]

This commit is contained in:
David Hewitt 2020-07-25 19:02:49 +01:00
parent 25f6938da4
commit 8d43b3cbb9
15 changed files with 136 additions and 10 deletions

View file

@ -33,6 +33,7 @@ const GATED_CFGS: &[GatedCfg] = &[
),
(sym::sanitize, sym::cfg_sanitize, cfg_fn!(cfg_sanitize)),
(sym::version, sym::cfg_version, cfg_fn!(cfg_version)),
(sym::panic, sym::cfg_panic, cfg_fn!(cfg_panic)),
];
/// Find a gated cfg determined by the `pred`icate which is given the cfg's name.