Skip to content

Commit b1a3397

Browse files
committed
Fix some tests for wasm32-unknown-emscripten
1 parent 6fb701e commit b1a3397

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/run-pass/consts/const-endianess.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ fn main() {
2323
assert_eq!(BE_U32, b(55u32).to_be());
2424
assert_eq!(LE_U32, b(55u32).to_le());
2525

26-
#[cfg(not(target_arch = "asmjs"))]
26+
#[cfg(not(target_os = "emscripten"))]
2727
{
2828
const BE_U128: u128 = 999999u128.to_be();
2929
const LE_I128: i128 = (-999999i128).to_le();

src/test/ui/range/issue-54505-no-std.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
use core::ops::RangeBounds;
1313

14-
#[cfg(not(target_arch = "wasm32"))]
14+
#[cfg(any(not(target_arch = "wasm32"), target_os = "emscripten"))]
1515
#[lang = "eh_personality"]
1616
extern fn eh_personality() {}
1717

0 commit comments

Comments
 (0)