From b6109f8bc3176144cecde34d0a89e28e96ba1607 Mon Sep 17 00:00:00 2001 From: yvt Date: Thu, 10 Nov 2022 20:30:07 +0900 Subject: [PATCH] refactor: remove `#![feature(asm_sym)]` The `asm_sym` feature was stabilized by [rust-lang/rust#103168][1]. [1]: https://github.com/rust-lang/rust/pull/103168 --- README.md | 1 - examples/basic_gr_peach/src/main.rs | 1 - examples/basic_nucleo_f401re/src/main.rs | 1 - examples/basic_rp_pico/src/main.rs | 1 - examples/basic_wio_terminal/src/main.rs | 1 - examples/smp_rp_pico/src/main.rs | 1 - src/r3_port_arm/src/lib.rs | 1 - src/r3_port_arm_m/src/lib.rs | 1 - src/r3_port_arm_m_test_driver/src/main.rs | 1 - src/r3_port_arm_test_driver/src/main.rs | 1 - src/r3_port_riscv/src/lib.rs | 1 - src/r3_port_riscv_test_driver/src/main.rs | 1 - src/r3_portkit/src/lib.rs | 1 - src/r3_portkit/src/sym.rs | 1 - 14 files changed, 14 deletions(-) diff --git a/README.md b/README.md index 823273843c..d03bd49dce 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,6 @@ The R3 original kernel is provided as a separate package [`r3_kernel`][]. #![feature(naked_functions)] #![feature(const_mut_refs)] #![feature(asm_const)] -#![feature(asm_sym)] #![no_std] #![no_main] diff --git a/examples/basic_gr_peach/src/main.rs b/examples/basic_gr_peach/src/main.rs index 826d0e524d..25a9748d44 100644 --- a/examples/basic_gr_peach/src/main.rs +++ b/examples/basic_gr_peach/src/main.rs @@ -3,7 +3,6 @@ #![feature(const_mut_refs)] #![feature(naked_functions)] #![feature(asm_const)] -#![feature(asm_sym)] #![deny(unsafe_op_in_unsafe_fn)] #![no_std] #![no_main] diff --git a/examples/basic_nucleo_f401re/src/main.rs b/examples/basic_nucleo_f401re/src/main.rs index 5e539c54dc..e495629548 100644 --- a/examples/basic_nucleo_f401re/src/main.rs +++ b/examples/basic_nucleo_f401re/src/main.rs @@ -3,7 +3,6 @@ #![feature(naked_functions)] #![feature(const_mut_refs)] #![feature(asm_const)] -#![feature(asm_sym)] #![deny(unsafe_op_in_unsafe_fn)] #![no_std] #![no_main] diff --git a/examples/basic_rp_pico/src/main.rs b/examples/basic_rp_pico/src/main.rs index 7386d4c478..6990ce3b1d 100644 --- a/examples/basic_rp_pico/src/main.rs +++ b/examples/basic_rp_pico/src/main.rs @@ -3,7 +3,6 @@ #![feature(naked_functions)] #![feature(const_mut_refs)] #![feature(asm_const)] -#![feature(asm_sym)] #![deny(unsafe_op_in_unsafe_fn)] #![no_std] #![no_main] diff --git a/examples/basic_wio_terminal/src/main.rs b/examples/basic_wio_terminal/src/main.rs index 268d37c984..172a679ac7 100644 --- a/examples/basic_wio_terminal/src/main.rs +++ b/examples/basic_wio_terminal/src/main.rs @@ -5,7 +5,6 @@ #![feature(const_mut_refs)] #![feature(asm_const)] #![feature(let_else)] -#![feature(asm_sym)] #![deny(unsafe_op_in_unsafe_fn)] #![no_std] #![no_main] diff --git a/examples/smp_rp_pico/src/main.rs b/examples/smp_rp_pico/src/main.rs index d2ab3e9e0d..170576ae98 100644 --- a/examples/smp_rp_pico/src/main.rs +++ b/examples/smp_rp_pico/src/main.rs @@ -4,7 +4,6 @@ #![feature(naked_functions)] #![feature(const_mut_refs)] #![feature(asm_const)] -#![feature(asm_sym)] #![deny(unsafe_op_in_unsafe_fn)] #![no_std] #![no_main] diff --git a/src/r3_port_arm/src/lib.rs b/src/r3_port_arm/src/lib.rs index 4e9ad981b1..74e8a181c3 100644 --- a/src/r3_port_arm/src/lib.rs +++ b/src/r3_port_arm/src/lib.rs @@ -8,7 +8,6 @@ #![feature(lint_reasons)] #![feature(decl_macro)] #![feature(asm_const)] -#![feature(asm_sym)] #![deny(unsafe_op_in_unsafe_fn)] #![allow(clippy::verbose_bit_mask)] // questionable #![cfg_attr( diff --git a/src/r3_port_arm_m/src/lib.rs b/src/r3_port_arm_m/src/lib.rs index 40ffa22760..c72401c3cd 100644 --- a/src/r3_port_arm_m/src/lib.rs +++ b/src/r3_port_arm_m/src/lib.rs @@ -7,7 +7,6 @@ #![feature(slice_ptr_len)] #![feature(decl_macro)] #![feature(asm_const)] -#![feature(asm_sym)] #![deny(unsafe_op_in_unsafe_fn)] #![cfg_attr( feature = "doc", diff --git a/src/r3_port_arm_m_test_driver/src/main.rs b/src/r3_port_arm_m_test_driver/src/main.rs index 3d8c301a39..d5ef0fb743 100644 --- a/src/r3_port_arm_m_test_driver/src/main.rs +++ b/src/r3_port_arm_m_test_driver/src/main.rs @@ -3,7 +3,6 @@ #![feature(naked_functions)] #![feature(const_mut_refs)] #![feature(asm_const)] -#![feature(asm_sym)] #![deny(unsafe_op_in_unsafe_fn)] #![cfg_attr(feature = "run", no_std)] #![cfg_attr(feature = "run", no_main)] diff --git a/src/r3_port_arm_test_driver/src/main.rs b/src/r3_port_arm_test_driver/src/main.rs index a29738dae0..3bf0bcc20d 100644 --- a/src/r3_port_arm_test_driver/src/main.rs +++ b/src/r3_port_arm_test_driver/src/main.rs @@ -8,7 +8,6 @@ #![feature(naked_functions)] #![feature(const_mut_refs)] #![feature(asm_const)] -#![feature(asm_sym)] #![deny(unsafe_op_in_unsafe_fn)] #![cfg_attr(feature = "run", no_std)] #![cfg_attr(feature = "run", no_main)] diff --git a/src/r3_port_riscv/src/lib.rs b/src/r3_port_riscv/src/lib.rs index 8acb5045bf..04cb247d3a 100644 --- a/src/r3_port_riscv/src/lib.rs +++ b/src/r3_port_riscv/src/lib.rs @@ -8,7 +8,6 @@ #![feature(decl_macro)] #![feature(raw_ref_op)] #![feature(asm_const)] -#![feature(asm_sym)] #![feature(doc_cfg)] #![feature(linkage)] #![deny(unsafe_op_in_unsafe_fn)] diff --git a/src/r3_port_riscv_test_driver/src/main.rs b/src/r3_port_riscv_test_driver/src/main.rs index 80fdd29652..2cad3ecabb 100644 --- a/src/r3_port_riscv_test_driver/src/main.rs +++ b/src/r3_port_riscv_test_driver/src/main.rs @@ -4,7 +4,6 @@ #![feature(const_mut_refs)] #![feature(decl_macro)] #![feature(asm_const)] -#![feature(asm_sym)] #![deny(unsafe_op_in_unsafe_fn)] #![cfg_attr(feature = "run", no_std)] #![cfg_attr(feature = "run", no_main)] diff --git a/src/r3_portkit/src/lib.rs b/src/r3_portkit/src/lib.rs index 80e0f6ec7e..81b53a93d9 100644 --- a/src/r3_portkit/src/lib.rs +++ b/src/r3_portkit/src/lib.rs @@ -6,7 +6,6 @@ #![feature(decl_macro)] #![feature(asm_const)] #![feature(const_cmp)] -#![feature(asm_sym)] #![cfg_attr( feature = "doc", doc(html_logo_url = "https://r3-os.github.io/r3/logo-small.svg") diff --git a/src/r3_portkit/src/sym.rs b/src/r3_portkit/src/sym.rs index d02bf1b755..1ee780ef9a 100644 --- a/src/r3_portkit/src/sym.rs +++ b/src/r3_portkit/src/sym.rs @@ -27,7 +27,6 @@ pub use core::{arch::asm, mem}; /// ``` /// #![feature(naked_functions)] /// #![feature(asm_const)] -/// #![feature(asm_sym)] /// use r3_portkit::sym::sym_static; /// use std::{arch::asm, cell::Cell}; ///