Skip to content

Commit

Permalink
Remove unneeded features
Browse files Browse the repository at this point in the history
A few of the features that we enable have been stabilized, others may
have been needed at some point but are no longer required. Clean this
up.
  • Loading branch information
tgross35 committed Sep 27, 2024
1 parent bb18ce5 commit d89f6e5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions examples/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
// to link due to the missing intrinsic (symbol).

#![allow(unused_features)]
#![allow(stable_features)] // bench_black_box feature is stable, leaving for backcompat
#![allow(internal_features)]
#![cfg_attr(thumb, no_main)]
#![deny(dead_code)]
#![feature(allocator_api)]
#![feature(bench_black_box)]
#![feature(f128)]
#![feature(f16)]
#![feature(lang_items)]
Expand Down
6 changes: 0 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
#![cfg_attr(feature = "compiler-builtins", compiler_builtins)]
#![cfg_attr(not(feature = "no-asm"), feature(asm))]
#![feature(abi_unadjusted)]
#![feature(asm_experimental_arch)]
#![cfg_attr(not(feature = "no-asm"), feature(global_asm))]
#![feature(cfg_target_has_atomic)]
#![feature(compiler_builtins)]
#![feature(core_ffi_c)]
#![feature(core_intrinsics)]
#![feature(inline_const)]
#![feature(lang_items)]
#![feature(linkage)]
#![feature(naked_functions)]
#![feature(repr_simd)]
#![feature(c_unwind)]
#![cfg_attr(f16_enabled, feature(f16))]
#![cfg_attr(f128_enabled, feature(f128))]
#![no_builtins]
Expand Down
1 change: 0 additions & 1 deletion testcrate/tests/aeabi_memclr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
feature = "mem"
))]
#![feature(compiler_builtins_lib)]
#![feature(lang_items)]
#![no_std]

extern crate compiler_builtins;
Expand Down
1 change: 0 additions & 1 deletion testcrate/tests/aeabi_memcpy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
feature = "mem"
))]
#![feature(compiler_builtins_lib)]
#![feature(lang_items)]
#![no_std]

extern crate compiler_builtins;
Expand Down
1 change: 0 additions & 1 deletion testcrate/tests/aeabi_memset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
feature = "mem"
))]
#![feature(compiler_builtins_lib)]
#![feature(lang_items)]
#![no_std]

extern crate compiler_builtins;
Expand Down

0 comments on commit d89f6e5

Please sign in to comment.