Pass a Symbol to check_name, emit_feature_err, and related functions.

This commit is contained in:
Nicholas Nethercote 2019-05-08 13:21:18 +10:00
parent 79602c87b5
commit fb084a48e2
114 changed files with 671 additions and 621 deletions

View file

@ -5,6 +5,7 @@ use crate::passes::Pass;
use syntax::attr;
use syntax_pos::FileName;
use syntax::symbol::sym;
use std::collections::BTreeMap;
use std::ops;
@ -131,7 +132,7 @@ impl fold::DocFolder for CoverageCalculator {
return Some(i);
}
clean::ImplItem(ref impl_)
if attr::contains_name(&i.attrs.other_attrs, "automatically_derived")
if attr::contains_name(&i.attrs.other_attrs, sym::automatically_derived)
|| impl_.synthetic || impl_.blanket_impl.is_some() =>
{
// built-in derives get the `#[automatically_derived]` attribute, and