Ignore more failing ui tests for GCC backend
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![allow(overflowing_literals)]
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![allow(overflowing_literals)]
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![allow(overflowing_literals)]
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// Test that if a slicing expr[..] fails, the correct cleanups happen.
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// Test that if a slicing expr[..] fails, the correct cleanups happen.
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
//@ build-pass
|
||||
//@ needs-asm-support
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::arch::global_asm;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ only-x86_64
|
||||
//@ run-pass
|
||||
//@ needs-asm-support
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![deny(unreachable_code)]
|
||||
#![feature(asm_goto_with_outputs)]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
warning: unreachable statement
|
||||
--> $DIR/goto.rs:143:9
|
||||
--> $DIR/goto.rs:144:9
|
||||
|
|
||||
LL | / asm!(
|
||||
LL | | "jmp {}",
|
||||
@@ -13,7 +13,7 @@ LL | unreachable!();
|
||||
| ^^^^^^^^^^^^^^ unreachable statement
|
||||
|
|
||||
note: the lint level is defined here
|
||||
--> $DIR/goto.rs:133:8
|
||||
--> $DIR/goto.rs:134:8
|
||||
|
|
||||
LL | #[warn(unreachable_code)]
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ only-x86_64
|
||||
//@ build-fail
|
||||
//@ compile-flags: -Ccodegen-units=1
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::arch::asm;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: invalid instruction mnemonic 'invalid_instruction'
|
||||
--> $DIR/srcloc.rs:11:15
|
||||
--> $DIR/srcloc.rs:12:15
|
||||
|
|
||||
LL | asm!("invalid_instruction");
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
@@ -11,7 +11,7 @@ LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction'
|
||||
--> $DIR/srcloc.rs:15:13
|
||||
--> $DIR/srcloc.rs:16:13
|
||||
|
|
||||
LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
@@ -23,7 +23,7 @@ LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction'
|
||||
--> $DIR/srcloc.rs:20:13
|
||||
--> $DIR/srcloc.rs:21:13
|
||||
|
|
||||
LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
@@ -35,7 +35,7 @@ LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction'
|
||||
--> $DIR/srcloc.rs:26:13
|
||||
--> $DIR/srcloc.rs:27:13
|
||||
|
|
||||
LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
@@ -47,7 +47,7 @@ LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction'
|
||||
--> $DIR/srcloc.rs:33:13
|
||||
--> $DIR/srcloc.rs:34:13
|
||||
|
|
||||
LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
@@ -59,7 +59,7 @@ LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction'
|
||||
--> $DIR/srcloc.rs:38:14
|
||||
--> $DIR/srcloc.rs:39:14
|
||||
|
|
||||
LL | asm!(concat!("invalid", "_", "instruction"));
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@@ -71,7 +71,7 @@ LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
warning: scale factor without index register is ignored
|
||||
--> $DIR/srcloc.rs:41:15
|
||||
--> $DIR/srcloc.rs:42:15
|
||||
|
|
||||
LL | asm!("movaps %xmm3, (%esi, 2)", options(att_syntax));
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@@ -83,7 +83,7 @@ LL | movaps %xmm3, (%esi, 2)
|
||||
| ^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction'
|
||||
--> $DIR/srcloc.rs:45:14
|
||||
--> $DIR/srcloc.rs:46:14
|
||||
|
|
||||
LL | "invalid_instruction",
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
@@ -95,7 +95,7 @@ LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction'
|
||||
--> $DIR/srcloc.rs:51:14
|
||||
--> $DIR/srcloc.rs:52:14
|
||||
|
|
||||
LL | "invalid_instruction",
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
@@ -107,7 +107,7 @@ LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction'
|
||||
--> $DIR/srcloc.rs:58:14
|
||||
--> $DIR/srcloc.rs:59:14
|
||||
|
|
||||
LL | "invalid_instruction",
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
@@ -119,7 +119,7 @@ LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction'
|
||||
--> $DIR/srcloc.rs:65:13
|
||||
--> $DIR/srcloc.rs:66:13
|
||||
|
|
||||
LL | concat!("invalid", "_", "instruction"),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@@ -131,7 +131,7 @@ LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction'
|
||||
--> $DIR/srcloc.rs:72:13
|
||||
--> $DIR/srcloc.rs:73:13
|
||||
|
|
||||
LL | concat!("invalid", "_", "instruction"),
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
@@ -143,7 +143,7 @@ LL | invalid_instruction
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction1'
|
||||
--> $DIR/srcloc.rs:79:14
|
||||
--> $DIR/srcloc.rs:80:14
|
||||
|
|
||||
LL | "invalid_instruction1",
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
@@ -155,7 +155,7 @@ LL | invalid_instruction1
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction2'
|
||||
--> $DIR/srcloc.rs:80:14
|
||||
--> $DIR/srcloc.rs:81:14
|
||||
|
|
||||
LL | "invalid_instruction2",
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
@@ -167,7 +167,7 @@ LL | invalid_instruction2
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction1'
|
||||
--> $DIR/srcloc.rs:86:13
|
||||
--> $DIR/srcloc.rs:87:13
|
||||
|
|
||||
LL | / concat!(
|
||||
LL | | "invalid", "_", "instruction1", "\n",
|
||||
@@ -182,7 +182,7 @@ LL | invalid_instruction1
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction2'
|
||||
--> $DIR/srcloc.rs:86:13
|
||||
--> $DIR/srcloc.rs:87:13
|
||||
|
|
||||
LL | / concat!(
|
||||
LL | | "invalid", "_", "instruction1", "\n",
|
||||
@@ -197,7 +197,7 @@ LL | invalid_instruction2
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction1'
|
||||
--> $DIR/srcloc.rs:95:13
|
||||
--> $DIR/srcloc.rs:96:13
|
||||
|
|
||||
LL | / concat!(
|
||||
LL | | "invalid", "_", "instruction1", "\n",
|
||||
@@ -212,7 +212,7 @@ LL | invalid_instruction1
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction2'
|
||||
--> $DIR/srcloc.rs:95:13
|
||||
--> $DIR/srcloc.rs:96:13
|
||||
|
|
||||
LL | / concat!(
|
||||
LL | | "invalid", "_", "instruction1", "\n",
|
||||
@@ -227,7 +227,7 @@ LL | invalid_instruction2
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction3'
|
||||
--> $DIR/srcloc.rs:99:13
|
||||
--> $DIR/srcloc.rs:100:13
|
||||
|
|
||||
LL | / concat!(
|
||||
LL | | "invalid", "_", "instruction3", "\n",
|
||||
@@ -242,7 +242,7 @@ LL | invalid_instruction3
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction4'
|
||||
--> $DIR/srcloc.rs:99:13
|
||||
--> $DIR/srcloc.rs:100:13
|
||||
|
|
||||
LL | / concat!(
|
||||
LL | | "invalid", "_", "instruction3", "\n",
|
||||
@@ -257,7 +257,7 @@ LL | invalid_instruction4
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction1'
|
||||
--> $DIR/srcloc.rs:110:13
|
||||
--> $DIR/srcloc.rs:111:13
|
||||
|
|
||||
LL | / concat!(
|
||||
LL | | "invalid", "_", "instruction1", "\n",
|
||||
@@ -272,7 +272,7 @@ LL | invalid_instruction1
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction2'
|
||||
--> $DIR/srcloc.rs:110:13
|
||||
--> $DIR/srcloc.rs:111:13
|
||||
|
|
||||
LL | / concat!(
|
||||
LL | | "invalid", "_", "instruction1", "\n",
|
||||
@@ -287,7 +287,7 @@ LL | invalid_instruction2
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction3'
|
||||
--> $DIR/srcloc.rs:114:13
|
||||
--> $DIR/srcloc.rs:115:13
|
||||
|
|
||||
LL | / concat!(
|
||||
LL | | "invalid", "_", "instruction3", "\n",
|
||||
@@ -302,7 +302,7 @@ LL | invalid_instruction3
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction4'
|
||||
--> $DIR/srcloc.rs:114:13
|
||||
--> $DIR/srcloc.rs:115:13
|
||||
|
|
||||
LL | / concat!(
|
||||
LL | | "invalid", "_", "instruction3", "\n",
|
||||
@@ -317,7 +317,7 @@ LL | invalid_instruction4
|
||||
| ^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
error: invalid instruction mnemonic 'invalid_instruction'
|
||||
--> $DIR/srcloc.rs:127:14
|
||||
--> $DIR/srcloc.rs:128:14
|
||||
|
|
||||
LL | "invalid_instruction"
|
||||
| ^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ run-pass
|
||||
//@ ignore-wasm32 aligning functions is not currently supported on wasm (#143368)
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// FIXME(#82232, #143834): temporarily renamed to mitigate `#[align]` nameres ambiguity
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//@ proc-macro: tokyo.rs
|
||||
//@ compile-flags:--extern tokyo
|
||||
//@ edition:2021
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use tokyo::main;
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
//@ exec-env:RUST_BACKTRACE=0
|
||||
//@ needs-threads
|
||||
//@ needs-unwind
|
||||
//@ ignore-backends: gcc
|
||||
use std::thread;
|
||||
const PANIC_MESSAGE: &str = "oops oh no woe is me";
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
thread '<unnamed>' ($TID) panicked at $DIR/synchronized-panic-handler.rs:11:5:
|
||||
thread '<unnamed>' ($TID) panicked at $DIR/synchronized-panic-handler.rs:12:5:
|
||||
oops oh no woe is me
|
||||
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
||||
|
||||
thread '<unnamed>' ($TID) panicked at $DIR/synchronized-panic-handler.rs:11:5:
|
||||
thread '<unnamed>' ($TID) panicked at $DIR/synchronized-panic-handler.rs:12:5:
|
||||
oops oh no woe is me
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::thread;
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//@ run-pass
|
||||
//@ ignore-backends: gcc
|
||||
#![feature(c_variadic)]
|
||||
|
||||
#[repr(transparent)]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//@ run-pass
|
||||
//@ ignore-backends: gcc
|
||||
#![feature(c_variadic)]
|
||||
|
||||
#[repr(transparent)]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//@ run-pass
|
||||
//@ ignore-backends: gcc
|
||||
#![feature(c_variadic)]
|
||||
|
||||
// In rust (and C23 and above) `...` can be the only argument.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//@ proc-macro: ver-cfg-rel.rs
|
||||
//@ revisions: assume no_assume
|
||||
//@ [assume]compile-flags: -Z assume-incomplete-release
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![feature(cfg_version)]
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ run-pass
|
||||
//@ compile-flags: -Ccodegen-units=1 -Cllvm-args=--inline-threshold=0 -Clink-dead-code -Copt-level=0 -Cdebuginfo=2
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// Make sure LLVM does not miscompile this.
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ compile-flags: -Cllvm-args=-not-a-real-llvm-arg
|
||||
//@ normalize-stderr: "--help" -> "-help"
|
||||
//@ normalize-stderr: "\n(\n|.)*" -> ""
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// I'm seeing "--help" locally, but "-help" in CI, so I'm normalizing it to just "-help".
|
||||
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
//@ dont-check-compiler-stderr
|
||||
//@ dont-require-annotations: NOTE
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#[no_mangle]
|
||||
#[inline(never)]
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//@ compile-flags: -Zvirtual-function-elimination=true -Clto=true
|
||||
//@ only-x86_64
|
||||
//@ no-prefer-dynamic
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// issue #123955
|
||||
pub fn test0() {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ edition: 2024
|
||||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
//@ ignore-backends: gcc
|
||||
#![feature(gen_blocks)]
|
||||
|
||||
fn main() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
warning: unreachable statement
|
||||
--> $DIR/gen_block_panic.rs:10:9
|
||||
--> $DIR/gen_block_panic.rs:11:9
|
||||
|
|
||||
LL | panic!("foo");
|
||||
| ------------- any code following this expression is unreachable
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//@ aux-crate:fn_header_aux=fn-header-aux.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![feature(c_variadic)]
|
||||
#![feature(fn_delegation)]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: delegation to C-variadic functions is not allowed
|
||||
--> $DIR/fn-header-variadic.rs:11:17
|
||||
--> $DIR/fn-header-variadic.rs:12:17
|
||||
|
|
||||
LL | pub unsafe extern "C" fn variadic_fn(n: usize, mut args: ...) {}
|
||||
| ------------------------------------------------------------- callee defined here
|
||||
@@ -8,7 +8,7 @@ LL | reuse to_reuse::variadic_fn;
|
||||
| ^^^^^^^^^^^
|
||||
|
||||
error: delegation to C-variadic functions is not allowed
|
||||
--> $DIR/fn-header-variadic.rs:13:22
|
||||
--> $DIR/fn-header-variadic.rs:14:22
|
||||
|
|
||||
LL | reuse fn_header_aux::variadic_fn_extern;
|
||||
| ^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#![allow(unused_variables)]
|
||||
//@ needs-threads
|
||||
//@ needs-unwind
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::thread;
|
||||
use std::sync::mpsc::{channel, Sender};
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// Issue #787
|
||||
// Don't try to clean up uninitialized locals
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ run-pass
|
||||
//@ ignore-pass
|
||||
//@ ignore-backends: gcc
|
||||
#![expect(incomplete_features)]
|
||||
#![feature(explicit_tail_calls)]
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
warning: tail calling a function marked with `#[track_caller]` has no special effect
|
||||
--> $DIR/callee_is_track_caller.rs:7:12
|
||||
--> $DIR/callee_is_track_caller.rs:8:12
|
||||
|
|
||||
LL | become b(x);
|
||||
| ^^^^
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ run-pass
|
||||
//@ ignore-pass
|
||||
//@ ignore-backends: gcc
|
||||
#![expect(incomplete_features)]
|
||||
#![feature(explicit_tail_calls)]
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
warning: tail calling a function marked with `#[track_caller]` has no special effect
|
||||
--> $DIR/callee_is_track_caller_polymorphic.rs:7:12
|
||||
--> $DIR/callee_is_track_caller_polymorphic.rs:8:12
|
||||
|
|
||||
LL | become T::f();
|
||||
| ^^^^^^
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//@ run-pass
|
||||
//@ ignore-backends: gcc
|
||||
#![expect(incomplete_features)]
|
||||
#![feature(explicit_tail_calls)]
|
||||
use std::cell::RefCell;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//@ run-pass
|
||||
//@ ignore-backends: gcc
|
||||
// Indexing taken from
|
||||
// https://github.com/phi-go/rfcs/blob/guaranteed-tco/text%2F0000-explicit-tail-calls.md#tail-call-elimination
|
||||
// no other test has utilized the "function table"
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//@ run-pass
|
||||
//@ ignore-backends: gcc
|
||||
#![expect(incomplete_features)]
|
||||
#![feature(explicit_tail_calls)]
|
||||
|
||||
|
||||
1
tests/ui/extern/extern-types-field-offset.rs
vendored
1
tests/ui/extern/extern-types-field-offset.rs
vendored
@@ -2,6 +2,7 @@
|
||||
//@ check-run-results
|
||||
//@ exec-env:RUST_BACKTRACE=0
|
||||
//@ normalize-stderr: "(core/src/panicking\.rs):[0-9]+:[0-9]+" -> "$1:$$LINE:$$COL"
|
||||
//@ ignore-backends: gcc
|
||||
#![feature(extern_types)]
|
||||
|
||||
extern "C" {
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
//@[no]compile-flags: -C lto=no
|
||||
//@[thin]compile-flags: -C lto=thin
|
||||
//@[fat]compile-flags: -C lto=fat
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![feature(panic_internals)]
|
||||
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
//@[fat1]compile-flags: -C opt-level=1 -C lto=fat
|
||||
//@[fat2]compile-flags: -C opt-level=2 -C lto=fat
|
||||
//@[fat3]compile-flags: -C opt-level=3 -C lto=fat
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
fn main() {
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//@ proc-macro: format-string-proc-macro.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
extern crate format_string_proc_macro;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: there is no argument named `x`
|
||||
--> $DIR/format-args-capture-from-pm-first-arg-macro.rs:6:5
|
||||
--> $DIR/format-args-capture-from-pm-first-arg-macro.rs:7:5
|
||||
|
|
||||
LL | format_string_proc_macro::bad_format_args_captures!();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ check-pass
|
||||
//@ proc-macro: makro.rs
|
||||
//@ edition: 2021
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// Check that a proc-macro doesn't try to parse frontmatter and instead treats
|
||||
// it as a regular Rust token sequence. See `auxiliary/makro.rs` for details.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ build-pass
|
||||
//@ aux-build:def-site-async-await.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// Regression test for issue #77523
|
||||
// Tests that we don't ICE when an unusual combination
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
//@ aux-crate: no_use_macro=no-use-macro.rs
|
||||
//@ edition: 2024
|
||||
//@ check-pass
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
no_use_pm::pm_rpit!{}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ build-fail
|
||||
//@ compile-flags: -Cpasses=unknown-pass
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
fn main() {}
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::thread;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// Check that the destructors of simple enums are run on unwinding
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//@ aux-build:issue-29485.rs
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#[feature(recover)]
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
struct Foo;
|
||||
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
//@ only-x86_64
|
||||
//@ no-prefer-dynamic
|
||||
//@ compile-flags: -Ctarget-feature=+avx -Clto
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
fn main() {}
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// entering the catch_unwind.
|
||||
//
|
||||
//@ run-pass
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::panic::catch_unwind;
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//@ known-bug: #109681
|
||||
//@ ignore-wasm32 this appears to SIGABRT on wasm, not fail cleanly
|
||||
//@ compile-flags: -Z verify-llvm-ir
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// This test verifies that we continue to hit the LLVM error for common linkage with non-zero
|
||||
// initializers, since it generates invalid LLVM IR.
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//@ run-pass
|
||||
//@ compile-flags: -Cpanic=abort
|
||||
//@ edition: 2024
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![allow(incomplete_features)]
|
||||
#![feature(raw_dylib_elf)]
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
//
|
||||
//@ build-pass
|
||||
//@ only-x86_64-unknown-linux-gnu
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
unsafe extern "Rust" {
|
||||
// The __start_ section name is magical for the linker,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ run-pass
|
||||
//@ proc-macro: add-impl.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![forbid(unused_qualifications)]
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
//@ compile-flags: --test -C debuginfo=2 -C lto=fat
|
||||
//@ no-prefer-dynamic
|
||||
//@ incremental
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//@ aux-build:debuginfo-lto-aux.rs
|
||||
//@ compile-flags: -C lto -g
|
||||
//@ no-prefer-dynamic
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
extern crate debuginfo_lto_aux;
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
//@ compile-flags: -C lto -g -Cdwarf-version=5
|
||||
//@ no-prefer-dynamic
|
||||
//@ build-pass
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
extern crate dwarf_mixed_versions_lto_aux;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ compile-flags: -Clto=fat
|
||||
//@ no-prefer-dynamic
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
fn main() {
|
||||
println!("hello!");
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//@ compile-flags: -Ccodegen-units=1 -Clto -Ctarget-feature=-crt-static -Zsanitizer=cfi -C unsafe-allow-abi-mismatch=sanitizer
|
||||
//@ no-prefer-dynamic
|
||||
//@ only-x86_64-unknown-linux-gnu
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![feature(allocator_api)]
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
//@ compile-flags: -C lto
|
||||
//@ no-prefer-dynamic
|
||||
//@ normalize-stderr: "lto-duplicate-symbols2\.lto_duplicate_symbols2\.[0-9a-zA-Z]+-cgu" -> "lto-duplicate-symbols2.lto_duplicate_symbols2.HASH-cgu"
|
||||
//@ ignore-backends: gcc
|
||||
extern crate lto_duplicate_symbols1;
|
||||
extern crate lto_duplicate_symbols2;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ compile-flags: -C lto -C codegen-units=8
|
||||
//@ no-prefer-dynamic
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//@ aux-build:lto-rustc-loads-linker-plugin.rs
|
||||
//@ run-pass
|
||||
//@ no-prefer-dynamic
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// This test ensures that if a dependency was compiled with
|
||||
// `-Clinker-plugin-lto` then we can compile with `-Clto` and still link against
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//@ compile-flags: -C lto
|
||||
//@ no-prefer-dynamic
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// FIXME(static_mut_refs): this could use an atomic
|
||||
#![allow(static_mut_refs)]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//@ proc-macro: proc_macro_sequence.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// Regression test for issue #62831: Check that multiple sequences with the same span in the
|
||||
// left-hand side of a macro definition behave as if they had unique spans, and in particular that
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: `$x:expr` may be followed by `$y:tt`, which is not allowed for `expr` fragments
|
||||
--> $DIR/same-sequence-span.rs:14:18
|
||||
--> $DIR/same-sequence-span.rs:15:18
|
||||
|
|
||||
LL | (1 $x:expr $($y:tt,)*
|
||||
| ^^^^^ not allowed after `expr` fragments
|
||||
@@ -7,7 +7,7 @@ LL | (1 $x:expr $($y:tt,)*
|
||||
= note: allowed there are: `=>`, `,` or `;`
|
||||
|
||||
error: `$x:expr` may be followed by `=`, which is not allowed for `expr` fragments
|
||||
--> $DIR/same-sequence-span.rs:15:18
|
||||
--> $DIR/same-sequence-span.rs:16:18
|
||||
|
|
||||
LL | $(= $z:tt)*
|
||||
| ^ not allowed after `expr` fragments
|
||||
@@ -15,10 +15,10 @@ LL | $(= $z:tt)*
|
||||
= note: allowed there are: `=>`, `,` or `;`
|
||||
|
||||
error: `$x:expr` may be followed by `$y:tt`, which is not allowed for `expr` fragments
|
||||
--> $DIR/same-sequence-span.rs:19:1
|
||||
--> $DIR/same-sequence-span.rs:20:1
|
||||
|
|
||||
LL | | macro_rules! manual_foo {
|
||||
| |__________________________^not allowed after `expr` fragments
|
||||
LL | | // `proc_macro_sequence.rs`.
|
||||
| |_____________________________^not allowed after `expr` fragments
|
||||
...
|
||||
LL | proc_macro_sequence::make_foo!();
|
||||
| ^-------------------------------
|
||||
@@ -30,7 +30,7 @@ LL | proc_macro_sequence::make_foo!();
|
||||
= note: this error originates in the macro `proc_macro_sequence::make_foo` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: `$x:expr` may be followed by `=`, which is not allowed for `expr` fragments
|
||||
--> $DIR/same-sequence-span.rs:19:1
|
||||
--> $DIR/same-sequence-span.rs:20:1
|
||||
|
|
||||
LL | proc_macro_sequence::make_foo!();
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not allowed after `expr` fragments
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
//@ compile-flags: -C overflow-checks=on
|
||||
//@ needs-threads
|
||||
//@ needs-unwind
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::thread;
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#![allow(unused_must_use)]
|
||||
//@ needs-threads
|
||||
//@ needs-unwind
|
||||
//@ ignore-backends: gcc
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
use std::thread;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//@ needs-unwind
|
||||
//@ no-prefer-dynamic
|
||||
//@ needs-subprocess
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::process::Command;
|
||||
use std::env;
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
//@ no-prefer-dynamic
|
||||
//@ needs-unwind
|
||||
//@ only-linux
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::hint::black_box;
|
||||
use std::mem::forget;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#![allow(stable_features)]
|
||||
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![feature(std_panic)]
|
||||
#![feature(panic_update_hook)]
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
#![allow(stable_features)]
|
||||
|
||||
#![feature(std_panic)]
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#![allow(unused_must_use)]
|
||||
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![feature(std_panic)]
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#![feature(std_panic)]
|
||||
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
use std::panic;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#![allow(non_upper_case_globals)]
|
||||
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::thread;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ run-pass
|
||||
//@ needs-unwind
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
use std::panic;
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
// scenario worth testing.
|
||||
|
||||
//@ needs-threads
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::thread;
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
//@ needs-unwind
|
||||
//@ ignore-windows target requires uwtable
|
||||
//@ compile-flags: -C panic=unwind -C force-unwind-tables=n
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
use std::panic::{self, AssertUnwindSafe};
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//@ proc-macro: issue-89971-outer-attr-following-inner-attr-ice.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#[macro_use]
|
||||
extern crate issue_89971_outer_attr_following_inner_attr_ice;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: an inner attribute is not permitted in this context
|
||||
--> $DIR/issue-89971-outer-attr-following-inner-attr-ice.rs:11:1
|
||||
--> $DIR/issue-89971-outer-attr-following-inner-attr-ice.rs:12:1
|
||||
|
|
||||
LL | #![deny(missing_docs)]
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// Regression test for #140281
|
||||
//@ edition: 2021
|
||||
//@ proc-macro: unicode-control.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
extern crate unicode_control;
|
||||
use unicode_control::*;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: unicode codepoint changing visible direction of text present in doc comment
|
||||
--> $DIR/unicode-control-codepoints-macros.rs:20:9
|
||||
--> $DIR/unicode-control-codepoints-macros.rs:21:9
|
||||
|
|
||||
LL | /// <20>test<73> RTL in doc in vec
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this doc comment contains invisible unicode text flow control codepoints
|
||||
@@ -10,7 +10,7 @@ LL | /// <20>test<73> RTL in doc in vec
|
||||
= note: `#[deny(text_direction_codepoint_in_literal)]` on by default
|
||||
|
||||
error: unicode codepoint changing visible direction of text present in doc comment
|
||||
--> $DIR/unicode-control-codepoints-macros.rs:25:9
|
||||
--> $DIR/unicode-control-codepoints-macros.rs:26:9
|
||||
|
|
||||
LL | / /**
|
||||
LL | | * <20>test<73> RTL in doc in macro
|
||||
@@ -22,7 +22,7 @@ LL | | */
|
||||
= note: if you want to keep them but make them visible in your source code, you can escape them: '\u{202e}', '\u{2066}'
|
||||
|
||||
error: unicode codepoint changing visible direction of text present in doc comment
|
||||
--> $DIR/unicode-control-codepoints-macros.rs:32:9
|
||||
--> $DIR/unicode-control-codepoints-macros.rs:33:9
|
||||
|
|
||||
LL | / /**
|
||||
LL | | * <20>test<73> RTL in doc in macro
|
||||
@@ -34,7 +34,7 @@ LL | | */
|
||||
= note: if you want to keep them but make them visible in your source code, you can escape them: '\u{202e}', '\u{2066}'
|
||||
|
||||
error: unicode codepoint changing visible direction of text present in doc comment
|
||||
--> $DIR/unicode-control-codepoints-macros.rs:40:9
|
||||
--> $DIR/unicode-control-codepoints-macros.rs:41:9
|
||||
|
|
||||
LL | /// <20>test<73> RTL in doc in proc macro
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this doc comment contains invisible unicode text flow control codepoints
|
||||
@@ -44,7 +44,7 @@ LL | /// <20>test<73> RTL in doc in proc macro
|
||||
= note: if you want to keep them but make them visible in your source code, you can escape them: '\u{202e}', '\u{2066}'
|
||||
|
||||
error: unicode codepoint changing visible direction of text present in doc comment
|
||||
--> $DIR/unicode-control-codepoints-macros.rs:45:9
|
||||
--> $DIR/unicode-control-codepoints-macros.rs:46:9
|
||||
|
|
||||
LL | /// <20>test<73> RTL in doc in proc macro
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this doc comment contains invisible unicode text flow control codepoints
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
//! Like `tuple-index-suffix.rs`, but exercises the proc-macro interaction.
|
||||
|
||||
//@ proc-macro: tuple-index-suffix-proc-macro-aux.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
extern crate tuple_index_suffix_proc_macro_aux;
|
||||
use tuple_index_suffix_proc_macro_aux as aux;
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
error: suffixes on a tuple index are invalid
|
||||
--> $DIR/tuple-index-suffix-proc-macro.rs:17:28
|
||||
--> $DIR/tuple-index-suffix-proc-macro.rs:18:28
|
||||
|
|
||||
LL | aux::bad_tup_indexing!(0usize);
|
||||
| ^^^^^^ invalid suffix `usize`
|
||||
|
||||
error: suffixes on a tuple index are invalid
|
||||
--> $DIR/tuple-index-suffix-proc-macro.rs:19:47
|
||||
--> $DIR/tuple-index-suffix-proc-macro.rs:20:47
|
||||
|
|
||||
LL | aux::bad_tup_struct_indexing!(tup_struct, 0isize);
|
||||
| ^^^^^^ invalid suffix `isize`
|
||||
|
||||
error: suffixes on a tuple index are invalid
|
||||
--> $DIR/tuple-index-suffix-proc-macro.rs:24:28
|
||||
--> $DIR/tuple-index-suffix-proc-macro.rs:25:28
|
||||
|
|
||||
LL | aux::bad_tup_indexing!(0u8);
|
||||
| ^^^ invalid suffix `u8`
|
||||
|
||||
error: suffixes on a tuple index are invalid
|
||||
--> $DIR/tuple-index-suffix-proc-macro.rs:26:47
|
||||
--> $DIR/tuple-index-suffix-proc-macro.rs:27:47
|
||||
|
|
||||
LL | aux::bad_tup_struct_indexing!(tup_struct, 0u64);
|
||||
| ^^^^ invalid suffix `u64`
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ run-pass
|
||||
//@ proc-macro: add-impl.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#[macro_use]
|
||||
extern crate add_impl;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ proc-macro: builtin-attrs.rs
|
||||
//@ compile-flags:--test
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![feature(decl_macro, test)]
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error[E0425]: cannot find value `NonExistent` in this scope
|
||||
--> $DIR/ambiguous-builtin-attrs-test.rs:19:5
|
||||
--> $DIR/ambiguous-builtin-attrs-test.rs:20:5
|
||||
|
|
||||
LL | NonExistent;
|
||||
| ^^^^^^^^^^^ not found in this scope
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ edition:2018
|
||||
//@ proc-macro: builtin-attrs.rs
|
||||
//@ ignore-backends: gcc
|
||||
#![feature(decl_macro)] //~ ERROR `feature` is ambiguous
|
||||
|
||||
extern crate builtin_attrs;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
error[E0425]: cannot find value `NonExistent` in this scope
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:34:5
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:35:5
|
||||
|
|
||||
LL | NonExistent;
|
||||
| ^^^^^^^^^^^ not found in this scope
|
||||
|
||||
error[E0659]: `repr` is ambiguous
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:9:3
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:10:3
|
||||
|
|
||||
LL | #[repr(C)]
|
||||
| ^^^^ ambiguous name
|
||||
@@ -13,14 +13,14 @@ LL | #[repr(C)]
|
||||
= note: ambiguous because of a name conflict with a builtin attribute
|
||||
= note: `repr` could refer to a built-in attribute
|
||||
note: `repr` could also refer to the attribute macro imported here
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:6:5
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:7:5
|
||||
|
|
||||
LL | use builtin_attrs::*;
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
= help: use `crate::repr` to refer to this attribute macro unambiguously
|
||||
|
||||
error[E0659]: `repr` is ambiguous
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:11:19
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:12:19
|
||||
|
|
||||
LL | #[cfg_attr(all(), repr(C))]
|
||||
| ^^^^ ambiguous name
|
||||
@@ -28,14 +28,14 @@ LL | #[cfg_attr(all(), repr(C))]
|
||||
= note: ambiguous because of a name conflict with a builtin attribute
|
||||
= note: `repr` could refer to a built-in attribute
|
||||
note: `repr` could also refer to the attribute macro imported here
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:6:5
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:7:5
|
||||
|
|
||||
LL | use builtin_attrs::*;
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
= help: use `crate::repr` to refer to this attribute macro unambiguously
|
||||
|
||||
error[E0659]: `repr` is ambiguous
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:20:34
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:21:34
|
||||
|
|
||||
LL | fn non_macro_expanded_location<#[repr(C)] T>() {
|
||||
| ^^^^ ambiguous name
|
||||
@@ -43,14 +43,14 @@ LL | fn non_macro_expanded_location<#[repr(C)] T>() {
|
||||
= note: ambiguous because of a name conflict with a builtin attribute
|
||||
= note: `repr` could refer to a built-in attribute
|
||||
note: `repr` could also refer to the attribute macro imported here
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:6:5
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:7:5
|
||||
|
|
||||
LL | use builtin_attrs::*;
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
= help: use `crate::repr` to refer to this attribute macro unambiguously
|
||||
|
||||
error[E0659]: `repr` is ambiguous
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:24:11
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:25:11
|
||||
|
|
||||
LL | #[repr(C)]
|
||||
| ^^^^ ambiguous name
|
||||
@@ -58,14 +58,14 @@ LL | #[repr(C)]
|
||||
= note: ambiguous because of a name conflict with a builtin attribute
|
||||
= note: `repr` could refer to a built-in attribute
|
||||
note: `repr` could also refer to the attribute macro imported here
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:6:5
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:7:5
|
||||
|
|
||||
LL | use builtin_attrs::*;
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
= help: use `crate::repr` to refer to this attribute macro unambiguously
|
||||
|
||||
error[E0659]: `allow` is ambiguous
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:38:3
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:39:3
|
||||
|
|
||||
LL | #[allow(unused)]
|
||||
| ^^^^^ ambiguous name
|
||||
@@ -73,14 +73,14 @@ LL | #[allow(unused)]
|
||||
= note: ambiguous because of a name conflict with a builtin attribute
|
||||
= note: `allow` could refer to a built-in attribute
|
||||
note: `allow` could also refer to the built-in attribute imported here
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:37:5
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:38:5
|
||||
|
|
||||
LL | use deny as allow;
|
||||
| ^^^^^^^^^^^^^
|
||||
= help: use `crate::allow` to refer to this built-in attribute unambiguously
|
||||
|
||||
error[E0659]: `feature` is ambiguous
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:3:4
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:4:4
|
||||
|
|
||||
LL | #![feature(decl_macro)]
|
||||
| ^^^^^^^ ambiguous name
|
||||
@@ -88,20 +88,20 @@ LL | #![feature(decl_macro)]
|
||||
= note: ambiguous because of a name conflict with a builtin attribute
|
||||
= note: `feature` could refer to a built-in attribute
|
||||
note: `feature` could also refer to the attribute macro imported here
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:6:5
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:7:5
|
||||
|
|
||||
LL | use builtin_attrs::*;
|
||||
| ^^^^^^^^^^^^^^^^
|
||||
= help: use `crate::feature` to refer to this attribute macro unambiguously
|
||||
|
||||
error[E0517]: attribute should be applied to a struct, enum, or union
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:20:39
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:21:39
|
||||
|
|
||||
LL | fn non_macro_expanded_location<#[repr(C)] T>() {
|
||||
| ^ - not a struct, enum, or union
|
||||
|
||||
error[E0517]: attribute should be applied to a struct, enum, or union
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:24:16
|
||||
--> $DIR/ambiguous-builtin-attrs.rs:25:16
|
||||
|
|
||||
LL | #[repr(C)]
|
||||
| ^
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ run-pass
|
||||
//@ proc-macro: append-impl.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![allow(warnings)]
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ run-pass
|
||||
//@ proc-macro: attr-args.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![allow(warnings)]
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//! Attributes producing expressions in invalid locations
|
||||
|
||||
//@ proc-macro: attr-stmt-expr.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#![feature(proc_macro_hygiene)]
|
||||
#![feature(stmt_expr_attributes)]
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
error: expected expression, found end of macro arguments
|
||||
--> $DIR/attr-invalid-exprs.rs:12:13
|
||||
--> $DIR/attr-invalid-exprs.rs:13:13
|
||||
|
|
||||
LL | let _ = #[no_output] "Hello, world!";
|
||||
| ^^^^^^^^^^^^
|
||||
|
||||
error: macro expansion ignores `,` and any tokens following
|
||||
--> $DIR/attr-invalid-exprs.rs:15:13
|
||||
--> $DIR/attr-invalid-exprs.rs:16:13
|
||||
|
|
||||
LL | let _ = #[duplicate] "Hello, world!";
|
||||
| ^^^^^^^^^^^^ caused by the macro expansion here
|
||||
@@ -17,7 +17,7 @@ LL | let _ = #[duplicate]; "Hello, world!";
|
||||
| +
|
||||
|
||||
error: macro expansion ignores `,` and any tokens following
|
||||
--> $DIR/attr-invalid-exprs.rs:24:9
|
||||
--> $DIR/attr-invalid-exprs.rs:25:9
|
||||
|
|
||||
LL | #[duplicate]
|
||||
| ^^^^^^^^^^^^ caused by the macro expansion here
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ run-pass
|
||||
//@ proc-macro: attr-on-trait.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
extern crate attr_on_trait;
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ run-pass
|
||||
//@ proc-macro: bang-macro.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
extern crate bang_macro;
|
||||
use bang_macro::rewrite;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ check-pass
|
||||
//@ proc-macro: call-site.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
extern crate call_site;
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
//@ run-pass
|
||||
//@ proc-macro: count_compound_ops.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
extern crate count_compound_ops;
|
||||
use count_compound_ops::count_compound_ops;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
//@ proc-macro: derive-bad.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#[macro_use]
|
||||
extern crate derive_bad;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
error: expected `:`, found `}`
|
||||
--> $DIR/derive-bad.rs:6:10
|
||||
--> $DIR/derive-bad.rs:7:10
|
||||
|
|
||||
LL | #[derive(A)]
|
||||
| ^
|
||||
@@ -10,13 +10,13 @@ LL | #[derive(A)]
|
||||
= note: this error originates in the derive macro `A` (in Nightly builds, run with -Z macro-backtrace for more info)
|
||||
|
||||
error: proc-macro derive produced unparsable tokens
|
||||
--> $DIR/derive-bad.rs:6:10
|
||||
--> $DIR/derive-bad.rs:7:10
|
||||
|
|
||||
LL | #[derive(A)]
|
||||
| ^
|
||||
|
||||
error[E0428]: the name `A` is defined multiple times
|
||||
--> $DIR/derive-bad.rs:9:1
|
||||
--> $DIR/derive-bad.rs:10:1
|
||||
|
|
||||
LL | #[derive(A)]
|
||||
| - previous definition of the type `A` here
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//@ edition:2018
|
||||
//@ proc-macro: test-macros.rs
|
||||
//@ proc-macro: derive-helper-shadowing.rs
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
#[macro_use]
|
||||
extern crate test_macros;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user