Skip to content

Commit f10a810

Browse files
committed
Replace __ONCE__ with Cargo links key
1 parent 1bbc1bc commit f10a810

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

cortex-m-rt/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ readme = "README.md"
1414
repository = "https://github.com/rust-embedded/cortex-m-rt"
1515
version = "0.6.11"
1616
autoexamples = true
17+
links = "cortex-m-rt" # Prevent multiple versions of cortex-m-rt being linked
1718

1819
[dependencies]
1920
r0 = "1.0"

cortex-m-rt/src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -689,10 +689,6 @@ pub use macros::exception;
689689
/// [rfc1414]: https://github.com/rust-lang/rfcs/blob/master/text/1414-rvalue_static_promotion.md
690690
pub use macros::pre_init;
691691

692-
#[export_name = "error: cortex-m-rt appears more than once in the dependency graph"]
693-
#[doc(hidden)]
694-
pub static __ONCE__: () = ();
695-
696692
/// Registers stacked (pushed onto the stack) during an exception.
697693
#[derive(Clone, Copy)]
698694
#[repr(C)]

0 commit comments

Comments
 (0)