tests: use needs-subprocess
instead of ignore-{wasm32,emscripten,sgx}
This commit is contained in:
parent
a11227b916
commit
8a0310a0b1
156 changed files with 170 additions and 200 deletions
|
@ -5,8 +5,7 @@
|
||||||
// without #[repr(simd)]
|
// without #[repr(simd)]
|
||||||
|
|
||||||
//@ run-pass
|
//@ run-pass
|
||||||
//@ ignore-wasm32 no processes
|
//@ needs-subprocess
|
||||||
//@ ignore-sgx no processes
|
|
||||||
|
|
||||||
#![feature(avx512_target_feature)]
|
#![feature(avx512_target_feature)]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
//@ run-pass
|
//@ run-pass
|
||||||
//@ ignore-wasm32 can't run commands
|
//@ needs-subprocess
|
||||||
//@ ignore-sgx no processes
|
|
||||||
//@ ignore-fuchsia must translate zircon signal to SIGSEGV/SIGBUS, FIXME (#58590)
|
//@ ignore-fuchsia must translate zircon signal to SIGSEGV/SIGBUS, FIXME (#58590)
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
//@[aarch64] only-aarch64
|
//@[aarch64] only-aarch64
|
||||||
//@[x32] only-x86
|
//@[x32] only-x86
|
||||||
//@[x64] only-x86_64
|
//@[x64] only-x86_64
|
||||||
//@ ignore-sgx no processes
|
//@ needs-subprocess
|
||||||
//@ ignore-musl FIXME #31506
|
//@ ignore-musl FIXME #31506
|
||||||
//@ ignore-fuchsia no exception handler registered for segfault
|
//@ ignore-fuchsia no exception handler registered for segfault
|
||||||
//@ compile-flags: -C lto
|
//@ compile-flags: -C lto
|
||||||
|
|
|
@ -3,8 +3,7 @@
|
||||||
//@[aarch64] only-aarch64
|
//@[aarch64] only-aarch64
|
||||||
//@[x32] only-x86
|
//@[x32] only-x86
|
||||||
//@[x64] only-x86_64
|
//@[x64] only-x86_64
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
//@ ignore-sgx no processes
|
|
||||||
//@ ignore-fuchsia no exception handler registered for segfault
|
//@ ignore-fuchsia no exception handler registered for segfault
|
||||||
//@ ignore-nto Crash analysis impossible at SIGSEGV in QNX Neutrino
|
//@ ignore-nto Crash analysis impossible at SIGSEGV in QNX Neutrino
|
||||||
//@ ignore-ios Stack probes are enabled, but the SIGSEGV handler isn't
|
//@ ignore-ios Stack probes are enabled, but the SIGSEGV handler isn't
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
//@ run-pass
|
//@ run-pass
|
||||||
//@ ignore-wasm32 no processes
|
//@ needs-subprocess
|
||||||
//@ ignore-sgx no processes
|
|
||||||
|
|
||||||
use std::alloc::{Layout, handle_alloc_error};
|
use std::alloc::{Layout, handle_alloc_error};
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:index out of bounds
|
//@ error-pattern:index out of bounds
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
use std::mem::size_of;
|
use std::mem::size_of;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:index out of bounds
|
//@ error-pattern:index out of bounds
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
#[allow(unconditional_panic)]
|
#[allow(unconditional_panic)]
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:index out of bounds: the len is 1 but the index is 2
|
//@ error-pattern:index out of bounds: the len is 1 but the index is 2
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let v: Vec<isize> = vec![10];
|
let v: Vec<isize> = vec![10];
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
//@ run-pass
|
//@ run-pass
|
||||||
//@ ignore-android FIXME #17520
|
//@ ignore-android FIXME #17520
|
||||||
//@ ignore-wasm32 spawning processes is not supported
|
//@ needs-subprocess
|
||||||
//@ ignore-openbsd no support for libbacktrace without filename
|
//@ ignore-openbsd no support for libbacktrace without filename
|
||||||
//@ ignore-sgx no processes
|
|
||||||
//@ ignore-msvc see #62897 and `backtrace-debuginfo.rs` test
|
//@ ignore-msvc see #62897 and `backtrace-debuginfo.rs` test
|
||||||
//@ ignore-fuchsia Backtraces not symbolized
|
//@ ignore-fuchsia Backtraces not symbolized
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
//@ run-pass
|
//@ run-pass
|
||||||
//@ ignore-android FIXME #17520
|
//@ ignore-android FIXME #17520
|
||||||
//@ ignore-wasm32 spawning processes is not supported
|
//@ needs-subprocess
|
||||||
//@ ignore-openbsd no support for libbacktrace without filename
|
//@ ignore-openbsd no support for libbacktrace without filename
|
||||||
//@ ignore-sgx no processes
|
|
||||||
//@ ignore-fuchsia Backtraces not symbolized
|
//@ ignore-fuchsia Backtraces not symbolized
|
||||||
//@ compile-flags:-g
|
//@ compile-flags:-g
|
||||||
//@ compile-flags:-Cstrip=none
|
//@ compile-flags:-Cstrip=none
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:quux
|
//@ error-pattern:quux
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn foo() -> ! {
|
fn foo() -> ! {
|
||||||
panic!("quux");
|
panic!("quux");
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:quux
|
//@ error-pattern:quux
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn my_err(s: String) -> ! {
|
fn my_err(s: String) -> ! {
|
||||||
println!("{}", s);
|
println!("{}", s);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:panic 1
|
//@ error-pattern:panic 1
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let x = 2;
|
let x = 2;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
struct Parser<'i: 't, 't>(&'i u8, &'t u8);
|
struct Parser<'i: 't, 't>(&'i u8, &'t u8);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:oops
|
//@ error-pattern:oops
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let func = || -> ! {
|
let func = || -> ! {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
//@ run-pass
|
//@ run-pass
|
||||||
//@ no-prefer-dynamic We move the binary around, so do not depend dynamically on libstd
|
//@ no-prefer-dynamic We move the binary around, so do not depend dynamically on libstd
|
||||||
//@ ignore-wasm32 no processes
|
//@ needs-subprocess
|
||||||
//@ ignore-sgx no processes
|
|
||||||
//@ ignore-fuchsia Needs directory creation privilege
|
//@ ignore-fuchsia Needs directory creation privilege
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
//@ run-pass
|
//@ run-pass
|
||||||
//@ ignore-android
|
//@ ignore-android
|
||||||
//@ ignore-emscripten
|
|
||||||
//@ ignore-sgx
|
|
||||||
//@ ignore-fuchsia no '/bin/sh', '/bin/ls'
|
//@ ignore-fuchsia no '/bin/sh', '/bin/ls'
|
||||||
|
//@ needs-subprocess
|
||||||
|
|
||||||
#![feature(rustc_private)]
|
#![feature(rustc_private)]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
//@ run-pass
|
//@ run-pass
|
||||||
//@ ignore-wasm32 no processes
|
//@ needs-subprocess
|
||||||
//@ ignore-sgx no processes
|
|
||||||
|
|
||||||
// Make sure that if a process doesn't have its stdio/stderr descriptors set up
|
// Make sure that if a process doesn't have its stdio/stderr descriptors set up
|
||||||
// that we don't die in a large ball of fire
|
// that we don't die in a large ball of fire
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:index out of bounds: the len is 5 but the index is 5
|
//@ error-pattern:index out of bounds: the len is 5 but the index is 5
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
const fn test(x: usize) -> i32 {
|
const fn test(x: usize) -> i32 {
|
||||||
[42;5][x]
|
[42;5][x]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ needs-unwind
|
//@ needs-unwind
|
||||||
//@ error-pattern:coroutine resumed after panicking
|
//@ error-pattern:coroutine resumed after panicking
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
// Test that we get the correct message for resuming a panicked coroutine.
|
// Test that we get the correct message for resuming a panicked coroutine.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn f() -> ! {
|
fn f() -> ! {
|
||||||
panic!()
|
panic!()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let _x = if false {
|
let _x = if false {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:Number is odd
|
//@ error-pattern:Number is odd
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn even(x: usize) -> bool {
|
fn even(x: usize) -> bool {
|
||||||
if x < 2 {
|
if x < 2 {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:quux
|
//@ error-pattern:quux
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn my_err(s: String) -> ! {
|
fn my_err(s: String) -> ! {
|
||||||
println!("{}", s);
|
println!("{}", s);
|
||||||
|
|
2
tests/ui/extern/issue-18576.rs
vendored
2
tests/ui/extern/issue-18576.rs
vendored
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:stop
|
//@ error-pattern:stop
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
// #18576
|
// #18576
|
||||||
// Make sure that calling an extern function pointer in an unreachable
|
// Make sure that calling an extern function pointer in an unreachable
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn f() -> ! {
|
fn f() -> ! {
|
||||||
panic!()
|
panic!()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:capacity overflow
|
//@ error-pattern:capacity overflow
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
use std::collections::hash_map::HashMap;
|
use std::collections::hash_map::HashMap;
|
||||||
use std::mem::size_of;
|
use std::mem::size_of;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:panic works
|
//@ error-pattern:panic works
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
use std::*;
|
use std::*;
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
|
// ignore-tidy-linelength
|
||||||
|
//! This test checks panic emitted from `mem::{uninitialized,zeroed}`.
|
||||||
//@ run-pass
|
//@ run-pass
|
||||||
//@ revisions: default strict
|
//@ revisions: default strict
|
||||||
//@ [strict]compile-flags: -Zstrict-init-checks
|
//@ [strict]compile-flags: -Zstrict-init-checks
|
||||||
// ignore-tidy-linelength
|
//@ needs-subprocess
|
||||||
//@ ignore-wasm32 spawning processes is not supported
|
|
||||||
//@ ignore-sgx no processes
|
|
||||||
//
|
|
||||||
// This test checks panic emitted from `mem::{uninitialized,zeroed}`.
|
|
||||||
#![allow(deprecated, invalid_value)]
|
#![allow(deprecated, invalid_value)]
|
||||||
#![feature(never_type)]
|
#![feature(never_type)]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
panic!();
|
panic!();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:bad input
|
//@ error-pattern:bad input
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
Some("foo").unwrap_or(panic!("bad input")).to_string();
|
Some("foo").unwrap_or(panic!("bad input")).to_string();
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:Hello, world!
|
//@ error-pattern:Hello, world!
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
pub trait Parser {
|
pub trait Parser {
|
||||||
type Input;
|
type Input;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:panic evaluated
|
//@ error-pattern:panic evaluated
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
#[allow(unused_variables)]
|
#[allow(unused_variables)]
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:panic evaluated
|
//@ error-pattern:panic evaluated
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
#[allow(unused_variables)]
|
#[allow(unused_variables)]
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:index out of bounds
|
//@ error-pattern:index out of bounds
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
use std::mem;
|
use std::mem;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:custom message
|
//@ error-pattern:custom message
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
assert!(false, "custom message");
|
assert!(false, "custom message");
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:so long
|
//@ error-pattern:so long
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
#![allow(unreachable_code)]
|
#![allow(unreachable_code)]
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:panicking destructors ftw!
|
//@ error-pattern:panicking destructors ftw!
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
struct Observer<'a>(&'a mut FilledOnDrop);
|
struct Observer<'a>(&'a mut FilledOnDrop);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
//@ run-pass
|
//@ run-pass
|
||||||
//@ ignore-wasm32 no processes
|
//@ needs-subprocess
|
||||||
//@ ignore-sgx no processes
|
|
||||||
|
|
||||||
use std::process::{Command, Stdio};
|
use std::process::{Command, Stdio};
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:overflow
|
//@ error-pattern:overflow
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
use std::time::{Duration, SystemTime};
|
use std::time::{Duration, SystemTime};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:overflow
|
//@ error-pattern:overflow
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
use std::time::{Instant, Duration};
|
use std::time::{Instant, Duration};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:overflow
|
//@ error-pattern:overflow
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
use std::time::{Duration, SystemTime};
|
use std::time::{Duration, SystemTime};
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
//@ revisions: edition2021 edition2024
|
//@ revisions: edition2021 edition2024
|
||||||
//@ ignore-wasm no panic or subprocess support
|
//@ ignore-wasm no panic support
|
||||||
|
//@ needs-subprocess
|
||||||
//@ [edition2024] edition: 2024
|
//@ [edition2024] edition: 2024
|
||||||
//@ run-pass
|
//@ run-pass
|
||||||
//@ needs-unwind
|
//@ needs-unwind
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:moop
|
//@ error-pattern:moop
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
for _ in 0_usize..10_usize {
|
for _ in 0_usize..10_usize {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:assertion failed: 1 == 2
|
//@ error-pattern:assertion failed: 1 == 2
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
assert!(1 == 2);
|
assert!(1 == 2);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//@ error-pattern:assertion `left == right` failed: 1 + 1 definitely should be 3
|
//@ error-pattern:assertion `left == right` failed: 1 + 1 definitely should be 3
|
||||||
//@ error-pattern: left: 2
|
//@ error-pattern: left: 2
|
||||||
//@ error-pattern: right: 3
|
//@ error-pattern: right: 3
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
assert_eq!(1 + 1, 3, "1 + 1 definitely should be 3");
|
assert_eq!(1 + 1, 3, "1 + 1 definitely should be 3");
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//@ error-pattern:assertion `left == right` failed
|
//@ error-pattern:assertion `left == right` failed
|
||||||
//@ error-pattern: left: 14
|
//@ error-pattern: left: 14
|
||||||
//@ error-pattern: right: 15
|
//@ error-pattern: right: 15
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
assert_eq!(14, 15);
|
assert_eq!(14, 15);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:assertion failed: false
|
//@ error-pattern:assertion failed: false
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
assert!(false);
|
assert!(false);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern: panicked
|
//@ error-pattern: panicked
|
||||||
//@ error-pattern: test-assert-fmt 42 rust
|
//@ error-pattern: test-assert-fmt 42 rust
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
assert!(false, "test-assert-fmt {} {}", 42, "rust");
|
assert!(false, "test-assert-fmt {} {}", 42, "rust");
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:panicked
|
//@ error-pattern:panicked
|
||||||
//@ error-pattern:test-assert-owned
|
//@ error-pattern:test-assert-owned
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
#![allow(non_fmt_panics)]
|
#![allow(non_fmt_panics)]
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:panicked
|
//@ error-pattern:panicked
|
||||||
//@ error-pattern:test-assert-static
|
//@ error-pattern:test-assert-static
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
assert!(false, "test-assert-static");
|
assert!(false, "test-assert-static");
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//@ error-pattern:assertion `left matches right` failed: 1 + 1 definitely should be 3
|
//@ error-pattern:assertion `left matches right` failed: 1 + 1 definitely should be 3
|
||||||
//@ error-pattern: left: 2
|
//@ error-pattern: left: 2
|
||||||
//@ error-pattern: right: 3
|
//@ error-pattern: right: 3
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
#![feature(assert_matches)]
|
#![feature(assert_matches)]
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//@ error-pattern:assertion `left != right` failed: 1 + 1 definitely should not be 2
|
//@ error-pattern:assertion `left != right` failed: 1 + 1 definitely should not be 2
|
||||||
//@ error-pattern: left: 2
|
//@ error-pattern: left: 2
|
||||||
//@ error-pattern: right: 2
|
//@ error-pattern: right: 2
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
assert_ne!(1 + 1, 2, "1 + 1 definitely should not be 2");
|
assert_ne!(1 + 1, 2, "1 + 1 definitely should not be 2");
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//@ error-pattern:assertion `left != right` failed
|
//@ error-pattern:assertion `left != right` failed
|
||||||
//@ error-pattern: left: 14
|
//@ error-pattern: left: 14
|
||||||
//@ error-pattern: right: 14
|
//@ error-pattern: right: 14
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
assert_ne!(14, 14);
|
assert_ne!(14, 14);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:test
|
//@ error-pattern:test
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
panic!("test");
|
panic!("test");
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:test
|
//@ error-pattern:test
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let __isize: isize = panic!("test");
|
let __isize: isize = panic!("test");
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:test
|
//@ error-pattern:test
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn f() {
|
fn f() {
|
||||||
panic!("test");
|
panic!("test");
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:not implemented
|
//@ error-pattern:not implemented
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
//@ revisions: edition_2015 edition_2021
|
//@ revisions: edition_2015 edition_2021
|
||||||
//@ [edition_2015]edition:2015
|
//@ [edition_2015]edition:2015
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:internal error: entered unreachable code: 6 is not prime
|
//@ error-pattern:internal error: entered unreachable code: 6 is not prime
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
unreachable!("{} is not {}", 6u32, "prime");
|
unreachable!("{} is not {}", 6u32, "prime");
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
//@ revisions: edition_2015 edition_2021
|
//@ revisions: edition_2015 edition_2021
|
||||||
//@ [edition_2015]edition:2015
|
//@ [edition_2015]edition:2015
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
//@ revisions: edition_2015 edition_2021
|
//@ revisions: edition_2015 edition_2021
|
||||||
//@ [edition_2015]edition:2015
|
//@ [edition_2015]edition:2015
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:internal error: entered unreachable code
|
//@ error-pattern:internal error: entered unreachable code
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
unreachable!()
|
unreachable!()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:internal error: entered unreachable code: uhoh
|
//@ error-pattern:internal error: entered unreachable code: uhoh
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
unreachable!("uhoh")
|
unreachable!("uhoh")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:internal error: entered unreachable code
|
//@ error-pattern:internal error: entered unreachable code
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
unreachable!()
|
unreachable!()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn f() -> ! {
|
fn f() -> ! {
|
||||||
panic!()
|
panic!()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let _x = match true {
|
let _x = match true {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
#![allow(unreachable_code)]
|
#![allow(unreachable_code)]
|
||||||
#![allow(unused_variables)]
|
#![allow(unused_variables)]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:quux
|
//@ error-pattern:quux
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn f() -> ! {
|
fn f() -> ! {
|
||||||
panic!("quux")
|
panic!("quux")
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:squirrelcupcake
|
//@ error-pattern:squirrelcupcake
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn cmp() -> isize {
|
fn cmp() -> isize {
|
||||||
match (Some('a'), None::<char>) {
|
match (Some('a'), None::<char>) {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
//@ revisions: foo bar
|
//@ revisions: foo bar
|
||||||
//@[foo] error-pattern:foo
|
//@[foo] error-pattern:foo
|
||||||
//@[bar] error-pattern:bar
|
//@[bar] error-pattern:bar
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
#[cfg(foo)]
|
#[cfg(foo)]
|
||||||
fn die() {
|
fn die() {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//@ error-pattern:converging_fn called
|
//@ error-pattern:converging_fn called
|
||||||
//@ error-pattern:0 dropped
|
//@ error-pattern:0 dropped
|
||||||
//@ error-pattern:exit
|
//@ error-pattern:exit
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
struct Droppable(u8);
|
struct Droppable(u8);
|
||||||
impl Drop for Droppable {
|
impl Drop for Droppable {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//@ error-pattern:complex called
|
//@ error-pattern:complex called
|
||||||
//@ error-pattern:dropped
|
//@ error-pattern:dropped
|
||||||
//@ error-pattern:exit
|
//@ error-pattern:exit
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
struct Droppable;
|
struct Droppable;
|
||||||
impl Drop for Droppable {
|
impl Drop for Droppable {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:diverging_fn called
|
//@ error-pattern:diverging_fn called
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn diverging_fn() -> ! {
|
fn diverging_fn() -> ! {
|
||||||
panic!("diverging_fn called")
|
panic!("diverging_fn called")
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:drop 1
|
//@ error-pattern:drop 1
|
||||||
//@ error-pattern:drop 2
|
//@ error-pattern:drop 2
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
/// Structure which will not allow to be dropped twice.
|
/// Structure which will not allow to be dropped twice.
|
||||||
struct Droppable<'a>(&'a mut bool, u32);
|
struct Droppable<'a>(&'a mut bool, u32);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:drop 1
|
//@ error-pattern:drop 1
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
/// Structure which will not allow to be dropped twice.
|
/// Structure which will not allow to be dropped twice.
|
||||||
struct Droppable<'a>(&'a mut bool, u32);
|
struct Droppable<'a>(&'a mut bool, u32);
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
//@ error-pattern:drop 3
|
//@ error-pattern:drop 3
|
||||||
//@ error-pattern:drop 2
|
//@ error-pattern:drop 2
|
||||||
//@ error-pattern:drop 1
|
//@ error-pattern:drop 1
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
/// Structure which will not allow to be dropped twice.
|
/// Structure which will not allow to be dropped twice.
|
||||||
struct Droppable<'a>(&'a mut bool, u32);
|
struct Droppable<'a>(&'a mut bool, u32);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:index out of bounds: the len is 5 but the index is 10
|
//@ error-pattern:index out of bounds: the len is 5 but the index is 10
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
const C: [u32; 5] = [0; 5];
|
const C: [u32; 5] = [0; 5];
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:index out of bounds: the len is 5 but the index is 10
|
//@ error-pattern:index out of bounds: the len is 5 but the index is 10
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
const C: &'static [u8; 5] = b"hello";
|
const C: &'static [u8; 5] = b"hello";
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:index out of bounds: the len is 5 but the index is 10
|
//@ error-pattern:index out of bounds: the len is 5 but the index is 10
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
const C: &'static [u8; 5] = b"hello";
|
const C: &'static [u8; 5] = b"hello";
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:aah!
|
//@ error-pattern:aah!
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn call_another_fn<T, F: FnOnce() -> T>(f: F) -> T {
|
fn call_another_fn<T, F: FnOnce() -> T>(f: F) -> T {
|
||||||
f()
|
f()
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:thread 'main' panicked
|
//@ error-pattern:thread 'main' panicked
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut vec = vec![];
|
let mut vec = vec![];
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:attempt to divide by zero
|
//@ error-pattern:attempt to divide by zero
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
#[allow(unconditional_panic)]
|
#[allow(unconditional_panic)]
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:attempt to calculate the remainder with a divisor of zero
|
//@ error-pattern:attempt to calculate the remainder with a divisor of zero
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
#[allow(unconditional_panic)]
|
#[allow(unconditional_panic)]
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
//@ error-pattern:thread 'main' panicked
|
//@ error-pattern:thread 'main' panicked
|
||||||
//@ error-pattern:attempt to add with overflow
|
//@ error-pattern:attempt to add with overflow
|
||||||
//@ compile-flags: -C debug-assertions
|
//@ compile-flags: -C debug-assertions
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
#![allow(arithmetic_overflow)]
|
#![allow(arithmetic_overflow)]
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:thread 'main' panicked
|
//@ error-pattern:thread 'main' panicked
|
||||||
//@ error-pattern:attempt to multiply with overflow
|
//@ error-pattern:attempt to multiply with overflow
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
//@ compile-flags: -C debug-assertions
|
//@ compile-flags: -C debug-assertions
|
||||||
|
|
||||||
#![allow(arithmetic_overflow)]
|
#![allow(arithmetic_overflow)]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:attempt to negate with overflow
|
//@ error-pattern:attempt to negate with overflow
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
//@ compile-flags: -C debug-assertions
|
//@ compile-flags: -C debug-assertions
|
||||||
#![allow(arithmetic_overflow)]
|
#![allow(arithmetic_overflow)]
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:thread 'main' panicked
|
//@ error-pattern:thread 'main' panicked
|
||||||
//@ error-pattern:attempt to multiply with overflow
|
//@ error-pattern:attempt to multiply with overflow
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
//@ compile-flags: -C debug-assertions
|
//@ compile-flags: -C debug-assertions
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:thread 'main' panicked
|
//@ error-pattern:thread 'main' panicked
|
||||||
//@ error-pattern:attempt to multiply with overflow
|
//@ error-pattern:attempt to multiply with overflow
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
//@ compile-flags: -C debug-assertions
|
//@ compile-flags: -C debug-assertions
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:thread 'main' panicked
|
//@ error-pattern:thread 'main' panicked
|
||||||
//@ error-pattern:attempt to subtract with overflow
|
//@ error-pattern:attempt to subtract with overflow
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
//@ compile-flags: -C debug-assertions
|
//@ compile-flags: -C debug-assertions
|
||||||
|
|
||||||
#![allow(arithmetic_overflow)]
|
#![allow(arithmetic_overflow)]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn a() {}
|
fn a() {}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn build() -> Vec<isize> {
|
fn build() -> Vec<isize> {
|
||||||
panic!();
|
panic!();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn build1() -> Vec<isize> {
|
fn build1() -> Vec<isize> {
|
||||||
vec![0, 0, 0, 0, 0, 0, 0]
|
vec![0, 0, 0, 0, 0, 0, 0]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit panic
|
//@ error-pattern:explicit panic
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn failfn() {
|
fn failfn() {
|
||||||
panic!();
|
panic!();
|
||||||
|
|
|
@ -8,8 +8,7 @@
|
||||||
// Since we mark some ABIs as "nounwind" to LLVM, we must make sure that
|
// Since we mark some ABIs as "nounwind" to LLVM, we must make sure that
|
||||||
// we never unwind through them.
|
// we never unwind through them.
|
||||||
|
|
||||||
//@ ignore-wasm32 no processes
|
//@ needs-subprocess
|
||||||
//@ ignore-sgx no processes
|
|
||||||
|
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:meep
|
//@ error-pattern:meep
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn f(_a: isize, _b: isize, _c: Box<isize>) {
|
fn f(_a: isize, _b: isize, _c: Box<isize>) {
|
||||||
panic!("moop");
|
panic!("moop");
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:One
|
//@ error-pattern:One
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
panic!("One");
|
panic!("One");
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:wooooo
|
//@ error-pattern:wooooo
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let mut a = 1;
|
let mut a = 1;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:explicit
|
//@ error-pattern:explicit
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
panic!();
|
panic!();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
//@ run-fail
|
//@ run-fail
|
||||||
//@ error-pattern:meh
|
//@ error-pattern:meh
|
||||||
//@ ignore-emscripten no processes
|
//@ needs-subprocess
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let str_var: String = "meh".to_string();
|
let str_var: String = "meh".to_string();
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue