1
Fork 0

we can now enable the 'const stable fn must be stable' check

This commit is contained in:
Ralf Jung 2024-10-26 09:40:03 +02:00
parent f370f3493d
commit d066dfdb83
9 changed files with 27 additions and 13 deletions

View file

@ -189,9 +189,6 @@ impl<'a, 'tcx> Annotator<'a, 'tcx> {
&& let Some(fn_sig) = fn_sig
&& const_stab.is_const_stable()
&& !stab.is_some_and(|(s, _)| s.is_stable())
// FIXME: we skip this check targets until
// <https://github.com/rust-lang/stdarch/pull/1654> propagates.
&& false
{
self.tcx
.dcx()