Unify feature flags as step_trait

While stdlib implementations of the unchecked methods require unchecked
math, there is no reason to gate it behind this for external users. The
reasoning for a separate `step_trait_ext` feature is unclear, and as
such has been merged as well.
This commit is contained in:
Jacob Pratt 2021-04-02 01:05:43 -04:00
parent bc2f0fb5a9
commit 35ce36812a
No known key found for this signature in database
GPG key ID: B80E19E4662B5AA4
4 changed files with 1 additions and 9 deletions

View file

@ -65,7 +65,7 @@ impl Idx for u32 {
/// `u32::MAX`. You can also customize things like the `Debug` impl,
/// what traits are derived, and so forth via the macro.
#[macro_export]
#[allow_internal_unstable(step_trait, step_trait_ext, rustc_attrs)]
#[allow_internal_unstable(step_trait, rustc_attrs)]
macro_rules! newtype_index {
// ---- public rules ----