Skip to content

Commit f331d63

Browse files
Yeet some features
1 parent 9bae00d commit f331d63

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

compiler/rustc_type_ir/src/lib.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
#![cfg_attr(
22
feature = "nightly",
3-
feature(
4-
associated_type_defaults,
5-
fmt_helpers_for_derive,
6-
get_mut_unchecked,
7-
min_specialization,
8-
never_type,
9-
new_uninit,
10-
rustc_attrs,
11-
unwrap_infallible
12-
)
3+
feature(associated_type_defaults, min_specialization, never_type, rustc_attrs)
134
)]
145
#![deny(rustc::untranslatable_diagnostic)]
156
#![deny(rustc::diagnostic_outside_of_impl)]

compiler/rustc_type_ir/src/structural_impls.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,7 @@ impl<I: Interner, T: TypeFoldable<I>> TypeFoldable<I> for Lrc<T> {
131131
// Call to `Lrc::make_mut` above guarantees that `unique` is the
132132
// sole reference to the contained value, so we can avoid doing
133133
// a checked `get_mut` here.
134-
#[cfg(feature = "nightly")]
135-
let slot = Lrc::get_mut_unchecked(&mut unique);
136-
#[cfg(not(feature = "nightly"))]
137-
let slot = Lrc::get_mut(&mut unique).unwrap();
134+
let slot = Lrc::get_mut(&mut unique).unwrap_unchecked();
138135

139136
// Semantically move the contained type out from `unique`, fold
140137
// it, then move the folded value back into `unique`. Should

0 commit comments

Comments
 (0)