From 080896092a6919f4d5c7284f84427b7d845c6701 Mon Sep 17 00:00:00 2001 From: yvt Date: Thu, 10 Nov 2022 20:45:11 +0900 Subject: [PATCH] refactor(core): remove `#![feature(let_else)]` The `let_else` feature was stabilized by [rust-lang/rust#93628][1]. [1]: https://github.com/rust-lang/rust/pull/93628 --- examples/basic_wio_terminal/src/main.rs | 1 - src/r3_core/src/lib.rs | 1 - src/r3_core/src/utils/alloc.rs | 2 -- src/r3_kernel/src/lib.rs | 1 - src/r3_test_runner/src/main.rs | 1 - 5 files changed, 6 deletions(-) diff --git a/examples/basic_wio_terminal/src/main.rs b/examples/basic_wio_terminal/src/main.rs index 172a679ac7..97592b1c04 100644 --- a/examples/basic_wio_terminal/src/main.rs +++ b/examples/basic_wio_terminal/src/main.rs @@ -4,7 +4,6 @@ #![feature(naked_functions)] #![feature(const_mut_refs)] #![feature(asm_const)] -#![feature(let_else)] #![deny(unsafe_op_in_unsafe_fn)] #![no_std] #![no_main] diff --git a/src/r3_core/src/lib.rs b/src/r3_core/src/lib.rs index d6eb364be2..4446d08c72 100644 --- a/src/r3_core/src/lib.rs +++ b/src/r3_core/src/lib.rs @@ -46,7 +46,6 @@ #![feature(never_type)] // `!` #![feature(const_try)] #![feature(fn_traits)] // `impl FnOnce` -#![feature(let_else)] #![feature(doc_cfg)] // `#[doc(cfg(...))]` #![cfg_attr(test, feature(is_sorted))] #![deny(unsafe_op_in_unsafe_fn)] diff --git a/src/r3_core/src/utils/alloc.rs b/src/r3_core/src/utils/alloc.rs index b7de55e51e..45b7e3fdd8 100644 --- a/src/r3_core/src/utils/alloc.rs +++ b/src/r3_core/src/utils/alloc.rs @@ -48,7 +48,6 @@ impl ConstAllocator { /// #![feature(const_trait_impl)] /// #![feature(const_mut_refs)] /// #![feature(const_option)] - /// #![feature(let_else)] /// #![const_eval_limit = "500000"] /// use core::{alloc::Layout, ptr::NonNull}; /// use r3_core::utils::{ConstAllocator, Allocator}; @@ -100,7 +99,6 @@ impl ConstAllocator { /// /// ```rust,compile_fail,E0080 /// # #![feature(const_trait_impl)] - /// # #![feature(let_else)] /// # use core::alloc::Layout; /// # use r3_core::utils::{ConstAllocator, Allocator}; /// # const _: () = ConstAllocator::with(doit); diff --git a/src/r3_kernel/src/lib.rs b/src/r3_kernel/src/lib.rs index bc96c50ed8..982336a4de 100644 --- a/src/r3_kernel/src/lib.rs +++ b/src/r3_kernel/src/lib.rs @@ -28,7 +28,6 @@ #![feature(never_type)] // `!` #![feature(decl_macro)] #![feature(pin_macro)] -#![feature(let_else)] #![feature(doc_cfg)] // `#[doc(cfg(...))]` #![deny(unsafe_op_in_unsafe_fn)] #![cfg_attr( diff --git a/src/r3_test_runner/src/main.rs b/src/r3_test_runner/src/main.rs index 3c9eb6a049..1d153f3edb 100644 --- a/src/r3_test_runner/src/main.rs +++ b/src/r3_test_runner/src/main.rs @@ -4,7 +4,6 @@ #![feature(lint_reasons)] #![feature(decl_macro)] // `macro` #![feature(pin_macro)] // `core::pin::pin!` -#![feature(let_else)] // `let ... = ... else { ... }` #![warn(must_not_suspend)] use anyhow::Context; use clap::Parser;