From 3365a4f9fffb9d0f5d31fe1d4ec18632141a0577 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sun, 1 Jul 2018 18:26:48 +0200 Subject: [PATCH] Remove unneeded const_fn feature --- .../content/second-edition/posts/05-integration-tests/index.md | 3 --- src/bin/test-basic-boot.rs | 1 - src/bin/test-panic.rs | 1 - src/lib.rs | 1 - 4 files changed, 6 deletions(-) diff --git a/blog/content/second-edition/posts/05-integration-tests/index.md b/blog/content/second-edition/posts/05-integration-tests/index.md index ef27e4af..d8648120 100644 --- a/blog/content/second-edition/posts/05-integration-tests/index.md +++ b/blog/content/second-edition/posts/05-integration-tests/index.md @@ -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))] diff --git a/src/bin/test-basic-boot.rs b/src/bin/test-basic-boot.rs index 36d3edb1..54f26572 100644 --- a/src/bin/test-basic-boot.rs +++ b/src/bin/test-basic-boot.rs @@ -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))] diff --git a/src/bin/test-panic.rs b/src/bin/test-panic.rs index f2a3bbb3..41b181a3 100644 --- a/src/bin/test-panic.rs +++ b/src/bin/test-panic.rs @@ -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))] diff --git a/src/lib.rs b/src/lib.rs index affb8720..e2905e51 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,3 @@ -#![feature(const_fn)] #![no_std] // don't link the Rust standard library extern crate spin;