diff --git a/src/libcore/hint.rs b/src/libcore/hint.rs index 856720bd55427..6a6f8893bfbd6 100644 --- a/src/libcore/hint.rs +++ b/src/libcore/hint.rs @@ -122,6 +122,7 @@ pub fn black_box(dummy: T) -> T { ) ) )] { + // asm.js and emscripten do not support inline assembly unsafe { let ret = crate::ptr::read_volatile(&dummy); crate::mem::forget(dummy);