We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ff3311 commit cf5a803Copy full SHA for cf5a803
compiler/rustc_passes/src/stability.rs
@@ -745,7 +745,7 @@ impl<'tcx> Visitor<'tcx> for Checker<'tcx> {
745
// `#![feature(const_trait_impl)]` is unstable, so any impl declared stable
746
// needs to have an error emitted.
747
if features.const_trait_impl
748
- && constness == hir::Constness::Const
+ && *constness == hir::Constness::Const
749
&& const_stab.map_or(false, |(stab, _)| stab.is_const_stable())
750
{
751
self.tcx
0 commit comments