1
Fork 0

fmt-debug option

Allows disabling `fmt::Debug` derive and debug formatting.
This commit is contained in:
Kornel 2024-04-14 13:52:58 +01:00
parent 100fde5246
commit 88b9edc9db
No known key found for this signature in database
38 changed files with 285 additions and 56 deletions

View file

@ -37,6 +37,8 @@ const GATED_CFGS: &[GatedCfg] = &[
(sym::relocation_model, sym::cfg_relocation_model, cfg_fn!(cfg_relocation_model)),
(sym::sanitizer_cfi_generalize_pointers, sym::cfg_sanitizer_cfi, cfg_fn!(cfg_sanitizer_cfi)),
(sym::sanitizer_cfi_normalize_integers, sym::cfg_sanitizer_cfi, cfg_fn!(cfg_sanitizer_cfi)),
// this is consistent with naming of the compiler flag it's for
(sym::fmt_debug, sym::fmt_debug, cfg_fn!(fmt_debug)),
];
/// Find a gated cfg determined by the `pred`icate which is given the cfg's name.