Skip to content

Commit dc184b4

Browse files
committed
remove unnecessary check
1 parent 209dd2c commit dc184b4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

compiler/rustc_typeck/src/coherence/inherent_impls.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,7 @@ impl<'tcx> InherentCollect<'tcx> {
137137
return;
138138
}
139139

140-
if self.tcx.features().rustc_attrs
141-
&& self.tcx.has_attr(def_id, sym::rustc_has_incoherent_inherent_impls)
142-
{
140+
if self.tcx.has_attr(def_id, sym::rustc_has_incoherent_inherent_impls) {
143141
let hir::ItemKind::Impl(hir::Impl { items, .. }) = item.kind else {
144142
bug!("expected `impl` item: {:?}", item);
145143
};

0 commit comments

Comments
 (0)