Skip to content

Commit abe28f7

Browse files
committed
Fix Miri
1 parent 2e2e188 commit abe28f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stringleton/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ macro_rules! sym {
6565
};
6666
(@impl $sym:expr) => {{
6767
// Note: Using `crate` to refer to the calling crate - this is deliberate.
68-
#[cfg_attr(not(target_arch = "wasm32"), $crate::internal::linkme::distributed_slice(crate::_stringleton_enabled::TABLE))]
69-
#[cfg_attr(not(target_arch = "wasm32"), linkme(crate = $crate::internal::linkme))]
68+
#[cfg_attr(not(any(miri, target_arch = "wasm32")), $crate::internal::linkme::distributed_slice(crate::_stringleton_enabled::TABLE))]
69+
#[cfg_attr(not(any(miri, target_arch = "wasm32")), linkme(crate = $crate::internal::linkme))]
7070
static SITE: $crate::internal::Site = $crate::internal::Site::new(&$sym);
7171
unsafe {
7272
// SAFETY: This site will be initialized by the static ctor because
@@ -233,7 +233,7 @@ mod tests {
233233

234234
use hashbrown::HashMap;
235235

236-
use super::{StaticSymbol, Symbol, static_sym, sym};
236+
use super::{StaticSymbol, Symbol};
237237

238238
#[test]
239239
#[cfg(feature = "alloc")]

0 commit comments

Comments
 (0)