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 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
// `#![feature(const_trait_impl)]` is unstable, so any impl declared stable // `#![feature(const_trait_impl)]` is unstable, so any impl declared stable
// needs to have an error emitted. // needs to have an error emitted.
if features.const_trait_impl if features.const_trait_impl
&& constness == hir::Constness::Const && *constness == hir::Constness::Const
&& const_stab.map_or(false, |(stab, _)| stab.is_const_stable()) && const_stab.map_or(false, |(stab, _)| stab.is_const_stable())
{ {
self.tcx self.tcx