From e5b9331a863c071954bcfbaa4446888414e87249 Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Sun, 23 Sep 2018 22:48:24 +0200 Subject: [PATCH] dbg_macro: fix line numbers --- .../dbg-macro-expected-behavior.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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 7211be16ed1aa..f7216c57e42b8 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 test() { 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", ]); }