Skip to content

Commit 83953f5

Browse files
committed
remove unneeded rustc_private feature
1 parent 7c856f8 commit 83953f5

File tree

51 files changed

+1
-89
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1
-89
lines changed

tests/fail/concurrency/libc_pthread_create_main_terminate.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
// Check that we terminate the program when the main thread terminates.
55

6-
#![feature(rustc_private)]
7-
86
use std::{mem, ptr};
97

108
extern "C" fn thread_start(_null: *mut libc::c_void) -> *mut libc::c_void {

tests/fail/concurrency/libc_pthread_join_detached.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
// Joining a detached thread is undefined behavior.
44

5-
#![feature(rustc_private)]
6-
75
use std::{mem, ptr};
86

97
extern "C" fn thread_start(_null: *mut libc::c_void) -> *mut libc::c_void {

tests/fail/concurrency/libc_pthread_join_joined.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
// Joining an already joined thread is undefined behavior.
44

5-
#![feature(rustc_private)]
6-
75
use std::{mem, ptr};
86

97
extern "C" fn thread_start(_null: *mut libc::c_void) -> *mut libc::c_void {

tests/fail/concurrency/libc_pthread_join_main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
// Joining the main thread is undefined behavior.
44

5-
#![feature(rustc_private)]
6-
75
use std::{ptr, thread};
86

97
fn main() {

tests/fail/concurrency/libc_pthread_join_multiple.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
// Joining the same thread from multiple threads is undefined behavior.
44

5-
#![feature(rustc_private)]
6-
75
use std::thread;
86
use std::{mem, ptr};
97

tests/fail/concurrency/libc_pthread_join_self.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
// Joining itself is undefined behavior.
66

7-
#![feature(rustc_private)]
8-
97
use std::{ptr, thread};
108

119
fn main() {

tests/fail/concurrency/too_few_args.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
//! The thread function must have exactly one argument.
44
5-
#![feature(rustc_private)]
6-
75
use std::{mem, ptr};
86

97
extern "C" fn thread_start() -> *mut libc::c_void {

tests/fail/concurrency/too_many_args.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
//! The thread function must have exactly one argument.
44
5-
#![feature(rustc_private)]
6-
75
use std::{mem, ptr};
86

97
extern "C" fn thread_start(_null: *mut libc::c_void, _x: i32) -> *mut libc::c_void {

tests/fail/concurrency/unwind_top_of_stack.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
//! Unwinding past the top frame of a stack is Undefined Behavior.
55
6-
#![feature(rustc_private, c_unwind)]
6+
#![feature(c_unwind)]
77

88
use std::{mem, ptr};
99

tests/fail/shims/fs/close_stdout.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
// FIXME: standard handles cannot be closed (https://github.com/rust-lang/rust/issues/40032)
55

6-
#![feature(rustc_private)]
7-
86
fn main() {
97
unsafe {
108
libc::close(1); //~ ERROR: cannot close stdout

tests/fail/shims/fs/isolated_stdin.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
fn main() -> std::io::Result<()> {
64
let mut bytes = [0u8; 512];
75
unsafe {

tests/fail/shims/fs/mkstemp_immutable_arg.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@ignore-target-windows: No libc on Windows
22
//@compile-flags: -Zmiri-disable-isolation
33

4-
#![feature(rustc_private)]
5-
64
fn main() {
75
test_mkstemp_immutable_arg();
86
}

tests/fail/shims/fs/read_from_stdout.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@compile-flags: -Zmiri-disable-isolation
22
//@ignore-target-windows: No libc on Windows
33

4-
#![feature(rustc_private)]
5-
64
fn main() -> std::io::Result<()> {
75
let mut bytes = [0u8; 512];
86
unsafe {

tests/fail/shims/fs/unix_open_missing_required_mode.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@ignore-target-windows: No libc on Windows
22
//@compile-flags: -Zmiri-disable-isolation
33

4-
#![feature(rustc_private)]
5-
64
fn main() {
75
test_file_open_missing_needed_mode();
86
}

tests/fail/shims/fs/write_to_stdin.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
fn main() -> std::io::Result<()> {
64
let bytes = b"hello";
75
unsafe {

tests/fail/shims/sync/libc_pthread_cond_double_destroy.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ignore-target-windows: No libc on Windows
2-
#![feature(rustc_private)]
32

43
/// Test that destroying a pthread_cond twice fails, even without a check for number validity
54

tests/fail/shims/sync/libc_pthread_condattr_double_destroy.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ignore-target-windows: No libc on Windows
2-
#![feature(rustc_private)]
32

43
/// Test that destroying a pthread_condattr twice fails, even without a check for number validity
54

tests/fail/shims/sync/libc_pthread_mutex_NULL_deadlock.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//
33
// Check that if we pass NULL attribute, then we get the default mutex type.
44

5-
#![feature(rustc_private)]
6-
75
fn main() {
86
unsafe {
97
let mut mutex: libc::pthread_mutex_t = std::mem::zeroed();

tests/fail/shims/sync/libc_pthread_mutex_deadlock.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
use std::cell::UnsafeCell;
64
use std::sync::Arc;
75
use std::thread;

tests/fail/shims/sync/libc_pthread_mutex_default_deadlock.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//
33
// Check that if we do not set the mutex type, it is the default.
44

5-
#![feature(rustc_private)]
6-
75
fn main() {
86
unsafe {
97
let mutexattr: libc::pthread_mutexattr_t = std::mem::zeroed();

tests/fail/shims/sync/libc_pthread_mutex_destroy_locked.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
fn main() {
64
unsafe {
75
let mut mutexattr: libc::pthread_mutexattr_t = std::mem::zeroed();

tests/fail/shims/sync/libc_pthread_mutex_double_destroy.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ignore-target-windows: No libc on Windows
2-
#![feature(rustc_private)]
32

43
/// Test that destroying a pthread_mutex twice fails, even without a check for number validity
54

tests/fail/shims/sync/libc_pthread_mutex_normal_deadlock.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
fn main() {
64
unsafe {
75
let mut mutexattr: libc::pthread_mutexattr_t = std::mem::zeroed();

tests/fail/shims/sync/libc_pthread_mutex_normal_unlock_unlocked.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
fn main() {
64
unsafe {
75
let mut mutexattr: libc::pthread_mutexattr_t = std::mem::zeroed();

tests/fail/shims/sync/libc_pthread_mutex_wrong_owner.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
use std::cell::UnsafeCell;
64
use std::sync::Arc;
75
use std::thread;

tests/fail/shims/sync/libc_pthread_mutexattr_double_destroy.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ignore-target-windows: No libc on Windows
2-
#![feature(rustc_private)]
32

43
/// Test that destroying a pthread_mutexattr twice fails, even without a check for number validity
54

tests/fail/shims/sync/libc_pthread_rwlock_destroy_read_locked.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
fn main() {
64
let rw = std::cell::UnsafeCell::new(libc::PTHREAD_RWLOCK_INITIALIZER);
75
unsafe {

tests/fail/shims/sync/libc_pthread_rwlock_destroy_write_locked.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
fn main() {
64
let rw = std::cell::UnsafeCell::new(libc::PTHREAD_RWLOCK_INITIALIZER);
75
unsafe {

tests/fail/shims/sync/libc_pthread_rwlock_double_destroy.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//@ignore-target-windows: No libc on Windows
2-
#![feature(rustc_private)]
32

43
/// Test that destroying a pthread_rwlock twice fails, even without a check for number validity
54

tests/fail/shims/sync/libc_pthread_rwlock_read_write_deadlock_single_thread.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
fn main() {
64
let rw = std::cell::UnsafeCell::new(libc::PTHREAD_RWLOCK_INITIALIZER);
75
unsafe {

tests/fail/shims/sync/libc_pthread_rwlock_read_wrong_owner.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
use std::cell::UnsafeCell;
64
use std::sync::Arc;
75
use std::thread;

tests/fail/shims/sync/libc_pthread_rwlock_unlock_unlocked.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
fn main() {
64
let rw = std::cell::UnsafeCell::new(libc::PTHREAD_RWLOCK_INITIALIZER);
75
unsafe {

tests/fail/shims/sync/libc_pthread_rwlock_write_read_deadlock.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
use std::cell::UnsafeCell;
64
use std::sync::Arc;
75
use std::thread;

tests/fail/shims/sync/libc_pthread_rwlock_write_read_deadlock_single_thread.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
fn main() {
64
let rw = std::cell::UnsafeCell::new(libc::PTHREAD_RWLOCK_INITIALIZER);
75
unsafe {

tests/fail/shims/sync/libc_pthread_rwlock_write_write_deadlock.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
use std::cell::UnsafeCell;
64
use std::sync::Arc;
75
use std::thread;

tests/fail/shims/sync/libc_pthread_rwlock_write_write_deadlock_single_thread.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
fn main() {
64
let rw = std::cell::UnsafeCell::new(libc::PTHREAD_RWLOCK_INITIALIZER);
75
unsafe {

tests/fail/shims/sync/libc_pthread_rwlock_write_wrong_owner.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
use std::cell::UnsafeCell;
64
use std::sync::Arc;
75
use std::thread;

tests/fail/unsupported_signal.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! `signal()` is special on Linux and macOS that it's only supported within libstd.
22
//! The implementation is not complete enough to permit user code to call it.
33
//@ignore-target-windows: No libc on Windows
4-
#![feature(rustc_private)]
54

65
fn main() {
76
unsafe {

tests/panic/unsupported_syscall.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//@ignore-target-windows: No libc on Windows
22
//@ignore-target-apple: `syscall` is not supported on macOS
33
//@compile-flags: -Zmiri-panic-on-unsupported
4-
#![feature(rustc_private)]
54

65
fn main() {
76
unsafe {

tests/pass/calloc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
use core::slice;
64

75
fn main() {

tests/pass/concurrency/libc_pthread_cond.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//@ignore-target-apple: pthread_condattr_setclock is not supported on MacOS.
33
//@compile-flags: -Zmiri-disable-isolation
44

5-
#![feature(rustc_private)]
6-
75
/// Test that conditional variable timeouts are working properly with both
86
/// monotonic and system clocks.
97
use std::mem::MaybeUninit;

tests/pass/concurrency/linux-futex.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
//@only-target-linux
22
//@compile-flags: -Zmiri-disable-isolation
33

4-
#![feature(rustc_private)]
5-
64
use std::mem::MaybeUninit;
75
use std::ptr;
86
use std::sync::atomic::AtomicI32;

tests/pass/concurrency/tls_pthread_drop_order.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
use std::mem;
64
use std::ptr;
75

tests/pass/foreign-fn-linkname.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
//ignore-windows: Uses POSIX APIs
2-
#![feature(rustc_private)]
32

43
use std::ffi::CString;
54

tests/pass/malloc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//@ignore-target-windows: No libc on Windows
22

3-
#![feature(rustc_private)]
4-
53
use core::{ptr, slice};
64

75
fn main() {

tests/pass/regions-mock-trans.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
//ignore-windows: Uses POSIX APIs
22

3-
#![feature(rustc_private)]
4-
53
use std::mem;
64

75
struct Arena(());

tests/pass/shims/fs.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//@ignore-target-windows: File handling is not implemented yet
22
//@compile-flags: -Zmiri-disable-isolation
33

4-
#![feature(rustc_private)]
54
#![feature(io_error_more)]
65
#![feature(io_error_uncategorized)]
76

tests/pass/shims/fs_with_isolation.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
//@compile-flags: -Zmiri-isolation-error=warn-nobacktrace
33
//@normalize-stderr-test: "(stat(x)?)" -> "$$STAT"
44

5-
#![feature(rustc_private)]
6-
75
use std::ffi::CString;
86
use std::fs::{self, File};
97
use std::io::{Error, ErrorKind};

tests/pass/shims/linux-getrandom-without-isolation.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
//@only-target-linux
22
//@compile-flags: -Zmiri-disable-isolation
3-
#![feature(rustc_private)]
43

54
use std::ptr;
65

0 commit comments

Comments
 (0)