pub fn check_dirty_clean_annotations<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>) {
// can't add `#[rustc_dirty]` etc without opting in to this feature
- if !tcx.sess.features.borrow().rustc_attrs {
+ if !tcx.features().rustc_attrs {
return;
}
//
//HirItem::ItemTrait(..) => ("ItemTrait", LABELS_TRAIT),
- // `impl Trait for .. {}`
- HirItem::ItemAutoImpl(..) => ("ItemAutoImpl", LABELS_IMPL),
-
// An implementation, eg `impl<A> Trait for Foo { .. }`
HirItem::ItemImpl(..) => ("ItemImpl", LABELS_IMPL),