mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
remove unnecessary check
This commit is contained in:
@@ -137,9 +137,7 @@ fn check_def_id(&mut self, item: &hir::Item<'_>, self_ty: Ty<'tcx>, def_id: DefI
|
||||
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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user