mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
fixed issues relating to line numbers being shifted
This commit is contained in:
parent
402a505479
commit
e84b2812ca
@ -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();
|
||||
| ^^^^
|
||||
|
@ -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;
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
@ -70,44 +70,44 @@ fn test() {
|
||||
|
||||
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\"",
|
||||
]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user