Skip to content

Commit 0808960

Browse files
committed
refactor(core): remove #![feature(let_else)]
The `let_else` feature was stabilized by [rust-lang/rust#93628][1]. [1]: rust-lang/rust#93628
1 parent bdd370e commit 0808960

File tree

5 files changed

+0
-6
lines changed

5 files changed

+0
-6
lines changed

examples/basic_wio_terminal/src/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#![feature(naked_functions)]
55
#![feature(const_mut_refs)]
66
#![feature(asm_const)]
7-
#![feature(let_else)]
87
#![deny(unsafe_op_in_unsafe_fn)]
98
#![no_std]
109
#![no_main]

src/r3_core/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
#![feature(never_type)] // `!`
4747
#![feature(const_try)]
4848
#![feature(fn_traits)] // `impl FnOnce`
49-
#![feature(let_else)]
5049
#![feature(doc_cfg)] // `#[doc(cfg(...))]`
5150
#![cfg_attr(test, feature(is_sorted))]
5251
#![deny(unsafe_op_in_unsafe_fn)]

src/r3_core/src/utils/alloc.rs

-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ impl ConstAllocator {
4848
/// #![feature(const_trait_impl)]
4949
/// #![feature(const_mut_refs)]
5050
/// #![feature(const_option)]
51-
/// #![feature(let_else)]
5251
/// #![const_eval_limit = "500000"]
5352
/// use core::{alloc::Layout, ptr::NonNull};
5453
/// use r3_core::utils::{ConstAllocator, Allocator};
@@ -100,7 +99,6 @@ impl ConstAllocator {
10099
///
101100
/// ```rust,compile_fail,E0080
102101
/// # #![feature(const_trait_impl)]
103-
/// # #![feature(let_else)]
104102
/// # use core::alloc::Layout;
105103
/// # use r3_core::utils::{ConstAllocator, Allocator};
106104
/// # const _: () = ConstAllocator::with(doit);

src/r3_kernel/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#![feature(never_type)] // `!`
2929
#![feature(decl_macro)]
3030
#![feature(pin_macro)]
31-
#![feature(let_else)]
3231
#![feature(doc_cfg)] // `#[doc(cfg(...))]`
3332
#![deny(unsafe_op_in_unsafe_fn)]
3433
#![cfg_attr(

src/r3_test_runner/src/main.rs

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#![feature(lint_reasons)]
55
#![feature(decl_macro)] // `macro`
66
#![feature(pin_macro)] // `core::pin::pin!`
7-
#![feature(let_else)] // `let ... = ... else { ... }`
87
#![warn(must_not_suspend)]
98
use anyhow::Context;
109
use clap::Parser;

0 commit comments

Comments
 (0)