Skip to content

Commit 7c9e818

Browse files
committed
Revert ed7bdbb
1 parent 717a117 commit 7c9e818

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

Diff for: compiler/rustc_hir_analysis/src/collect.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1698,8 +1698,6 @@ fn impl_trait_header(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option<ty::ImplTrai
16981698
trait_ref: ty::EarlyBinder::bind(trait_ref),
16991699
safety: impl_.safety,
17001700
polarity: polarity_of_impl(tcx, def_id, impl_, item.span),
1701-
do_not_recommend: tcx.features().do_not_recommend
1702-
&& tcx.has_attrs_with_path(def_id, &[sym::diagnostic, sym::do_not_recommend]),
17031701
}
17041702
})
17051703
}

Diff for: compiler/rustc_middle/src/ty/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,6 @@ pub struct ImplTraitHeader<'tcx> {
263263
pub trait_ref: ty::EarlyBinder<'tcx, ty::TraitRef<'tcx>>,
264264
pub polarity: ImplPolarity,
265265
pub safety: hir::Safety,
266-
pub do_not_recommend: bool,
267266
}
268267

269268
#[derive(Copy, Clone, PartialEq, Eq, Debug, TypeFoldable, TypeVisitable)]

0 commit comments

Comments
 (0)