Remove usage of specialization from newtype_index!
This commit is contained in:
parent
2975a21b5d
commit
f23c1fdaeb
4 changed files with 3 additions and 13 deletions
|
@ -34,10 +34,7 @@ mod newtype;
|
|||
/// optimizations. The default max value is 0xFFFF_FF00.
|
||||
/// - `#[gate_rustc_only]`: makes parts of the generated code nightly-only.
|
||||
#[proc_macro]
|
||||
#[cfg_attr(
|
||||
feature = "nightly",
|
||||
allow_internal_unstable(step_trait, rustc_attrs, trusted_step, min_specialization)
|
||||
)]
|
||||
#[cfg_attr(feature = "nightly", allow_internal_unstable(step_trait, rustc_attrs, trusted_step))]
|
||||
pub fn newtype_index(input: TokenStream) -> TokenStream {
|
||||
newtype::newtype(input)
|
||||
}
|
||||
|
|
|
@ -139,10 +139,6 @@ impl Parse for Newtype {
|
|||
Self::index(start).checked_sub(u).map(Self::from_usize)
|
||||
}
|
||||
}
|
||||
|
||||
// Safety: The implementation of `Step` upholds all invariants.
|
||||
#gate_rustc_only
|
||||
unsafe impl ::std::iter::TrustedStep for #name {}
|
||||
}
|
||||
} else {
|
||||
quote! {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue