rust-embedded / bare-metal

Abstractions common to microcontrollers
Apache License 2.0
116 stars 17 forks source link

Use stable const-fn #18

Closed Disasm closed 5 years ago

Disasm commented 5 years ago

Additionally, this change unlocks static Mutex constructions on stable.

burrbull commented 5 years ago

@japaric can you merge this PR, and https://github.com/japaric/vcell/pull/9 , please. It will not take much time.

Disasm commented 5 years ago

@burrbull There is a good temporary solution (at least non-breaking one): https://github.com/rust-embedded/cortex-m/pull/159

burrbull commented 5 years ago

https://docs.rs/autocfg/0.1.5/autocfg/ has probe_rustc_version method:

https://github.com/rust-num/num-complex/pull/63/files

burrbull commented 5 years ago

cc @adamgreig