In the concurrency chapter is a note at the end of Sharing Peripherals stating that const-fn is not stable. This feature has been stabilized in Rust 1.31 and the cortex-m crate does not have a const-fn feature any more as of this commit.
It would be much appreciated if someone could revisit this chapter and change it to current best practices.