Skip to content

Commit

Permalink
doc: remove #![feature(const_loop)] and `#![feature(const_if_match)…
Browse files Browse the repository at this point in the history
…]` from example code

`const_if_match` and `const_loop` have been stabilized by
<rust-lang/rust#72437>.
  • Loading branch information
yvt committed Jul 9, 2020
1 parent 2e15b31 commit 39ad732
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ Constance is a proof-of-concept of a static RTOS that utilizes Rust's compile-ti
## Example

```rust
#![feature(const_loop)]
#![feature(const_fn)]
#![feature(const_if_match)]
#![feature(const_mut_refs)]
use constance::kernel::Task;

Expand Down
2 changes: 0 additions & 2 deletions src/constance_port_std/src/lib.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ Simulator for running [`::constance`] on a hosted environment
# Usage

```rust
#![feature(const_loop)]
#![feature(const_fn)]
#![feature(const_if_match)]
#![feature(const_mut_refs)]

// Require `unsafe` even in `unsafe fn` - highly recommended
Expand Down

0 comments on commit 39ad732

Please sign in to comment.