Skip to content

Commit

Permalink
Auto merge of #1872 - RalfJung:rustup, r=RalfJung
Browse files Browse the repository at this point in the history
rustup
  • Loading branch information
bors committed Aug 16, 2021
2 parents e8ac524 + 2c14bab commit 19691b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rust-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fa2692990c05652c7823c8d2afae501a00a69050
73d96b090bb68065cd3a469b27cbd568e39bf0e7
6 changes: 3 additions & 3 deletions test-cargo-miri/build.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![feature(llvm_asm)]
#![feature(asm)]

use std::env;

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

fn not_in_miri() -> i32 {
// Inline assembly definitely does not work in Miri.
let dummy = 42;
let mut dummy = 42;
unsafe {
llvm_asm!("" : : "r"(&dummy));
asm!("/* {} */", in(reg) &mut dummy);
}
return dummy;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ fn main() {
extern "C" {
fn FOO();
}
unsafe { FOO() } //~ ERROR unsupported operation: can't call foreign function: FOO
unsafe { FOO() } //~ ERROR attempt to call an exported symbol that is not defined as a function
}

0 comments on commit 19691b2

Please sign in to comment.