Skip to content

Commit 5555a97

Browse files
bors[bot]adamgreig
andauthored
Merge #243
243: Remove reference to const-fn feature of cortex-m. Closes #242. r=jamesmunns a=adamgreig Co-authored-by: Adam Greig <[email protected]>
2 parents 99de549 + ba072c8 commit 5555a97

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/concurrency/index.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -552,23 +552,6 @@ fn timer() {
552552
553553
```
554554

555-
> **NOTE**
556-
>
557-
> At the moment, the `cortex-m` crate hides const versions of some functions
558-
> (including `Mutex::new()`) behind the `const-fn` feature. So you need to add
559-
> the `const-fn` feature as a dependency for cortex-m in the Cargo.toml to make
560-
> the above examples work:
561-
>
562-
> ``` toml
563-
> [dependencies.cortex-m]
564-
> version="0.6.0"
565-
> features=["const-fn"]
566-
> ```
567-
> Meanwhile, `const-fn` has been working on stable Rust for some time now.
568-
> So this additional switch in Cargo.toml will not be needed as soon as
569-
> it is enabled in `cortex-m` by default.
570-
>
571-
572555
Whew! This is safe, but it is also a little unwieldy. Is there anything else
573556
we can do?
574557

0 commit comments

Comments
 (0)