Update test directives for wasm32-wasip1

* The WASI targets deal with the `main` symbol a bit differently than
  native so some `codegen` and `assembly` tests have been ignored.
* All `ignore-emscripten` directives have been updated to
  `ignore-wasm32` to be more clear that all wasm targets are ignored and
  it's not just Emscripten.
* Most `ignore-wasm32-bare` directives are now gone.
* Some ignore directives for wasm were switched to `needs-unwind`
  instead.
* Many `ignore-wasm32*` directives are removed as the tests work with
  WASI as opposed to `wasm32-unknown-unknown`.
This commit is contained in:
Alex Crichton 2024-03-06 12:44:54 -08:00
parent 4a5aa1a104
commit cf6d6050f7
195 changed files with 210 additions and 332 deletions

View file

@ -1,4 +1,4 @@
//@ only-wasm32-bare
//@ only-wasm32
//@ assembly-output: emit-asm
//@ compile-flags: -C target-feature=+exception-handling
//@ compile-flags: -C panic=unwind

View file

@ -4,6 +4,7 @@
// This test is for targets with 32bit c_int only.
//@ ignore-msp430
//@ ignore-avr
//@ ignore-wasi wasi codegens the main symbol differently
fn main() {
}

View file

@ -1,4 +1,3 @@
//@ ignore-wasm32-bare compiled with panic=abort by default
//@ needs-unwind - this test verifies the amount of drop calls when unwinding is used
//@ compile-flags: -C no-prepopulate-passes

View file

@ -3,6 +3,7 @@
//
//@ ignore-msvc
//@ ignore-wasi wasi codegens the main symbol differently
//@ compile-flags: -g -C no-prepopulate-passes

View file

@ -2,6 +2,7 @@
// This is ignored for the fallback mode on MSVC due to problems with PDB.
//@ ignore-msvc
//@ ignore-wasi wasi codegens the main symbol differently
//@ compile-flags: -g -C no-prepopulate-passes

View file

@ -2,6 +2,7 @@
// This is ignored for the fallback mode on MSVC due to problems with PDB.
//@ ignore-msvc
//@ ignore-wasi wasi codegens the main symbol differently
//@ compile-flags: -g -C no-prepopulate-passes

View file

@ -3,6 +3,7 @@
//
//@ ignore-msvc
//@ ignore-wasi wasi codegens the main symbol differently
//@ compile-flags: -g -C no-prepopulate-passes

View file

@ -1,4 +1,5 @@
//@ compile-flags: -g
//@ ignore-wasi wasi codegens the main symbol differently
//
// CHECK-LABEL: @main
// MSVC: {{.*}}DIDerivedType(tag: DW_TAG_pointer_type, name: "recursive_type$ (*)()",{{.*}}

View file

@ -1,4 +1,5 @@
//@ ignore-windows
//@ ignore-wasi wasi codegens the main symbol differently
//@ compile-flags: -g -C no-prepopulate-passes

View file

@ -1,4 +1,4 @@
//@ ignore-emscripten default visibility is hidden
//@ ignore-wasm32 custom sections work differently on wasm
//@ compile-flags: -C no-prepopulate-passes
#![crate_type = "lib"]

View file

@ -3,6 +3,7 @@
//@ ignore-windows
//@ ignore-macos
//@ ignore-wasi
//@ compile-flags: -g -C no-prepopulate-passes

View file

@ -1,5 +1,6 @@
//@ ignore-windows
//@ ignore-macos
//@ ignore-wasi wasi codegens the main symbol differently
//@ compile-flags: -g -C no-prepopulate-passes

View file

@ -1,5 +1,4 @@
//@ ignore-msvc
//@ ignore-wasm32-bare compiled with panic=abort by default
//@ needs-unwind
//@ compile-flags: -O -C no-prepopulate-passes

View file

@ -1,5 +1,4 @@
//@ compile-flags: -C opt-level=0 -Cpanic=abort
//@ ignore-wasm32-bare compiled with panic=abort by default
#![crate_type = "lib"]

View file

@ -1,5 +1,4 @@
//@ compile-flags: -C opt-level=0
//@ ignore-wasm32-bare compiled with panic=abort by default
//@ needs-unwind
#![crate_type = "lib"]

View file

@ -1,5 +1,5 @@
//@ compile-flags: -C opt-level=0 -Cpanic=abort
//@ ignore-wasm32-bare compiled with panic=abort by default
//@ needs-unwind
#![crate_type = "lib"]
#![feature(c_unwind)]

View file

@ -1,5 +1,4 @@
//@ compile-flags: -C opt-level=0
//@ ignore-wasm32-bare compiled with panic=abort by default
//@ needs-unwind
#![crate_type = "lib"]

View file

@ -1,5 +1,4 @@
//@ compile-flags: -C no-prepopulate-passes
//@ ignore-wasm32-bare compiled with panic=abort by default
//@ needs-unwind
#![crate_type = "lib"]

View file

@ -1,4 +1,4 @@
//@ only-wasm32-bare
//@ only-wasm32
//@ compile-flags: -C panic=unwind
#![crate_type = "lib"]

View file

@ -1,7 +1,6 @@
// Test that we detect changes to the `dep_kind` query. If the change is not
// detected then -Zincremental-verify-ich will trigger an assertion.
//@ ignore-wasm32-bare compiled with panic=abort by default
//@ needs-unwind
//@ revisions:cfail1 cfail2
//@ compile-flags: -Z query-dep-graph -Cpanic=unwind

View file

@ -1,5 +1,4 @@
//@ aux-build:issue-54059.rs
//@ ignore-wasm32-bare no libc for ffi testing
//@ ignore-windows - dealing with weird symbols issues on dylibs isn't worth it
//@ revisions: rpass1

View file

@ -1,4 +1,4 @@
//@ ignore-emscripten
//@ ignore-wasm32 no subprocess support
//@ ignore-sgx no processes
//@ ignore-macos this needs valgrind 3.11 or higher; see
// https://github.com/rust-lang/rust/pull/30365#issuecomment-165763679

View file

@ -1,6 +1,5 @@
//@ run-pass
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with
#![feature(rustc_private)]

View file

@ -1,6 +1,5 @@
//@ run-pass
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with
#![feature(rustc_private)]

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm32-bare no libc to test with
//@ ignore-sgx no libc
#![feature(rustc_private)]

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with
#[link(name = "rust_test_helpers", kind = "static")]
extern "C" {

View file

@ -1,7 +1,6 @@
//@ run-pass
//@ aux-build:anon-extern-mod-cross-crate-1.rs
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with
extern crate anonexternmod;

View file

@ -2,7 +2,6 @@
//@ aux-build:anon-extern-mod-cross-crate-1.rs
//@ aux-build:anon-extern-mod-cross-crate-1.rs
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no libc to test ffi with
extern crate anonexternmod;

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with
//@ ignore-emscripten blows the JS stack
#![feature(rustc_private)]

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with
#![feature(rustc_private)]

View file

@ -1,6 +1,5 @@
//@ run-pass
//@ aux-build:extern-crosscrate-source.rs
//@ ignore-wasm32-bare no libc to test ffi with
#![feature(rustc_private)]

View file

@ -1,8 +1,6 @@
//@ run-pass
#![allow(improper_ctypes)]
//@ ignore-wasm32-bare no libc for ffi testing
// Test a foreign function that accepts and returns a struct
// by value.

View file

@ -1,8 +1,6 @@
//@ run-pass
#![allow(improper_ctypes)]
//@ ignore-wasm32-bare no libc for ffi testing
// Test a foreign function that accepts and returns a struct
// by value.

View file

@ -1,8 +1,6 @@
//@ run-pass
#![allow(improper_ctypes)]
//@ ignore-wasm32-bare no libc for ffi testing
// Test a foreign function that accepts and returns a struct
// by value.

View file

@ -1,8 +1,6 @@
//@ run-pass
#![allow(improper_ctypes)]
//@ ignore-wasm32-bare no libc for ffi testing
// Test a foreign function that accepts and returns a struct
// by value.

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm32-bare no libc for ffi testing
// Test a function that takes/returns a u8.

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm32-bare no libc for ffi testing
#[link(name = "rust_test_helpers", kind = "static")]
extern "C" {

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm32-bare no libc for ffi testing
// Test a function that takes/returns a u32.

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm32-bare no libc for ffi testing
// Test a call to a function that takes/returns a u64.

View file

@ -1,8 +1,6 @@
//@ run-pass
#![allow(improper_ctypes)]
//@ ignore-wasm32-bare no libc to test ffi with
pub struct TwoU16s {
one: u16,
two: u16,

View file

@ -1,8 +1,6 @@
//@ run-pass
#![allow(improper_ctypes)]
//@ ignore-wasm32-bare no libc to test ffi with
pub struct TwoU32s {
one: u32,
two: u32,

View file

@ -1,8 +1,6 @@
//@ run-pass
#![allow(improper_ctypes)]
//@ ignore-wasm32-bare no libc to test ffi with
pub struct TwoU64s {
one: u64,
two: u64,

View file

@ -1,8 +1,6 @@
//@ run-pass
#![allow(improper_ctypes)]
//@ ignore-wasm32-bare no libc to test ffi with
pub struct TwoU8s {
one: u8,
two: u8,

View file

@ -1,6 +1,5 @@
//@ run-pass
//@ aux-build:foreign_lib.rs
//@ ignore-wasm32-bare no libc to test ffi with
// Check that we can still call duplicated extern (imported) functions
// which were declared in another crate. See issues #32740 and #32783.

View file

@ -1,8 +1,6 @@
//@ run-pass
#![allow(improper_ctypes, improper_ctypes_definitions)]
//@ ignore-wasm32-bare no libc to test ffi with
#[derive(Copy, Clone)]
pub struct S {
x: u64,

View file

@ -1,7 +1,6 @@
//@ run-pass
// ABI is cdecl by default
//@ ignore-wasm32-bare no libc to test ffi with
//@ pretty-expanded FIXME #23616
#![feature(rustc_private)]

View file

@ -1,6 +1,5 @@
//@ run-pass
//@ aux-build:foreign_lib.rs
//@ ignore-wasm32-bare no libc to test ffi with
// The purpose of this test is to check that we can
// successfully (and safely) invoke external, cdecl

View file

@ -5,7 +5,7 @@
// without #[repr(simd)]
//@ run-pass
//@ ignore-emscripten
//@ ignore-wasm32 no processes
//@ ignore-sgx no processes
#![feature(avx512_target_feature)]

View file

@ -2,8 +2,6 @@
#![allow(dead_code)]
#![allow(improper_ctypes)]
//@ ignore-wasm32-bare no libc to test ffi with
#[derive(Copy, Clone)]
pub struct Quad {
a: u64,

View file

@ -2,8 +2,6 @@
#![allow(dead_code)]
#![allow(improper_ctypes)]
//@ ignore-wasm32-bare no libc to test ffi with
#[derive(Copy, Clone)]
pub struct QuadFloats {
a: f32,

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm
#![allow(dead_code)]
#![allow(improper_ctypes)]

View file

@ -1,8 +1,6 @@
//@ run-pass
//@ dont-check-compiler-stderr (rust-lang/rust#54222)
//@ ignore-wasm32-bare no libc to test ffi with
//@ compile-flags: -lrust_test_helpers
#[link(name = "rust_test_helpers", kind = "static")]

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with
#[link(name = "rust_test_helpers", kind = "static")]
extern "C" {

View file

@ -1,7 +1,7 @@
//@ run-pass
#![allow(unused_imports)]
//@ ignore-emscripten can't run commands
//@ ignore-wasm32 can't run commands
//@ ignore-sgx no processes
//@ ignore-fuchsia must translate zircon signal to SIGSEGV/SIGBUS, FIXME (#58590)
#![feature(rustc_private)]

View file

@ -3,8 +3,6 @@
// statics cannot. This ensures that there's some form of error if this is
// attempted.
//@ ignore-wasm32-bare no libc to test ffi with
#![feature(rustc_private)]
extern crate libc;

View file

@ -1,5 +1,5 @@
warning: creating a shared reference to mutable static is discouraged
--> $DIR/static-mut-foreign.rs:35:18
--> $DIR/static-mut-foreign.rs:33:18
|
LL | static_bound(&rust_dbg_static_mut);
| ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
@ -14,7 +14,7 @@ LL | static_bound(addr_of!(rust_dbg_static_mut));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: creating a mutable reference to mutable static is discouraged
--> $DIR/static-mut-foreign.rs:37:22
--> $DIR/static-mut-foreign.rs:35:22
|
LL | static_bound_set(&mut rust_dbg_static_mut);
| ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static

View file

@ -1,6 +1,5 @@
//@ run-pass
#![allow(dead_code)]
//@ ignore-wasm32-bare no libc to test ffi with
#[repr(C)]
#[derive(Copy, Clone)]

View file

@ -1,8 +1,6 @@
//@ run-pass
#![allow(non_snake_case)]
//@ ignore-wasm32-bare no libc to test ffi with
#[derive(Clone, Copy)]
#[repr(C)]
struct LARGE_INTEGER_U {

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm32-bare no libc to test ffi with
#![feature(c_variadic)]
use std::ffi::VaList;

View file

@ -1,5 +1,5 @@
//@ run-pass
//@ ignore-emscripten no processes
//@ ignore-wasm32 no processes
//@ ignore-sgx no processes
use std::alloc::{Layout, handle_alloc_error};

View file

@ -2,7 +2,6 @@
//@ ignore-android no libc
//@ ignore-emscripten no libc
//@ ignore-sgx no libc
//@ ignore-wasm32 no libc
//@ only-linux
//@ compile-flags:-C panic=abort
//@ aux-build:helper.rs

View file

@ -2,7 +2,6 @@
//@ ignore-android no libc
//@ ignore-emscripten no libc
//@ ignore-sgx no libc
//@ ignore-wasm32 no libc
//@ only-linux
//@ compile-flags:-C panic=abort
//@ aux-build:helper.rs

View file

@ -1,7 +1,6 @@
//@ needs-asm-support
//@ ignore-nvptx64
//@ ignore-spirv
//@ ignore-wasm32
// Make sure rustc doesn't ICE on asm! when output type is !.
use std::arch::asm;

View file

@ -1,5 +1,5 @@
error: cannot use value of type `!` for inline assembly
--> $DIR/issue-87802.rs:12:36
--> $DIR/issue-87802.rs:11:36
|
LL | asm!("/* {0} */", out(reg) x);
| ^

View file

@ -1,7 +1,6 @@
//@ needs-asm-support
//@ ignore-nvptx64
//@ ignore-spirv
//@ ignore-wasm32
#![feature(naked_functions)]
#![feature(asm_const, asm_unwind)]

View file

@ -1,53 +1,53 @@
error: asm with the `pure` option must have at least one output
--> $DIR/naked-functions.rs:113:14
--> $DIR/naked-functions.rs:112:14
|
LL | asm!("", options(readonly, nostack), options(pure));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^
error: this is a user specified error
--> $DIR/naked-functions.rs:205:5
--> $DIR/naked-functions.rs:204:5
|
LL | compile_error!("this is a user specified error")
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: this is a user specified error
--> $DIR/naked-functions.rs:211:5
--> $DIR/naked-functions.rs:210:5
|
LL | compile_error!("this is a user specified error");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: asm template must be a string literal
--> $DIR/naked-functions.rs:218:10
--> $DIR/naked-functions.rs:217:10
|
LL | asm!(invalid_syntax)
| ^^^^^^^^^^^^^^
error: patterns not allowed in naked function parameters
--> $DIR/naked-functions.rs:20:5
--> $DIR/naked-functions.rs:19:5
|
LL | mut a: u32,
| ^^^^^
error: patterns not allowed in naked function parameters
--> $DIR/naked-functions.rs:22:5
--> $DIR/naked-functions.rs:21:5
|
LL | &b: &i32,
| ^^
error: patterns not allowed in naked function parameters
--> $DIR/naked-functions.rs:24:6
--> $DIR/naked-functions.rs:23:6
|
LL | (None | Some(_)): Option<std::ptr::NonNull<u8>>,
| ^^^^^^^^^^^^^^
error: patterns not allowed in naked function parameters
--> $DIR/naked-functions.rs:26:5
--> $DIR/naked-functions.rs:25:5
|
LL | P { x, y }: P,
| ^^^^^^^^^^
error: referencing function parameters is not allowed in naked functions
--> $DIR/naked-functions.rs:35:5
--> $DIR/naked-functions.rs:34:5
|
LL | a + 1
| ^
@ -55,7 +55,7 @@ LL | a + 1
= help: follow the calling convention in asm block to use parameters
error[E0787]: naked functions must contain a single asm block
--> $DIR/naked-functions.rs:33:1
--> $DIR/naked-functions.rs:32:1
|
LL | pub unsafe extern "C" fn inc(a: u32) -> u32 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -64,7 +64,7 @@ LL | a + 1
| ----- non-asm is unsupported in naked functions
error: referencing function parameters is not allowed in naked functions
--> $DIR/naked-functions.rs:42:31
--> $DIR/naked-functions.rs:41:31
|
LL | asm!("/* {0} */", in(reg) a, options(noreturn));
| ^
@ -72,13 +72,13 @@ LL | asm!("/* {0} */", in(reg) a, options(noreturn));
= help: follow the calling convention in asm block to use parameters
error[E0787]: only `const` and `sym` operands are supported in naked functions
--> $DIR/naked-functions.rs:42:23
--> $DIR/naked-functions.rs:41:23
|
LL | asm!("/* {0} */", in(reg) a, options(noreturn));
| ^^^^^^^^^
error[E0787]: naked functions must contain a single asm block
--> $DIR/naked-functions.rs:48:1
--> $DIR/naked-functions.rs:47:1
|
LL | pub unsafe extern "C" fn inc_closure(a: u32) -> u32 {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -87,7 +87,7 @@ LL | (|| a + 1)()
| ------------ non-asm is unsupported in naked functions
error[E0787]: only `const` and `sym` operands are supported in naked functions
--> $DIR/naked-functions.rs:65:10
--> $DIR/naked-functions.rs:64:10
|
LL | in(reg) a,
| ^^^^^^^^^
@ -102,7 +102,7 @@ LL | out(reg) e,
| ^^^^^^^^^^
error[E0787]: asm in naked functions must use `noreturn` option
--> $DIR/naked-functions.rs:63:5
--> $DIR/naked-functions.rs:62:5
|
LL | / asm!("/* {0} {1} {2} {3} {4} {5} {6} */",
LL | |
@ -119,7 +119,7 @@ LL | sym G, options(noreturn),
| +++++++++++++++++++
error[E0787]: naked functions must contain a single asm block
--> $DIR/naked-functions.rs:54:1
--> $DIR/naked-functions.rs:53:1
|
LL | pub unsafe extern "C" fn unsupported_operands() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -136,13 +136,13 @@ LL | let mut e = 0usize;
| ------------------- non-asm is unsupported in naked functions
error[E0787]: naked functions must contain a single asm block
--> $DIR/naked-functions.rs:77:1
--> $DIR/naked-functions.rs:76:1
|
LL | pub extern "C" fn missing_assembly() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0787]: asm in naked functions must use `noreturn` option
--> $DIR/naked-functions.rs:85:9
--> $DIR/naked-functions.rs:84:9
|
LL | asm!("");
| ^^^^^^^^
@ -153,7 +153,7 @@ LL | asm!("", options(noreturn));
| +++++++++++++++++++
error[E0787]: asm in naked functions must use `noreturn` option
--> $DIR/naked-functions.rs:87:9
--> $DIR/naked-functions.rs:86:9
|
LL | asm!("");
| ^^^^^^^^
@ -164,7 +164,7 @@ LL | asm!("", options(noreturn));
| +++++++++++++++++++
error[E0787]: asm in naked functions must use `noreturn` option
--> $DIR/naked-functions.rs:89:9
--> $DIR/naked-functions.rs:88:9
|
LL | asm!("");
| ^^^^^^^^
@ -175,7 +175,7 @@ LL | asm!("", options(noreturn));
| +++++++++++++++++++
error[E0787]: naked functions must contain a single asm block
--> $DIR/naked-functions.rs:82:1
--> $DIR/naked-functions.rs:81:1
|
LL | pub extern "C" fn too_many_asm_blocks() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -190,7 +190,7 @@ LL | asm!("", options(noreturn));
| --------------------------- multiple asm blocks are unsupported in naked functions
error: referencing function parameters is not allowed in naked functions
--> $DIR/naked-functions.rs:99:11
--> $DIR/naked-functions.rs:98:11
|
LL | *&y
| ^
@ -198,7 +198,7 @@ LL | *&y
= help: follow the calling convention in asm block to use parameters
error[E0787]: naked functions must contain a single asm block
--> $DIR/naked-functions.rs:97:5
--> $DIR/naked-functions.rs:96:5
|
LL | pub extern "C" fn inner(y: usize) -> usize {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -207,19 +207,19 @@ LL | *&y
| --- non-asm is unsupported in naked functions
error[E0787]: asm options unsupported in naked functions: `nomem`, `preserves_flags`
--> $DIR/naked-functions.rs:107:5
--> $DIR/naked-functions.rs:106:5
|
LL | asm!("", options(nomem, preserves_flags, noreturn));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0787]: asm options unsupported in naked functions: `nostack`, `pure`, `readonly`
--> $DIR/naked-functions.rs:113:5
--> $DIR/naked-functions.rs:112:5
|
LL | asm!("", options(readonly, nostack), options(pure));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0787]: asm in naked functions must use `noreturn` option
--> $DIR/naked-functions.rs:113:5
--> $DIR/naked-functions.rs:112:5
|
LL | asm!("", options(readonly, nostack), options(pure));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -230,13 +230,13 @@ LL | asm!("", options(noreturn), options(readonly, nostack), options(pure));
| +++++++++++++++++++
error[E0787]: asm options unsupported in naked functions: `may_unwind`
--> $DIR/naked-functions.rs:121:5
--> $DIR/naked-functions.rs:120:5
|
LL | asm!("", options(noreturn, may_unwind));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warning: Rust ABI is unsupported in naked functions
--> $DIR/naked-functions.rs:126:1
--> $DIR/naked-functions.rs:125:1
|
LL | pub unsafe fn default_abi() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -244,43 +244,43 @@ LL | pub unsafe fn default_abi() {
= note: `#[warn(undefined_naked_function_abi)]` on by default
warning: Rust ABI is unsupported in naked functions
--> $DIR/naked-functions.rs:132:1
--> $DIR/naked-functions.rs:131:1
|
LL | pub unsafe fn rust_abi() {
| ^^^^^^^^^^^^^^^^^^^^^^^^
error: naked functions cannot be inlined
--> $DIR/naked-functions.rs:172:1
--> $DIR/naked-functions.rs:171:1
|
LL | #[inline]
| ^^^^^^^^^
error: naked functions cannot be inlined
--> $DIR/naked-functions.rs:179:1
--> $DIR/naked-functions.rs:178:1
|
LL | #[inline(always)]
| ^^^^^^^^^^^^^^^^^
error: naked functions cannot be inlined
--> $DIR/naked-functions.rs:186:1
--> $DIR/naked-functions.rs:185:1
|
LL | #[inline(never)]
| ^^^^^^^^^^^^^^^^
error: naked functions cannot be inlined
--> $DIR/naked-functions.rs:193:1
--> $DIR/naked-functions.rs:192:1
|
LL | #[inline]
| ^^^^^^^^^
error: naked functions cannot be inlined
--> $DIR/naked-functions.rs:195:1
--> $DIR/naked-functions.rs:194:1
|
LL | #[inline(always)]
| ^^^^^^^^^^^^^^^^^
error: naked functions cannot be inlined
--> $DIR/naked-functions.rs:197:1
--> $DIR/naked-functions.rs:196:1
|
LL | #[inline(never)]
| ^^^^^^^^^^^^^^^^

View file

@ -1,7 +1,6 @@
//@ needs-asm-support
//@ ignore-nvptx64
//@ ignore-spirv
//@ ignore-wasm32
// Tests that the use of named labels in the `asm!` macro are linted against
// except for in `#[naked]` fns.

View file

@ -1,5 +1,5 @@
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:24:15
--> $DIR/named-asm-labels.rs:23:15
|
LL | asm!("bar: nop");
| ^^^
@ -9,7 +9,7 @@ LL | asm!("bar: nop");
= note: `#[deny(named_asm_labels)]` on by default
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:27:15
--> $DIR/named-asm-labels.rs:26:15
|
LL | asm!("abcd:");
| ^^^^
@ -18,7 +18,7 @@ LL | asm!("abcd:");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:30:15
--> $DIR/named-asm-labels.rs:29:15
|
LL | asm!("foo: bar1: nop");
| ^^^ ^^^^
@ -27,7 +27,7 @@ LL | asm!("foo: bar1: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:34:15
--> $DIR/named-asm-labels.rs:33:15
|
LL | asm!("foo1: nop", "nop");
| ^^^^
@ -36,7 +36,7 @@ LL | asm!("foo1: nop", "nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:35:15
--> $DIR/named-asm-labels.rs:34:15
|
LL | asm!("foo2: foo3: nop", "nop");
| ^^^^ ^^^^
@ -45,7 +45,7 @@ LL | asm!("foo2: foo3: nop", "nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:37:22
--> $DIR/named-asm-labels.rs:36:22
|
LL | asm!("nop", "foo4: nop");
| ^^^^
@ -54,7 +54,7 @@ LL | asm!("nop", "foo4: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:38:15
--> $DIR/named-asm-labels.rs:37:15
|
LL | asm!("foo5: nop", "foo6: nop");
| ^^^^
@ -63,7 +63,7 @@ LL | asm!("foo5: nop", "foo6: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:38:28
--> $DIR/named-asm-labels.rs:37:28
|
LL | asm!("foo5: nop", "foo6: nop");
| ^^^^
@ -72,7 +72,7 @@ LL | asm!("foo5: nop", "foo6: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:43:15
--> $DIR/named-asm-labels.rs:42:15
|
LL | asm!("foo7: nop; foo8: nop");
| ^^^^ ^^^^
@ -81,7 +81,7 @@ LL | asm!("foo7: nop; foo8: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:45:15
--> $DIR/named-asm-labels.rs:44:15
|
LL | asm!("foo9: nop; nop");
| ^^^^
@ -90,7 +90,7 @@ LL | asm!("foo9: nop; nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:46:20
--> $DIR/named-asm-labels.rs:45:20
|
LL | asm!("nop; foo10: nop");
| ^^^^^
@ -99,7 +99,7 @@ LL | asm!("nop; foo10: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:49:15
--> $DIR/named-asm-labels.rs:48:15
|
LL | asm!("bar2: nop\n bar3: nop");
| ^^^^ ^^^^
@ -108,7 +108,7 @@ LL | asm!("bar2: nop\n bar3: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:51:15
--> $DIR/named-asm-labels.rs:50:15
|
LL | asm!("bar4: nop\n nop");
| ^^^^
@ -117,7 +117,7 @@ LL | asm!("bar4: nop\n nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:52:21
--> $DIR/named-asm-labels.rs:51:21
|
LL | asm!("nop\n bar5: nop");
| ^^^^
@ -126,7 +126,7 @@ LL | asm!("nop\n bar5: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:53:21
--> $DIR/named-asm-labels.rs:52:21
|
LL | asm!("nop\n bar6: bar7: nop");
| ^^^^ ^^^^
@ -135,7 +135,7 @@ LL | asm!("nop\n bar6: bar7: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:59:13
--> $DIR/named-asm-labels.rs:58:13
|
LL | blah2: nop
| ^^^^^
@ -146,7 +146,7 @@ LL | blah3: nop
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:68:19
--> $DIR/named-asm-labels.rs:67:19
|
LL | nop ; blah4: nop
| ^^^^^
@ -155,7 +155,7 @@ LL | nop ; blah4: nop
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:82:15
--> $DIR/named-asm-labels.rs:81:15
|
LL | asm!("blah1: 2bar: nop");
| ^^^^^
@ -164,7 +164,7 @@ LL | asm!("blah1: 2bar: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:85:15
--> $DIR/named-asm-labels.rs:84:15
|
LL | asm!("def: def: nop");
| ^^^
@ -173,7 +173,7 @@ LL | asm!("def: def: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:86:15
--> $DIR/named-asm-labels.rs:85:15
|
LL | asm!("def: nop\ndef: nop");
| ^^^
@ -182,7 +182,7 @@ LL | asm!("def: nop\ndef: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:87:15
--> $DIR/named-asm-labels.rs:86:15
|
LL | asm!("def: nop; def: nop");
| ^^^
@ -191,7 +191,7 @@ LL | asm!("def: nop; def: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:95:15
--> $DIR/named-asm-labels.rs:94:15
|
LL | asm!("fooo\u{003A} nop");
| ^^^^^^^^^^^^^^^^
@ -200,7 +200,7 @@ LL | asm!("fooo\u{003A} nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:96:15
--> $DIR/named-asm-labels.rs:95:15
|
LL | asm!("foooo\x3A nop");
| ^^^^^^^^^^^^^
@ -209,7 +209,7 @@ LL | asm!("foooo\x3A nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:99:15
--> $DIR/named-asm-labels.rs:98:15
|
LL | asm!("fooooo:\u{000A} nop");
| ^^^^^^
@ -218,7 +218,7 @@ LL | asm!("fooooo:\u{000A} nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:100:15
--> $DIR/named-asm-labels.rs:99:15
|
LL | asm!("foooooo:\x0A nop");
| ^^^^^^^
@ -227,7 +227,7 @@ LL | asm!("foooooo:\x0A nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:104:14
--> $DIR/named-asm-labels.rs:103:14
|
LL | asm!("\x41\x42\x43\x3A\x20\x6E\x6F\x70");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -236,7 +236,7 @@ LL | asm!("\x41\x42\x43\x3A\x20\x6E\x6F\x70");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:112:13
--> $DIR/named-asm-labels.rs:111:13
|
LL | ab: nop // ab: does foo
| ^^
@ -245,7 +245,7 @@ LL | ab: nop // ab: does foo
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:132:19
--> $DIR/named-asm-labels.rs:131:19
|
LL | asm!("test_{}: nop", in(reg) 10);
| ^^^^^^^
@ -254,7 +254,7 @@ LL | asm!("test_{}: nop", in(reg) 10);
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:134:15
--> $DIR/named-asm-labels.rs:133:15
|
LL | asm!("test_{}: nop", const 10);
| ^^^^^^^
@ -263,7 +263,7 @@ LL | asm!("test_{}: nop", const 10);
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:135:15
--> $DIR/named-asm-labels.rs:134:15
|
LL | asm!("test_{}: nop", sym main);
| ^^^^^^^
@ -272,7 +272,7 @@ LL | asm!("test_{}: nop", sym main);
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:136:15
--> $DIR/named-asm-labels.rs:135:15
|
LL | asm!("{}_test: nop", const 10);
| ^^^^^^^
@ -281,7 +281,7 @@ LL | asm!("{}_test: nop", const 10);
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:137:15
--> $DIR/named-asm-labels.rs:136:15
|
LL | asm!("test_{}_test: nop", const 10);
| ^^^^^^^^^^^^
@ -290,7 +290,7 @@ LL | asm!("test_{}_test: nop", const 10);
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:138:15
--> $DIR/named-asm-labels.rs:137:15
|
LL | asm!("{}: nop", const 10);
| ^^
@ -299,7 +299,7 @@ LL | asm!("{}: nop", const 10);
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:140:15
--> $DIR/named-asm-labels.rs:139:15
|
LL | asm!("{uwu}: nop", uwu = const 10);
| ^^^^^
@ -308,7 +308,7 @@ LL | asm!("{uwu}: nop", uwu = const 10);
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:141:15
--> $DIR/named-asm-labels.rs:140:15
|
LL | asm!("{0}: nop", const 10);
| ^^^
@ -317,7 +317,7 @@ LL | asm!("{0}: nop", const 10);
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:142:15
--> $DIR/named-asm-labels.rs:141:15
|
LL | asm!("{1}: nop", "/* {0} */", const 10, const 20);
| ^^^
@ -326,7 +326,7 @@ LL | asm!("{1}: nop", "/* {0} */", const 10, const 20);
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:145:14
--> $DIR/named-asm-labels.rs:144:14
|
LL | asm!(include_str!("named-asm-labels.s"));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@ -335,7 +335,7 @@ LL | asm!(include_str!("named-asm-labels.s"));
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
warning: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:155:19
--> $DIR/named-asm-labels.rs:154:19
|
LL | asm!("warned: nop");
| ^^^^^^
@ -343,13 +343,13 @@ LL | asm!("warned: nop");
= help: only local labels of the form `<number>:` should be used in inline asm
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
note: the lint level is defined here
--> $DIR/named-asm-labels.rs:153:16
--> $DIR/named-asm-labels.rs:152:16
|
LL | #[warn(named_asm_labels)]
| ^^^^^^^^^^^^^^^^
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:164:20
--> $DIR/named-asm-labels.rs:163:20
|
LL | unsafe { asm!(".Lfoo: mov rax, {}; ret;", "nop", const 1, options(noreturn)) }
| ^^^^^
@ -358,7 +358,7 @@ LL | unsafe { asm!(".Lfoo: mov rax, {}; ret;", "nop", const 1, options(noret
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:170:20
--> $DIR/named-asm-labels.rs:169:20
|
LL | unsafe { asm!(".Lbar: mov rax, {}; ret;", "nop", const 1, options(noreturn)) }
| ^^^^^
@ -367,7 +367,7 @@ LL | unsafe { asm!(".Lbar: mov rax, {}; ret;", "nop", const 1, options(noret
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:178:20
--> $DIR/named-asm-labels.rs:177:20
|
LL | unsafe { asm!(".Laaa: nop; ret;", options(noreturn)) }
| ^^^^^
@ -376,7 +376,7 @@ LL | unsafe { asm!(".Laaa: nop; ret;", options(noreturn)) }
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:188:24
--> $DIR/named-asm-labels.rs:187:24
|
LL | unsafe { asm!(".Lbbb: nop; ret;", options(noreturn)) }
| ^^^^^
@ -385,7 +385,7 @@ LL | unsafe { asm!(".Lbbb: nop; ret;", options(noreturn)) }
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:197:15
--> $DIR/named-asm-labels.rs:196:15
|
LL | asm!("closure1: nop");
| ^^^^^^^^
@ -394,7 +394,7 @@ LL | asm!("closure1: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:201:15
--> $DIR/named-asm-labels.rs:200:15
|
LL | asm!("closure2: nop");
| ^^^^^^^^
@ -403,7 +403,7 @@ LL | asm!("closure2: nop");
= note: see the asm section of Rust By Example <https://doc.rust-lang.org/nightly/rust-by-example/unsafe/asm.html#labels> for more information
error: avoid using named labels in inline assembly
--> $DIR/named-asm-labels.rs:211:19
--> $DIR/named-asm-labels.rs:210:19
|
LL | asm!("closure3: nop");
| ^^^^^^^^

View file

@ -1,7 +1,6 @@
//@ needs-asm-support
//@ ignore-nvptx64
//@ ignore-spirv
//@ ignore-wasm32
#![feature(asm_const)]

View file

@ -1,5 +1,5 @@
error[E0435]: attempt to use a non-constant value in a constant
--> $DIR/type-check-1.rs:42:26
--> $DIR/type-check-1.rs:41:26
|
LL | let x = 0;
| ----- help: consider using `const` instead of `let`: `const x`
@ -8,7 +8,7 @@ LL | asm!("{}", const x);
| ^ non-constant value
error[E0435]: attempt to use a non-constant value in a constant
--> $DIR/type-check-1.rs:45:36
--> $DIR/type-check-1.rs:44:36
|
LL | let x = 0;
| ----- help: consider using `const` instead of `let`: `const x`
@ -17,7 +17,7 @@ LL | asm!("{}", const const_foo(x));
| ^ non-constant value
error[E0435]: attempt to use a non-constant value in a constant
--> $DIR/type-check-1.rs:48:36
--> $DIR/type-check-1.rs:47:36
|
LL | let x = 0;
| ----- help: consider using `const` instead of `let`: `const x`
@ -26,7 +26,7 @@ LL | asm!("{}", const const_bar(x));
| ^ non-constant value
error: invalid `sym` operand
--> $DIR/type-check-1.rs:50:24
--> $DIR/type-check-1.rs:49:24
|
LL | asm!("{}", sym x);
| ^ is a local variable
@ -34,19 +34,19 @@ LL | asm!("{}", sym x);
= help: `sym` operands must refer to either a function or a static
error: invalid asm output
--> $DIR/type-check-1.rs:15:29
--> $DIR/type-check-1.rs:14:29
|
LL | asm!("{}", out(reg) 1 + 2);
| ^^^^^ cannot assign to this expression
error: invalid asm output
--> $DIR/type-check-1.rs:17:31
--> $DIR/type-check-1.rs:16:31
|
LL | asm!("{}", inout(reg) 1 + 2);
| ^^^^^ cannot assign to this expression
error[E0277]: the size for values of type `[u64]` cannot be known at compilation time
--> $DIR/type-check-1.rs:23:28
--> $DIR/type-check-1.rs:22:28
|
LL | asm!("{}", in(reg) v[..]);
| ^^^^^ doesn't have a size known at compile-time
@ -55,7 +55,7 @@ LL | asm!("{}", in(reg) v[..]);
= note: all inline asm arguments must have a statically known size
error[E0277]: the size for values of type `[u64]` cannot be known at compilation time
--> $DIR/type-check-1.rs:26:29
--> $DIR/type-check-1.rs:25:29
|
LL | asm!("{}", out(reg) v[..]);
| ^^^^^ doesn't have a size known at compile-time
@ -64,7 +64,7 @@ LL | asm!("{}", out(reg) v[..]);
= note: all inline asm arguments must have a statically known size
error[E0277]: the size for values of type `[u64]` cannot be known at compilation time
--> $DIR/type-check-1.rs:29:31
--> $DIR/type-check-1.rs:28:31
|
LL | asm!("{}", inout(reg) v[..]);
| ^^^^^ doesn't have a size known at compile-time
@ -73,7 +73,7 @@ LL | asm!("{}", inout(reg) v[..]);
= note: all inline asm arguments must have a statically known size
error: cannot use value of type `[u64]` for inline assembly
--> $DIR/type-check-1.rs:23:28
--> $DIR/type-check-1.rs:22:28
|
LL | asm!("{}", in(reg) v[..]);
| ^^^^^
@ -81,7 +81,7 @@ LL | asm!("{}", in(reg) v[..]);
= note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
error: cannot use value of type `[u64]` for inline assembly
--> $DIR/type-check-1.rs:26:29
--> $DIR/type-check-1.rs:25:29
|
LL | asm!("{}", out(reg) v[..]);
| ^^^^^
@ -89,7 +89,7 @@ LL | asm!("{}", out(reg) v[..]);
= note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
error: cannot use value of type `[u64]` for inline assembly
--> $DIR/type-check-1.rs:29:31
--> $DIR/type-check-1.rs:28:31
|
LL | asm!("{}", inout(reg) v[..]);
| ^^^^^
@ -97,13 +97,13 @@ LL | asm!("{}", inout(reg) v[..]);
= note: only integers, floats, SIMD vectors, pointers and function pointers can be used as arguments for inline assembly
error[E0308]: mismatched types
--> $DIR/type-check-1.rs:58:26
--> $DIR/type-check-1.rs:57:26
|
LL | asm!("{}", const 0f32);
| ^^^^ expected integer, found `f32`
error[E0308]: mismatched types
--> $DIR/type-check-1.rs:60:26
--> $DIR/type-check-1.rs:59:26
|
LL | asm!("{}", const 0 as *mut u8);
| ^^^^^^^^^^^^ expected integer, found `*mut u8`
@ -112,7 +112,7 @@ LL | asm!("{}", const 0 as *mut u8);
found raw pointer `*mut u8`
error[E0308]: mismatched types
--> $DIR/type-check-1.rs:62:26
--> $DIR/type-check-1.rs:61:26
|
LL | asm!("{}", const &0);
| ^^ expected integer, found `&{integer}`
@ -124,13 +124,13 @@ LL + asm!("{}", const 0);
|
error[E0308]: mismatched types
--> $DIR/type-check-1.rs:76:25
--> $DIR/type-check-1.rs:75:25
|
LL | global_asm!("{}", const 0f32);
| ^^^^ expected integer, found `f32`
error[E0308]: mismatched types
--> $DIR/type-check-1.rs:78:25
--> $DIR/type-check-1.rs:77:25
|
LL | global_asm!("{}", const 0 as *mut u8);
| ^^^^^^^^^^^^ expected integer, found `*mut u8`

View file

@ -1,7 +1,6 @@
//@ needs-asm-support
//@ ignore-nvptx64
//@ ignore-spirv
//@ ignore-wasm32
use std::arch::asm;

View file

@ -1,5 +1,5 @@
error[E0506]: cannot assign to `a` because it is borrowed
--> $DIR/type-check-4.rs:14:9
--> $DIR/type-check-4.rs:13:9
|
LL | let p = &a;
| -- `a` is borrowed here
@ -10,7 +10,7 @@ LL | println!("{}", p);
| - borrow later used here
error[E0503]: cannot use `a` because it was mutably borrowed
--> $DIR/type-check-4.rs:22:28
--> $DIR/type-check-4.rs:21:28
|
LL | let p = &mut a;
| ------ `a` is borrowed here

View file

@ -5,8 +5,6 @@
//@ error-pattern: thread 'main' panicked
//@ error-pattern: `async fn` resumed after completion
//@ edition:2018
//@ ignore-wasm no panic or subprocess support
//@ ignore-emscripten no panic or subprocess support
#![feature(coroutines, coroutine_trait)]

View file

@ -6,7 +6,6 @@
//@ error-pattern: thread 'main' panicked
//@ error-pattern: `async fn` resumed after panicking
//@ edition:2018
//@ ignore-wasm no panic or subprocess support
#![feature(coroutines, coroutine_trait)]

View file

@ -5,8 +5,6 @@
//@ run-fail
//@ error-pattern:coroutine resumed after completion
//@ edition:2018
//@ ignore-wasm no panic or subprocess support
//@ ignore-emscripten no panic or subprocess support
#![feature(coroutines, coroutine_trait)]

View file

@ -1,6 +1,6 @@
//@ run-pass
//@ ignore-android FIXME #17520
//@ ignore-emscripten spawning processes is not supported
//@ ignore-wasm32 spawning processes is not supported
//@ ignore-openbsd no support for libbacktrace without filename
//@ ignore-sgx no processes
//@ ignore-msvc see #62897 and `backtrace-debuginfo.rs` test

View file

@ -1,6 +1,6 @@
//@ build-pass
//@ pretty-expanded FIXME #23616
//@ ignore-wasm32-bare no bare family
//@ ignore-wasm32 no bare family
//@ ignore-sgx
#[cfg(windows)]

View file

@ -3,7 +3,6 @@
// Static recursion check shouldn't fail when given a foreign item (#18279)
//@ aux-build:check_static_recursion_foreign_helper.rs
//@ ignore-wasm32-bare no libc to test ffi with
//@ pretty-expanded FIXME #23616

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm32 issue 42629
#[inline(never)]
fn foo(a: f32, b: f32) -> f32 {

View file

@ -1,7 +1,7 @@
//@ run-pass
//@ ignore-windows - this is a unix-specific test
//@ ignore-emscripten no processes
//@ ignore-wasm32 no processes
//@ ignore-sgx no processes
use std::env;
use std::os::unix::process::CommandExt;

View file

@ -1,5 +1,5 @@
//@ run-pass
//@ ignore-emscripten no processes
//@ ignore-wasm32 no processes
//@ ignore-sgx no processes
//@ ignore-fuchsia Needs directory creation privilege

View file

@ -2,7 +2,7 @@
#![allow(stable_features)]
//@ ignore-windows - this is a unix-specific test
//@ ignore-emscripten no processes
//@ ignore-wasm32 no processes
//@ ignore-sgx no processes
//@ ignore-fuchsia no execvp syscall provided

View file

@ -2,7 +2,7 @@
#![allow(stable_features)]
//@ ignore-windows - this is a unix-specific test
//@ ignore-emscripten no processes
//@ ignore-wasm32 no processes
//@ ignore-sgx no processes
//@ ignore-fuchsia no execvp syscall
#![feature(process_exec, rustc_private)]

View file

@ -1,6 +1,6 @@
//@ run-pass
//@ ignore-windows - this is a unix-specific test
//@ ignore-emscripten
//@ ignore-wasm32
//@ ignore-sgx
//@ ignore-musl - returns dummy result for _SC_NGROUPS_MAX
//@ ignore-nto - does not have `/bin/id`, expects groups to be i32 (not u32)

View file

@ -1,5 +1,5 @@
//@ run-pass
//@ ignore-emscripten no processes
//@ ignore-wasm32 no processes
//@ ignore-sgx no processes
// Make sure that if a process doesn't have its stdio/stderr descriptors set up

View file

@ -1,4 +1,3 @@
//@ ignore-wasm32-bare which doesn't support `std::process:exit()`
//@ compile-flags: -Zmir-opt-level=3
//@ run-pass

View file

@ -1,5 +1,5 @@
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/trait_specialization.rs:8:12
--> $DIR/trait_specialization.rs:7:12
|
LL | #![feature(specialization)]
| ^^^^^^^^^^^^^^

View file

@ -10,7 +10,6 @@
// See issue #59123 for a full explanation.
//@ edition:2018
//@ ignore-wasm32 issue #62807
//@ needs-unwind Size of Closures change on panic=abort
#![feature(coroutines, coroutine_trait)]

View file

@ -1,4 +1,5 @@
//@ build-fail
//@ ignore-wasi wasi does different things with the `main` symbol
//
//@ error-pattern: entry symbol `main` declared multiple times

View file

@ -1,5 +1,5 @@
error: entry symbol `main` declared multiple times
--> $DIR/dupe-symbols-7.rs:9:1
--> $DIR/dupe-symbols-7.rs:10:1
|
LL | fn main(){}
| ^^^^^^^^^

View file

@ -1,5 +1,6 @@
//@ build-fail
//@ error-pattern: entry symbol `main` declared multiple times
//@ ignore-wasi wasi does different things with the `main` symbol
//
// See #67946.

View file

@ -1,5 +1,5 @@
error: entry symbol `main` declared multiple times
--> $DIR/dupe-symbols-8.rs:7:1
--> $DIR/dupe-symbols-8.rs:8:1
|
LL | fn main() {
| ^^^^^^^^^

View file

@ -1,5 +1,5 @@
//@ run-pass
//@ ignore-emscripten no processes
//@ ignore-wasm32 no processes
//@ ignore-sgx no processes
use std::env::args;

View file

@ -3,7 +3,7 @@
//@ ignore-android
//@ ignore-windows
//@ ignore-emscripten no execve
//@ ignore-wasm32 no execve
//@ ignore-sgx no execve
//@ ignore-vxworks no execve
//@ ignore-fuchsia no 'execve'

View file

@ -3,7 +3,6 @@
#![allow(unused_imports)]
//@ ignore-windows
//@ ignore-wasm32-bare no libc to test ffi with
// issue-53200

View file

@ -1,5 +1,4 @@
//@ run-pass
//@ ignore-wasm32-bare no env vars
use std::env::*;

View file

@ -1,6 +1,6 @@
//@ run-pass
//@ exec-env:TEST_EXEC_ENV=22
//@ ignore-emscripten FIXME: issue #31622
//@ ignore-wasm32 wasm runtimes aren't configured to inherit env vars yet
//@ ignore-sgx unsupported
use std::env;

View file

@ -5,7 +5,6 @@
// compile. To sidestep this by using one that *is* defined.
//@ run-rustfix
//@ ignore-wasm32-bare no external library to link to.
//@ compile-flags: -g
#![feature(rustc_private)]
extern crate libc;

View file

@ -5,7 +5,6 @@
// compile. To sidestep this by using one that *is* defined.
//@ run-rustfix
//@ ignore-wasm32-bare no external library to link to.
//@ compile-flags: -g
#![feature(rustc_private)]
extern crate libc;

View file

@ -1,5 +1,5 @@
error: extern items cannot be `const`
--> $DIR/extern-const.rs:15:11
--> $DIR/extern-const.rs:14:11
|
LL | const rust_dbg_static_mut: libc::c_int;
| ------^^^^^^^^^^^^^^^^^^^

Some files were not shown because too many files have changed in this diff Show more