]> git.lizzy.rs Git - rust.git/commitdiff
fixed issues relating to line numbers being shifted
authorDario Gonzalez <dario.gonzalez@fortanix.com>
Tue, 30 Apr 2019 04:47:15 +0000 (21:47 -0700)
committerDario Gonzalez <dario.gonzalez@fortanix.com>
Thu, 16 May 2019 21:29:12 +0000 (14:29 -0700)
src/test/ui/issues/issue-39175.stderr
src/test/ui/linkage2.stderr
src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs

index 6aee474fe7435d02a0d2b5b7caef20c84aff7afe..108c969cdaddedfb445b22efd4179943e6039805 100644 (file)
@@ -1,5 +1,5 @@
 error[E0599]: no method named `exec` found for type `&mut std::process::Command` in the current scope
-  --> $DIR/issue-39175.rs:14:39
+  --> $DIR/issue-39175.rs:15:39
    |
 LL |     Command::new("echo").arg("hello").exec();
    |                                       ^^^^
index c72978388ebfe232b90d1ccb25c1a274a77a2d4a..8326c0bacccb64ed4b0ffc9edbe6ea28b86ca0d7 100644 (file)
@@ -1,5 +1,5 @@
 error: must have type `*const T` or `*mut T`
-  --> $DIR/linkage2.rs:8:32
+  --> $DIR/linkage2.rs:9:32
    |
 LL |     #[linkage = "extern_weak"] static foo: i32;
    |                                ^^^^^^^^^^^^^^^^
index 7e0dfe894ecf060d72941a6b955cd2563c58324b..e885263aa80840863fe5b44eb1a8381e171ec707 100644 (file)
@@ -70,44 +70,44 @@ 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,",
         "}",
 
-        ":37]",
+        ":38]",
 
-        ":41] &a = NoCopy(",
+        ":42] &a = NoCopy(",
         "    1337,",
         ")",
 
-        ":41] dbg!(& a) = NoCopy(",
+        ":42] dbg!(& a) = NoCopy(",
         "    1337,",
         ")",
-        ":46] f(&42) = 42",
+        ":47] f(&42) = 42",
 
         "before",
-        ":51] { foo += 1; eprintln!(\"before\"); 7331 } = 7331",
+        ":52] { foo += 1; eprintln!(\"before\"); 7331 } = 7331",
 
-        ":59] (\"Yeah\",) = (",
+        ":60] (\"Yeah\",) = (",
         "    \"Yeah\",",
         ")",
 
-        ":62] 1 = 1",
-        ":62] 2 = 2",
+        ":63] 1 = 1",
+        ":63] 2 = 2",
 
-        ":66] 1u8 = 1",
-        ":66] 2u32 = 2",
-        ":66] \"Yeah\" = \"Yeah\"",
+        ":67] 1u8 = 1",
+        ":67] 2u32 = 2",
+        ":67] \"Yeah\" = \"Yeah\"",
     ]);
 }