remove unnecessary check

This commit is contained in:
lcnr 2022-04-29 15:55:54 +02:00
parent 209dd2cb0a
commit dc184b4e17

View file

@ -137,9 +137,7 @@ impl<'tcx> InherentCollect<'tcx> {
return;
}
if self.tcx.features().rustc_attrs
&& self.tcx.has_attr(def_id, sym::rustc_has_incoherent_inherent_impls)
{
if self.tcx.has_attr(def_id, sym::rustc_has_incoherent_inherent_impls) {
let hir::ItemKind::Impl(hir::Impl { items, .. }) = item.kind else {
bug!("expected `impl` item: {:?}", item);
};