Skip to content

Commit

Permalink
Yeet some features
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed Oct 18, 2023
1 parent 632052e commit d627468
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
11 changes: 1 addition & 10 deletions compiler/rustc_type_ir/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
#![cfg_attr(
feature = "nightly",
feature(
associated_type_defaults,
fmt_helpers_for_derive,
get_mut_unchecked,
min_specialization,
never_type,
new_uninit,
rustc_attrs,
unwrap_infallible
)
feature(associated_type_defaults, min_specialization, never_type, rustc_attrs)
)]
#![deny(rustc::untranslatable_diagnostic)]
#![deny(rustc::diagnostic_outside_of_impl)]
Expand Down
5 changes: 1 addition & 4 deletions compiler/rustc_type_ir/src/structural_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,7 @@ impl<I: Interner, T: TypeFoldable<I>> TypeFoldable<I> for Lrc<T> {
// Call to `Lrc::make_mut` above guarantees that `unique` is the
// sole reference to the contained value, so we can avoid doing
// a checked `get_mut` here.
#[cfg(feature = "nightly")]
let slot = Lrc::get_mut_unchecked(&mut unique);
#[cfg(not(feature = "nightly"))]
let slot = Lrc::get_mut(&mut unique).unwrap();
let slot = Lrc::get_mut(&mut unique).unwrap_unchecked();

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

0 comments on commit d627468

Please sign in to comment.