diff options
author | Marcel Hlopko <hlopko@google.com> | 2021-02-11 08:58:46 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2021-02-18 17:25:13 +0100 |
commit | 0e25962c4e69aef647e7275fa7bc7545dbb8cd0b (patch) | |
tree | f51e49624d79a707069bbfdeb0f15b78219cec94 /src/codegen/impl_debug.rs | |
parent | e59aa9218b0e862cbaed319582bf0b692dfacde2 (diff) |
Rename whitelist -> allowlist and blacklist -> blocklist
For the commandline arguments I added undocumented aliases to old flags,
to stay backwards compatible.
Diffstat (limited to 'src/codegen/impl_debug.rs')
-rw-r--r-- | src/codegen/impl_debug.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen/impl_debug.rs b/src/codegen/impl_debug.rs index ed1a5e25..b8fdd0d4 100644 --- a/src/codegen/impl_debug.rs +++ b/src/codegen/impl_debug.rs @@ -120,9 +120,9 @@ impl<'a> ImplDebug<'a> for Item { ) -> Option<(String, Vec<proc_macro2::TokenStream>)> { let name_ident = ctx.rust_ident(name); - // We don't know if blacklisted items `impl Debug` or not, so we can't + // We don't know if blocklisted items `impl Debug` or not, so we can't // add them to the format string we're building up. - if !ctx.whitelisted_items().contains(&self.id()) { + if !ctx.allowlisted_items().contains(&self.id()) { return None; } |