Skip to content

Commit de492a3

Browse files
committed
Update tests
1 parent 723aee2 commit de492a3

26 files changed

+36
-230
lines changed

tests/run-make/c-unwind-abi-catch-lib-panic/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
//!
33
//! This test triggers a panic in a Rust library that our foreign function invokes. This shows
44
//! that we can unwind through the C code in that library, and catch the underlying panic.
5-
#![feature(c_unwind)]
65
76
use std::panic::{catch_unwind, AssertUnwindSafe};
87

tests/run-make/c-unwind-abi-catch-lib-panic/panic.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![crate_type = "staticlib"]
2-
#![feature(c_unwind)]
32

43
/// This function will panic if `x` is greater than 10.
54
///

tests/run-make/c-unwind-abi-catch-panic/main.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! A test for calling `C-unwind` functions across foreign function boundaries.
22
//!
33
//! This test triggers a panic when calling a foreign function that calls *back* into Rust.
4-
#![feature(c_unwind)]
54
65
use std::panic::{catch_unwind, AssertUnwindSafe};
76

tests/run-make/foreign-double-unwind/foo.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Tests that C++ double unwinding through Rust code will be properly guarded
22
// against instead of exhibiting undefined behaviour.
33

4-
#![feature(c_unwind)]
5-
64
extern "C-unwind" {
75
fn throw_cxx_exception();
86
fn cxx_catch_callback(cb: extern "C-unwind" fn());

tests/run-make/foreign-exceptions/foo.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// are caught by catch_unwind. Also tests that Rust panics can unwind through
33
// C++ code.
44

5-
#![feature(c_unwind)]
6-
75
use std::panic::{catch_unwind, AssertUnwindSafe};
86

97
struct DropCheck<'a>(&'a mut bool);

tests/run-make/foreign-rust-exceptions/bar.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![crate_type = "cdylib"]
2-
#![feature(c_unwind)]
32

43
#[no_mangle]
54
extern "C-unwind" fn panic() {

tests/run-make/foreign-rust-exceptions/foo.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(c_unwind)]
2-
31
#[cfg_attr(not(windows), link(name = "bar"))]
42
#[cfg_attr(windows, link(name = "bar.dll"))]
53
extern "C-unwind" {

tests/rustdoc-json/fn_pointer/abi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// ignore-tidy-linelength
22

33
#![feature(abi_vectorcall)]
4-
#![feature(c_unwind)]
54

65
// @is "$.index[*][?(@.name=='AbiRust')].inner.type.inner.header.abi" \"Rust\"
76
pub type AbiRust = fn();

tests/rustdoc-json/fns/abi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// ignore-tidy-linelength
22

33
#![feature(abi_vectorcall)]
4-
#![feature(c_unwind)]
54

65
// @is "$.index[*][?(@.name=='abi_rust')].inner.header.abi" \"Rust\"
76
pub fn abi_rust() {}

tests/rustdoc-json/methods/abi.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// ignore-tidy-linelength
22

33
#![feature(abi_vectorcall)]
4-
#![feature(c_unwind)]
54
#![feature(no_core)]
65
#![no_core]
76

0 commit comments

Comments
 (0)