diff options
| author | Tamir Duberstein <tamird@gmail.com> | 2020-07-07 11:12:44 -0400 |
|---|---|---|
| committer | Tamir Duberstein <tamird@google.com> | 2020-07-10 07:39:28 -0400 |
| commit | 62cf767a4a39b47677d18110359d9e7152dc9d1c (patch) | |
| tree | 8bc162cb6f8e309f513cfccff3ab3969b10333c6 /src/librustdoc/html/render.rs | |
| parent | e59b08e62ea691916d2f063cac5aab4634128022 (diff) | |
| download | rust-62cf767a4a39b47677d18110359d9e7152dc9d1c.tar.gz rust-62cf767a4a39b47677d18110359d9e7152dc9d1c.zip | |
Avoid "whitelist"
Other terms are more inclusive and precise.
Diffstat (limited to 'src/librustdoc/html/render.rs')
| -rw-r--r-- | src/librustdoc/html/render.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index f769a0920d1..8bba21a2e7a 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -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; } |
