Skip to content

Commit

Permalink
Remove nightly features in rustc_type_ir
Browse files Browse the repository at this point in the history
  • Loading branch information
detrumi committed Apr 3, 2021
1 parent cb17136 commit 3cfa0a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions compiler/rustc_index/src/vec.rs
Expand Up @@ -124,15 +124,15 @@ 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)
}
}

#[inline]
$v const fn from_u32(value: u32) -> Self {
assert!(value <= $max);
[()][(value > $max) as usize];
unsafe {
Self::from_u32_unchecked(value)
}
Expand Down
4 changes: 0 additions & 4 deletions compiler/rustc_type_ir/src/lib.rs
@@ -1,7 +1,3 @@
#![feature(never_type)]
#![feature(const_panic)]
#![feature(control_flow_enum)]

#[macro_use]
extern crate bitflags;
#[macro_use]
Expand Down

0 comments on commit 3cfa0a0

Please sign in to comment.