Remove unneeded const_fn feature

This commit is contained in:
Philipp Oppermann
2018-07-01 18:26:48 +02:00
parent 795b84a447
commit 3365a4f9ff
4 changed files with 0 additions and 6 deletions

View File

@@ -372,7 +372,6 @@ Cargo supports hybrid projects that are both a library and a binary. We only nee
```rust
// src/lib.rs
#![feature(const_fn)]
#![no_std] // don't link the Rust standard library
extern crate spin;
@@ -465,7 +464,6 @@ We are finally able to create our first integration test executable. We start si
// in src/bin/test-basic-boot.rs
#![feature(panic_implementation)] // required for defining the panic handler
#![feature(const_fn)]
#![no_std] // don't link the Rust standard library
#![cfg_attr(not(test), no_main)] // disable all Rust-level entry points
#![cfg_attr(test, allow(dead_code, unused_macros, unused_imports))]
@@ -533,7 +531,6 @@ To test that our panic handler is really invoked on a panic, we create a `test-p
// in src/bin/test-panic.rs
#![feature(panic_implementation)]
#![feature(const_fn)]
#![no_std]
#![cfg_attr(not(test), no_main)]
#![cfg_attr(test, allow(dead_code, unused_macros, unused_imports))]

View File

@@ -1,5 +1,4 @@
#![feature(panic_implementation)] // required for defining the panic handler
#![feature(const_fn)]
#![no_std] // don't link the Rust standard library
#![cfg_attr(not(test), no_main)] // disable all Rust-level entry points
#![cfg_attr(test, allow(dead_code, unused_macros, unused_imports))]

View File

@@ -1,5 +1,4 @@
#![feature(panic_implementation)]
#![feature(const_fn)]
#![no_std]
#![cfg_attr(not(test), no_main)]
#![cfg_attr(test, allow(dead_code, unused_macros, unused_imports))]

View File

@@ -1,4 +1,3 @@
#![feature(const_fn)]
#![no_std] // don't link the Rust standard library
extern crate spin;