remove some unnecessary feature flags
This commit is contained in:
parent
737ecef376
commit
db718d72ae
@ -1,5 +1,4 @@
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(rustc_private)]
|
||||
|
||||
fn main() {
|
||||
extern "C" {
|
||||
|
@ -1,5 +1,4 @@
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(rustc_private)]
|
||||
|
||||
fn main() {
|
||||
extern "C" {
|
||||
|
@ -1,5 +1,3 @@
|
||||
#![feature(rustc_private)]
|
||||
|
||||
fn main() {
|
||||
extern "C" {
|
||||
// Use the wrong type(ie. not the pointer width) for the `size`
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
use core::slice;
|
||||
|
||||
extern crate libc;
|
||||
|
||||
use core::slice;
|
||||
|
||||
fn main() {
|
||||
unsafe {
|
||||
let p1 = libc::calloc(0, 0);
|
||||
|
@ -3,6 +3,8 @@
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
extern crate libc;
|
||||
|
||||
use std::fs::{
|
||||
File, create_dir, OpenOptions, read_dir, remove_dir, remove_dir_all, remove_file, rename,
|
||||
};
|
||||
@ -10,8 +12,6 @@ use std::ffi::CString;
|
||||
use std::io::{Read, Write, Error, ErrorKind, Result, Seek, SeekFrom};
|
||||
use std::path::{PathBuf, Path};
|
||||
|
||||
extern crate libc;
|
||||
|
||||
|
||||
fn main() {
|
||||
test_file();
|
||||
|
@ -2,10 +2,10 @@
|
||||
|
||||
#![feature(rustc_private)]
|
||||
|
||||
use core::{slice, ptr};
|
||||
|
||||
extern crate libc;
|
||||
|
||||
use core::{slice, ptr};
|
||||
|
||||
fn main() {
|
||||
// Test that small allocations sometimes *are* not very aligned.
|
||||
let saw_unaligned = (0..64).any(|_| unsafe {
|
||||
|
@ -3,6 +3,7 @@
|
||||
#![feature(rustc_private)]
|
||||
|
||||
extern crate libc;
|
||||
|
||||
use std::mem;
|
||||
|
||||
struct Arena(());
|
||||
|
Loading…
x
Reference in New Issue
Block a user