diff options
author | 2020-07-03 15:05:07 +0100 | |
---|---|---|
committer | 2020-07-03 15:05:07 +0100 | |
commit | f10a81030055d85c49d7cc5c9124942debbc949e (patch) | |
tree | 12f5346913edfd8e75be14477c3411e80820236d /cortex-m-rt | |
parent | 1bbc1bc59bf92e74cf38502d34071dcc268d402b (diff) | |
download | cortex-m-f10a81030055d85c49d7cc5c9124942debbc949e.tar.gz cortex-m-f10a81030055d85c49d7cc5c9124942debbc949e.tar.zst cortex-m-f10a81030055d85c49d7cc5c9124942debbc949e.zip |
Replace __ONCE__ with Cargo links key
Diffstat (limited to 'cortex-m-rt')
-rw-r--r-- | cortex-m-rt/Cargo.toml | 1 | ||||
-rw-r--r-- | cortex-m-rt/src/lib.rs | 4 |
2 files changed, 1 insertions, 4 deletions
diff --git a/cortex-m-rt/Cargo.toml b/cortex-m-rt/Cargo.toml index 8fd075f..f8f8342 100644 --- a/cortex-m-rt/Cargo.toml +++ b/cortex-m-rt/Cargo.toml @@ -14,6 +14,7 @@ readme = "README.md" repository = "https://github.com/rust-embedded/cortex-m-rt" version = "0.6.11" autoexamples = true +links = "cortex-m-rt" # Prevent multiple versions of cortex-m-rt being linked [dependencies] r0 = "1.0" diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs index 1988df6..08037d2 100644 --- a/cortex-m-rt/src/lib.rs +++ b/cortex-m-rt/src/lib.rs @@ -689,10 +689,6 @@ pub use macros::exception; /// [rfc1414]: https://github.com/rust-lang/rfcs/blob/master/text/1414-rvalue_static_promotion.md pub use macros::pre_init; -#[export_name = "error: cortex-m-rt appears more than once in the dependency graph"] -#[doc(hidden)] -pub static __ONCE__: () = (); - /// Registers stacked (pushed onto the stack) during an exception. #[derive(Clone, Copy)] #[repr(C)] |