Skip to content

Commit db718d7

Browse files
committed
remove some unnecessary feature flags
1 parent 737ecef commit db718d7

File tree

7 files changed

+7
-10
lines changed

7 files changed

+7
-10
lines changed

tests/compile-fail/check_arg_count_too_few_args.rs

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

43
fn main() {
54
extern "C" {

tests/compile-fail/check_arg_count_too_many_args.rs

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

43
fn main() {
54
extern "C" {

tests/compile-fail/shim_arg_size.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#![feature(rustc_private)]
2-
31
fn main() {
42
extern "C" {
53
// Use the wrong type(ie. not the pointer width) for the `size`

tests/run-pass/calloc.rs

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

33
#![feature(rustc_private)]
44

5-
use core::slice;
6-
75
extern crate libc;
86

7+
use core::slice;
8+
99
fn main() {
1010
unsafe {
1111
let p1 = libc::calloc(0, 0);

tests/run-pass/fs.rs

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

44
#![feature(rustc_private)]
55

6+
extern crate libc;
7+
68
use std::fs::{
79
File, create_dir, OpenOptions, read_dir, remove_dir, remove_dir_all, remove_file, rename,
810
};
911
use std::ffi::CString;
1012
use std::io::{Read, Write, Error, ErrorKind, Result, Seek, SeekFrom};
1113
use std::path::{PathBuf, Path};
1214

13-
extern crate libc;
14-
1515

1616
fn main() {
1717
test_file();

tests/run-pass/malloc.rs

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

33
#![feature(rustc_private)]
44

5-
use core::{slice, ptr};
6-
75
extern crate libc;
86

7+
use core::{slice, ptr};
8+
99
fn main() {
1010
// Test that small allocations sometimes *are* not very aligned.
1111
let saw_unaligned = (0..64).any(|_| unsafe {

tests/run-pass/regions-mock-trans.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![feature(rustc_private)]
44

55
extern crate libc;
6+
67
use std::mem;
78

89
struct Arena(());

0 commit comments

Comments
 (0)