]> git.lizzy.rs Git - rust.git/commitdiff
dbg_macro: // ignore-wasm
authorMazdak Farrokhzad <twingoow@gmail.com>
Sat, 22 Sep 2018 13:41:47 +0000 (15:41 +0200)
committerMazdak Farrokhzad <twingoow@gmail.com>
Sat, 22 Sep 2018 13:41:47 +0000 (15:41 +0200)
src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs

index 3f4656004e7a5d800b9fde9eaf25a82a4410c4be..8700699b3212111b20daec439e17aced49927efb 100644 (file)
@@ -1,4 +1,5 @@
 // run-pass
+// ignore-wasm
 
 // Tests ensuring that `dbg!(expr)` has the expected run-time behavior.
 // as well as some compile time properties we expect.
@@ -55,31 +56,31 @@ fn f<'a>(x: &'a u8) -> &'a u8 { x }
 
 fn validate_stderr(stderr: Vec<String>) {
     assert_eq!(stderr, &[
-        ":21] Unit = Unit",
+        ":22] Unit = Unit",
 
-        ":22] a = Unit",
+        ":23] a = Unit",
 
-        ":28] Point{x: 42, y: 24,} = Point {",
+        ":29] Point{x: 42, y: 24,} = Point {",
         "    x: 42,",
         "    y: 24",
         "}",
 
-        ":29] b = Point {",
+        ":30] b = Point {",
         "    x: 42,",
         "    y: 24",
         "}",
 
-        ":38] &a = NoCopy(",
+        ":39] &a = NoCopy(",
         "    1337",
         ")",
 
-        ":38] dbg!(& a) = NoCopy(",
+        ":39] dbg!(& a) = NoCopy(",
         "    1337",
         ")",
-        ":43] f(&42) = 42",
+        ":44] f(&42) = 42",
 
         "before",
-        ":48] { foo += 1; eprintln!(\"before\"); 7331 } = 7331",
+        ":49] { foo += 1; eprintln!(\"before\"); 7331 } = 7331",
     ]);
 }