Skip to content

Commit 19691b2

Browse files
committed
Auto merge of #1872 - RalfJung:rustup, r=RalfJung
rustup
2 parents e8ac524 + 2c14bab commit 19691b2

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fa2692990c05652c7823c8d2afae501a00a69050
1+
73d96b090bb68065cd3a469b27cbd568e39bf0e7

test-cargo-miri/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#![feature(llvm_asm)]
1+
#![feature(asm)]
22

33
use std::env;
44

@@ -7,9 +7,9 @@ compile_error!("`miri` cfg should not be set in build script");
77

88
fn not_in_miri() -> i32 {
99
// Inline assembly definitely does not work in Miri.
10-
let dummy = 42;
10+
let mut dummy = 42;
1111
unsafe {
12-
llvm_asm!("" : : "r"(&dummy));
12+
asm!("/* {} */", in(reg) &mut dummy);
1313
}
1414
return dummy;
1515
}

tests/compile-fail/function_calls/exported_symbol_wrong_type.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ fn main() {
55
extern "C" {
66
fn FOO();
77
}
8-
unsafe { FOO() } //~ ERROR unsupported operation: can't call foreign function: FOO
8+
unsafe { FOO() } //~ ERROR attempt to call an exported symbol that is not defined as a function
99
}

0 commit comments

Comments
 (0)