remove unnecessary check
This commit is contained in:
parent
209dd2cb0a
commit
dc184b4e17
1 changed files with 1 additions and 3 deletions
|
@ -137,9 +137,7 @@ impl<'tcx> InherentCollect<'tcx> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.tcx.features().rustc_attrs
|
if self.tcx.has_attr(def_id, sym::rustc_has_incoherent_inherent_impls) {
|
||||||
&& self.tcx.has_attr(def_id, sym::rustc_has_incoherent_inherent_impls)
|
|
||||||
{
|
|
||||||
let hir::ItemKind::Impl(hir::Impl { items, .. }) = item.kind else {
|
let hir::ItemKind::Impl(hir::Impl { items, .. }) = item.kind else {
|
||||||
bug!("expected `impl` item: {:?}", item);
|
bug!("expected `impl` item: {:?}", item);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue