We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 209dd2c commit dc184b4Copy full SHA for dc184b4
compiler/rustc_typeck/src/coherence/inherent_impls.rs
@@ -137,9 +137,7 @@ impl<'tcx> InherentCollect<'tcx> {
137
return;
138
}
139
140
- if self.tcx.features().rustc_attrs
141
- && self.tcx.has_attr(def_id, sym::rustc_has_incoherent_inherent_impls)
142
- {
+ if self.tcx.has_attr(def_id, sym::rustc_has_incoherent_inherent_impls) {
143
let hir::ItemKind::Impl(hir::Impl { items, .. }) = item.kind else {
144
bug!("expected `impl` item: {:?}", item);
145
};
0 commit comments