From: Mazdak Farrokhzad Date: Sun, 23 Sep 2018 20:48:24 +0000 (+0200) Subject: dbg_macro: fix line numbers X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=e5b9331a863c071954bcfbaa4446888414e87249;p=rust.git dbg_macro: fix line numbers --- diff --git a/src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs b/src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs index 7211be16ed1..f7216c57e42 100644 --- a/src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs +++ b/src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs @@ -57,31 +57,31 @@ fn f<'a>(x: &'a u8) -> &'a u8 { x } fn validate_stderr(stderr: Vec) { 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", ]); }