aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Stian Eklund <stian.eklund@gmail.com> 2020-05-05 14:16:33 +0200
committerGravatar Stian Eklund <stian.eklund@gmail.com> 2020-05-05 14:16:33 +0200
commit7e551e6978536f7889b04d754a2e890993281a94 (patch)
treeea8579eb68940059a0f7f48ca33c45fdbd9d8ac7
parentba7496c5bffeb31cc206f24de3c35b6cf7ae962c (diff)
downloadcortex-m-7e551e6978536f7889b04d754a2e890993281a94.tar.gz
cortex-m-7e551e6978536f7889b04d754a2e890993281a94.tar.zst
cortex-m-7e551e6978536f7889b04d754a2e890993281a94.zip
Use #!cfg_attr for inline_asm
This fixes the previous commit where the #![feature()] flag was used by mistake.
-rw-r--r--src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 7a641d2..89f420d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,4 +1,3 @@
-#![feature(llvm_asm)]
//! Low level access to Cortex-M processors
//!
//! This crate provides:
@@ -30,7 +29,7 @@
//! This crate is guaranteed to compile on stable Rust 1.31 and up. It *might*
//! compile with older versions but that may change in any new patch release.
-#![cfg_attr(feature = "inline-asm", feature(asm))]
+#![cfg_attr(feature = "inline-asm", feature(llvm_asm))]
#![deny(missing_docs)]
#![no_std]
#![allow(clippy::identity_op)]