Skip to content

Commit

Permalink
const_if_match and const_loop no longer need to be specified manu…
Browse files Browse the repository at this point in the history
…ally
  • Loading branch information
slightlyoutofphase committed Aug 1, 2020
1 parent dca1535 commit 3654c43
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion demo/main_demo.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// So we don't get "function complexity" lints and such since it's a demo.
#![allow(clippy::all)]
#![feature(const_fn, const_if_match, const_loop)]
#![feature(const_fn)]

use staticvec::*;

Expand Down
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
const_fn,
const_fn_union,
const_generics,
const_if_match,
const_loop,
const_mut_refs,
const_panic,
const_ptr_offset_from,
Expand Down
2 changes: 1 addition & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ macro_rules! __staticsort {
///
/// Example usage:
/// ```
/// #![feature(const_fn, const_if_match, const_loop)]
/// #![feature(const_fn)]
///
/// use staticvec::{sortedstaticvec, StaticVec};
///
Expand Down
2 changes: 1 addition & 1 deletion test/test_staticvec.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![allow(clippy::all)]
#![allow(dead_code)]
#![allow(unused_imports)]
#![feature(box_syntax, const_fn, const_if_match, const_loop)]
#![feature(box_syntax, const_fn)]

// In case you're wondering, the instances of `#[cfg_attr(all(windows, miri), ignore)]` in this
// file above the `#[should_panic]` tests are there simply because Miri only supports catching
Expand Down

0 comments on commit 3654c43

Please sign in to comment.