1
Fork 0

Avoid "whitelist"

Other terms are more inclusive and precise.
This commit is contained in:
Tamir Duberstein 2020-07-07 11:12:44 -04:00 committed by Tamir Duberstein
parent e59b08e62e
commit 62cf767a4a
No known key found for this signature in database
GPG key ID: 32E33EC15E1FEF3C
55 changed files with 296 additions and 278 deletions

View file

@ -3151,7 +3151,7 @@ fn item_enum(w: &mut Buffer, cx: &Context, it: &clean::Item, e: &clean::Enum) {
render_assoc_items(w, cx, it, it.def_id, AssocItemRender::All)
}
const ATTRIBUTE_WHITELIST: &[Symbol] = &[
const ALLOWED_ATTRIBUTES: &[Symbol] = &[
sym::export_name,
sym::lang,
sym::link_section,
@ -3173,7 +3173,7 @@ fn render_attributes(w: &mut Buffer, it: &clean::Item, top: bool) {
let mut attrs = String::new();
for attr in &it.attrs.other_attrs {
if !ATTRIBUTE_WHITELIST.contains(&attr.name_or_empty()) {
if !ALLOWED_ATTRIBUTES.contains(&attr.name_or_empty()) {
continue;
}