about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2018-11-07 16:33:41 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2018-11-07 16:33:41 +0100
commit34ffbdb965dd84c6eb6309cacc1f44d6304fdd17 (patch)
tree1d2af3d49ed35a7efb6bd59f9527ae39fbd7ebb6
parente7f8c0d1050bc8871f5bb63cfe5018ed854d91e3 (diff)
downloadrust-34ffbdb965dd84c6eb6309cacc1f44d6304fdd17.tar.gz
rust-34ffbdb965dd84c6eb6309cacc1f44d6304fdd17.zip
This test will not link on wasm32.
-rw-r--r--src/test/ui/extern/extern-const.fixed6
-rw-r--r--src/test/ui/extern/extern-const.rs6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/test/ui/extern/extern-const.fixed b/src/test/ui/extern/extern-const.fixed
index 0229362cf0e..dca5698a70c 100644
--- a/src/test/ui/extern/extern-const.fixed
+++ b/src/test/ui/extern/extern-const.fixed
@@ -1,11 +1,11 @@
-// This test is checking that extern items cannot be const.  It also
-// checks that `rustfix` suggests the alternative of using an extern
-// static.
+// Check extern items cannot be const + `rustfix` suggests using
+// extern static.
 //
 // #54388: an unused reference to an undefined static may or may not
 // compile. To sidestep this by using one that *is* defined.
 
 // run-rustfix
+// ignore-wasm32 no external library to link to.
 // compile-flags: -g -Z continue-parse-after-error
 #![feature(libc)]
 extern crate libc;
diff --git a/src/test/ui/extern/extern-const.rs b/src/test/ui/extern/extern-const.rs
index e7b17152555..07dbe545a85 100644
--- a/src/test/ui/extern/extern-const.rs
+++ b/src/test/ui/extern/extern-const.rs
@@ -1,11 +1,11 @@
-// This test is checking that extern items cannot be const.  It also
-// checks that `rustfix` suggests the alternative of using an extern
-// static.
+// Check extern items cannot be const + `rustfix` suggests using
+// extern static.
 //
 // #54388: an unused reference to an undefined static may or may not
 // compile. To sidestep this by using one that *is* defined.
 
 // run-rustfix
+// ignore-wasm32 no external library to link to.
 // compile-flags: -g -Z continue-parse-after-error
 #![feature(libc)]
 extern crate libc;