Fix ui tests for llvm_asm! deprecation

This commit is contained in:
Amanieu d'Antras 2021-07-29 19:45:13 +02:00
parent 6fd4f3463f
commit 632a400a36
76 changed files with 177 additions and 132 deletions

View file

@ -1,4 +1,5 @@
#![feature(llvm_asm)]
#![allow(deprecated)] // llvm_asm!
// compile-flags: -Ccodegen-units=1
// build-fail
// only-x86_64

View file

@ -1,11 +1,11 @@
error: invalid operand in inline asm: 'int $3'
--> $DIR/issue-23458.rs:8:9
--> $DIR/issue-23458.rs:9:9
|
LL | llvm_asm!("int $3");
| ^
error: too few operands for instruction
--> $DIR/issue-23458.rs:8:9
--> $DIR/issue-23458.rs:9:9
|
LL | llvm_asm!("int $3");
| ^

View file

@ -2,6 +2,7 @@
// ignore-emscripten
#![feature(llvm_asm)]
#![allow(deprecated)] // llvm_asm!
macro_rules! interrupt_handler {
() => {

View file

@ -2,6 +2,7 @@
// ignore-emscripten no llvm_asm! support
#![feature(llvm_asm)]
#![allow(deprecated)] // llvm_asm!
fn main() {
unsafe {

View file

@ -1,5 +1,5 @@
error[E0669]: invalid value for constraint in inline assembly
--> $DIR/issue-37433.rs:8:29
--> $DIR/issue-37433.rs:9:29
|
LL | llvm_asm!("" :: "r"(""));
| ^^

View file

@ -4,6 +4,7 @@
// ignore-emscripten
#![feature(llvm_asm)]
#![allow(deprecated)] // llvm_asm!
macro_rules! fake_jump {
($id:expr) => {

View file

@ -1,5 +1,5 @@
error[E0669]: invalid value for constraint in inline assembly
--> $DIR/issue-53787-inline-assembler-macro.rs:24:16
--> $DIR/issue-53787-inline-assembler-macro.rs:25:16
|
LL | fake_jump!("FirstFunc");
| ^^^^^^^^^^^

View file

@ -2,6 +2,7 @@
#![allow(dead_code)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(deprecated)] // llvm_asm!
// ignore-pretty unreported
#![feature(box_syntax)]