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!
fn main() {
let a;

View file

@ -1,11 +1,11 @@
error[E0660]: malformed inline assembly
--> $DIR/E0660.rs:5:5
--> $DIR/E0660.rs:6:5
|
LL | llvm_asm!("nop" "nop");
| ^^^^^^^^^^^^^^^^^^^^^^^
error[E0660]: malformed inline assembly
--> $DIR/E0660.rs:7:5
--> $DIR/E0660.rs:8:5
|
LL | llvm_asm!("nop" "nop" : "=r"(a));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View file

@ -1,6 +1,7 @@
// ignore-emscripten
#![feature(llvm_asm)]
#![allow(deprecated)] // llvm_asm!
fn main() {
let a; //~ ERROR type annotations needed

View file

@ -1,11 +1,11 @@
error[E0661]: output operand constraint lacks '=' or '+'
--> $DIR/E0661.rs:7:23
--> $DIR/E0661.rs:8:23
|
LL | llvm_asm!("nop" : "r"(a));
| ^^^
error[E0282]: type annotations needed
--> $DIR/E0661.rs:6:9
--> $DIR/E0661.rs:7:9
|
LL | let a;
| ^ consider giving `a` a type

View file

@ -1,6 +1,7 @@
// ignore-emscripten
#![feature(llvm_asm)]
#![allow(deprecated)] // llvm_asm!
fn main() {
llvm_asm!("xor %eax, %eax"

View file

@ -1,5 +1,5 @@
error[E0662]: input operand constraint contains '='
--> $DIR/E0662.rs:8:17
--> $DIR/E0662.rs:9:17
|
LL | : "=test"("a")
| ^^^^^^^

View file

@ -1,6 +1,7 @@
// ignore-emscripten
#![feature(llvm_asm)]
#![allow(deprecated)] // llvm_asm!
fn main() {
llvm_asm!("xor %eax, %eax"

View file

@ -1,5 +1,5 @@
error[E0663]: input operand constraint contains '+'
--> $DIR/E0663.rs:8:17
--> $DIR/E0663.rs:9:17
|
LL | : "+test"("a")
| ^^^^^^^

View file

@ -1,6 +1,7 @@
// ignore-emscripten
#![feature(llvm_asm)]
#![allow(deprecated)] // llvm_asm!
fn main() {
llvm_asm!("mov $$0x200, %eax"

View file

@ -1,5 +1,5 @@
error[E0664]: clobber should not be surrounded by braces
--> $DIR/E0664.rs:9:17
--> $DIR/E0664.rs:10:17
|
LL | : "{eax}"
| ^^^^^^^