Skip to content

Commit 70ab91d

Browse files
committed
Auto merge of #1247 - RalfJung:rustup, r=RalfJung
call error location was fixed by rustup
2 parents b2605d8 + 6355228 commit 70ab91d

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f4c675c476c18b1a11041193f2f59d695b126bc8
1+
98803c182b2ba6ef5dccb6bf501958249295eac0

src/bin/miri-rustc-tests.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
#![feature(rustc_private)]
2-
extern crate getopts;
32
extern crate miri;
43
extern crate rustc;
5-
extern crate rustc_codegen_utils;
64
extern crate rustc_driver;
7-
extern crate rustc_errors;
85
extern crate rustc_hir;
96
extern crate rustc_interface;
10-
extern crate rustc_metadata;
117
extern crate rustc_span;
128

139
use std::io;

tests/compile-fail/cast_fn_ptr1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
fn main() {
2-
fn f() {} //~ ERROR calling a function with more arguments than it expected
2+
fn f() {}
33

44
let g = unsafe {
55
std::mem::transmute::<fn(), fn(i32)>(f)
66
};
77

8-
g(42)
8+
g(42) //~ ERROR calling a function with more arguments than it expected
99
}

tests/compile-fail/cast_fn_ptr5.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
fn main() {
2-
fn f() -> u32 { 42 } //~ ERROR calling a function with return type u32 passing return place of type ()
2+
fn f() -> u32 { 42 }
33

44
let g = unsafe {
55
std::mem::transmute::<fn() -> u32, fn()>(f)
66
};
77

8-
g()
8+
g() //~ ERROR calling a function with return type u32 passing return place of type ()
99
}

0 commit comments

Comments
 (0)