Add needs-unwind for proc macro tests
Rustc gives a warning when compiling proc macros with panic=abort.
This commit is contained in:
parent
3733dcc72d
commit
5f5dcaefe6
@ -41,15 +41,6 @@ rm tests/ui/parser/unclosed-delimiter-in-dep.rs # submodule contains //~ERROR
|
||||
# missing features
|
||||
# ================
|
||||
|
||||
# extra warning about -Cpanic=abort for proc macros
|
||||
rm tests/ui/proc-macro/crt-static.rs
|
||||
rm tests/ui/proc-macro/proc-macro-deprecated-attr.rs
|
||||
rm tests/ui/proc-macro/quote-debug.rs
|
||||
rm tests/ui/proc-macro/no-missing-docs.rs
|
||||
rm tests/ui/rust-2018/proc-macro-crate-in-paths.rs
|
||||
rm tests/ui/proc-macro/allowed-signatures.rs
|
||||
rm tests/ui/proc-macro/no-mangle-in-proc-macro-issue-111888.rs
|
||||
|
||||
# vendor intrinsics
|
||||
rm tests/ui/simd/array-type.rs # "Index argument for `simd_insert` is not a constant"
|
||||
rm tests/ui/asm/x86_64/evex512-implicit-feature.rs # unimplemented AVX512 x86 vendor intrinsic
|
||||
|
@ -1,6 +1,7 @@
|
||||
//@ check-pass
|
||||
//@ force-host
|
||||
//@ no-prefer-dynamic
|
||||
//@ needs-unwind compiling proc macros with panic=abort causes a warning
|
||||
|
||||
#![crate_type = "proc-macro"]
|
||||
#![allow(private_interfaces)]
|
||||
@ -9,7 +10,7 @@
|
||||
|
||||
#[proc_macro]
|
||||
pub fn foo<T>(t: T) -> TokenStream {
|
||||
TokenStream::new()
|
||||
TokenStream::new()
|
||||
}
|
||||
|
||||
trait Project {
|
||||
|
@ -7,6 +7,7 @@
|
||||
//@ force-host
|
||||
//@ no-prefer-dynamic
|
||||
//@ needs-dynamic-linking
|
||||
//@ needs-unwind compiling proc macros with panic=abort causes a warning
|
||||
|
||||
#![crate_type = "proc-macro"]
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
//@ build-pass
|
||||
//@ force-host
|
||||
//@ no-prefer-dynamic
|
||||
//@ needs-unwind compiling proc macros with panic=abort causes a warning
|
||||
//@ aux-build:exports_no_mangle.rs
|
||||
#![crate_type = "proc-macro"]
|
||||
|
||||
|
@ -4,6 +4,7 @@
|
||||
//@ build-pass (FIXME(62277): could be check-pass?)
|
||||
//@ force-host
|
||||
//@ no-prefer-dynamic
|
||||
//@ needs-unwind compiling proc macros with panic=abort causes a warning
|
||||
|
||||
#![crate_type = "proc-macro"]
|
||||
#![deny(missing_docs)]
|
||||
|
@ -1,6 +1,7 @@
|
||||
//@ check-pass
|
||||
//@ force-host
|
||||
//@ no-prefer-dynamic
|
||||
//@ needs-unwind compiling proc macros with panic=abort causes a warning
|
||||
|
||||
#![deny(deprecated)]
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
//@ force-host
|
||||
//@ no-prefer-dynamic
|
||||
//@ compile-flags: -Z unpretty=expanded
|
||||
//@ needs-unwind compiling proc macros with panic=abort causes a warning
|
||||
//
|
||||
// This file is not actually used as a proc-macro - instead,
|
||||
// it's just used to show the output of the `quote!` macro
|
||||
|
@ -4,6 +4,7 @@
|
||||
//@ force-host
|
||||
//@ no-prefer-dynamic
|
||||
//@ compile-flags: -Z unpretty=expanded
|
||||
//@ needs-unwind compiling proc macros with panic=abort causes a warning
|
||||
//
|
||||
// This file is not actually used as a proc-macro - instead,
|
||||
// it's just used to show the output of the `quote!` macro
|
||||
|
@ -1,6 +1,7 @@
|
||||
//@ build-pass (FIXME(62277): could be check-pass?)
|
||||
//@ force-host
|
||||
//@ no-prefer-dynamic
|
||||
//@ needs-unwind compiling proc macros with panic=abort causes a warning
|
||||
|
||||
#![crate_type = "proc-macro"]
|
||||
#![deny(rust_2018_compatibility)]
|
||||
|
Loading…
Reference in New Issue
Block a user