diff options
| author | Georg Semmler <github@weiznich.de> | 2024-09-06 19:06:59 +0200 |
|---|---|---|
| committer | Georg Semmler <github@weiznich.de> | 2024-09-06 19:06:59 +0200 |
| commit | 7c9e818f028a899cf4597f80c67bfe64b7e1a4ed (patch) | |
| tree | cba55b5318b2f6f938e9c48a92071a101a2636a3 /compiler | |
| parent | 717a11788d49a960c94509ec97d35114fa4b3a7f (diff) | |
| download | rust-7c9e818f028a899cf4597f80c67bfe64b7e1a4ed.tar.gz rust-7c9e818f028a899cf4597f80c67bfe64b7e1a4ed.zip | |
Revert ed7bdbb17b9c03fe3530e5e3f21b7c6c7879dbca
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/collect.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_middle/src/ty/mod.rs | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/compiler/rustc_hir_analysis/src/collect.rs b/compiler/rustc_hir_analysis/src/collect.rs index 92111805ab4..ac9976148e2 100644 --- a/compiler/rustc_hir_analysis/src/collect.rs +++ b/compiler/rustc_hir_analysis/src/collect.rs @@ -1698,8 +1698,6 @@ fn impl_trait_header(tcx: TyCtxt<'_>, def_id: LocalDefId) -> Option<ty::ImplTrai trait_ref: ty::EarlyBinder::bind(trait_ref), safety: impl_.safety, polarity: polarity_of_impl(tcx, def_id, impl_, item.span), - do_not_recommend: tcx.features().do_not_recommend - && tcx.has_attrs_with_path(def_id, &[sym::diagnostic, sym::do_not_recommend]), } }) } diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index ee4f67f0e93..e637ced7139 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -263,7 +263,6 @@ pub struct ImplTraitHeader<'tcx> { pub trait_ref: ty::EarlyBinder<'tcx, ty::TraitRef<'tcx>>, pub polarity: ImplPolarity, pub safety: hir::Safety, - pub do_not_recommend: bool, } #[derive(Copy, Clone, PartialEq, Eq, Debug, TypeFoldable, TypeVisitable)] |
