mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
Remove nightly features in rustc_type_ir
This commit is contained in:
parent
cb17136405
commit
3cfa0a0dff
@ -124,7 +124,7 @@ macro_rules! newtype_index {
|
||||
|
||||
#[inline]
|
||||
$v const fn from_usize(value: usize) -> Self {
|
||||
assert!(value <= ($max as usize));
|
||||
[()][(value > ($max as usize)) as usize];
|
||||
unsafe {
|
||||
Self::from_u32_unchecked(value as u32)
|
||||
}
|
||||
@ -132,7 +132,7 @@ macro_rules! newtype_index {
|
||||
|
||||
#[inline]
|
||||
$v const fn from_u32(value: u32) -> Self {
|
||||
assert!(value <= $max);
|
||||
[()][(value > $max) as usize];
|
||||
unsafe {
|
||||
Self::from_u32_unchecked(value)
|
||||
}
|
||||
|
@ -1,7 +1,3 @@
|
||||
#![feature(never_type)]
|
||||
#![feature(const_panic)]
|
||||
#![feature(control_flow_enum)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate bitflags;
|
||||
#[macro_use]
|
||||
|
Loading…
Reference in New Issue
Block a user