]> git.lizzy.rs Git - rust.git/commitdiff
dbg_macro: fix line numbers
authorMazdak Farrokhzad <twingoow@gmail.com>
Sun, 23 Sep 2018 20:48:24 +0000 (22:48 +0200)
committerMazdak Farrokhzad <twingoow@gmail.com>
Sun, 23 Sep 2018 20:48:24 +0000 (22:48 +0200)
src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs

index 7211be16ed1aa256d844b167b5ea3a0fbec5254d..f7216c57e42b8fd678afdfd02f97bfabb12fffcb 100644 (file)
@@ -57,31 +57,31 @@ fn f<'a>(x: &'a u8) -> &'a u8 { x }
 
 fn validate_stderr(stderr: Vec<String>) {
     assert_eq!(stderr, &[
-        ":22] Unit = Unit",
+        ":23] Unit = Unit",
 
-        ":23] a = Unit",
+        ":24] a = Unit",
 
-        ":29] Point{x: 42, y: 24,} = Point {",
+        ":30] Point{x: 42, y: 24,} = Point {",
         "    x: 42,",
         "    y: 24",
         "}",
 
-        ":30] b = Point {",
+        ":31] b = Point {",
         "    x: 42,",
         "    y: 24",
         "}",
 
-        ":39] &a = NoCopy(",
+        ":40] &a = NoCopy(",
         "    1337",
         ")",
 
-        ":39] dbg!(& a) = NoCopy(",
+        ":40] dbg!(& a) = NoCopy(",
         "    1337",
         ")",
-        ":44] f(&42) = 42",
+        ":45] f(&42) = 42",
 
         "before",
-        ":49] { foo += 1; eprintln!(\"before\"); 7331 } = 7331",
+        ":50] { foo += 1; eprintln!(\"before\"); 7331 } = 7331",
     ]);
 }