Rebase fallout

This commit is contained in:
Oli Scherer 2022-05-19 12:26:06 +00:00
parent 5ff331142e
commit cf5a803600

View File

@ -745,7 +745,7 @@ fn visit_item(&mut self, item: &'tcx hir::Item<'tcx>) {
// `#![feature(const_trait_impl)]` is unstable, so any impl declared stable
// needs to have an error emitted.
if features.const_trait_impl
&& constness == hir::Constness::Const
&& *constness == hir::Constness::Const
&& const_stab.map_or(false, |(stab, _)| stab.is_const_stable())
{
self.tcx