1
Fork 0
This commit is contained in:
Georg Semmler 2024-09-06 19:06:59 +02:00
parent 717a11788d
commit 7c9e818f02
No known key found for this signature in database
GPG key ID: A87BCEE5205CE489
2 changed files with 0 additions and 3 deletions

View file

@ -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]),
}
})
}