Skip to content

Commit

Permalink
clippy: update is_stable_const_fn helper for multiple const-stabili…
Browse files Browse the repository at this point in the history
…ty attrs
  • Loading branch information
dianne committed Nov 19, 2024
1 parent a966f5e commit edf10f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tools/clippy/clippy_utils/src/qualify_min_const_fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,8 @@ fn is_stable_const_fn(tcx: TyCtxt<'_>, def_id: DefId, msrv: &Msrv) -> bool {
msrv.meets(const_stab_rust_version)
} else {
// Unstable const fn, check if the feature is enabled.
tcx.features().enabled(const_stab.feature) && msrv.current().is_none()
tcx.features().all_enabled(const_stab.unstable_features())
&& msrv.current().is_none()
}
})
}
Expand Down

0 comments on commit edf10f8

Please sign in to comment.