Skip to content

Commit 5da7799

Browse files
hlbarberdavidbarsky
authored andcommitted
tracing: fix wasm_bindgen_test macros (#2675)
## Motivation Tests involving `wasm_bindgen_test` currently fail: https://github.com/tokio-rs/tracing/actions/runs/5756318807/job/15605512576 ## Solution - [x] Use `extern crate wasm_bindgen_test` to side-step `no_implicit_prelude`. - [x] rustwasm/wasm-bindgen#3549 - [ ] Consume the release `wasm_bindgen_test` containing said change.
1 parent 1fa24df commit 5da7799

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tracing/tests/macros.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
// We call all macros in this module with `no_implicit_prelude` to ensure they do not depend on the standard prelude.
33
#![no_implicit_prelude]
44
extern crate tracing;
5+
#[cfg(target_arch = "wasm32")]
6+
extern crate wasm_bindgen_test;
7+
8+
// TODO: remove this once https://github.com/tokio-rs/tracing/pull/2675#issuecomment-1667628907 is resolved
9+
#[cfg(target_arch = "wasm32")]
10+
use ::core::option::Option::None;
511

612
use tracing::{
713
callsite, debug, debug_span, enabled, error, error_span, event, event_enabled, info, info_span,

0 commit comments

Comments
 (0)