Fix most unstable feature warnings

This commit is contained in:
Michael Gehring 2015-02-03 23:49:03 +01:00
parent db8506532e
commit 3eb5a814a3
74 changed files with 73 additions and 76 deletions

View file

@ -1,11 +1,10 @@
#![allow(unstable)]
#![feature(core, io, os, path)]
use std::old_io::{File, Truncate, ReadWrite};
use std::os;
use std::path::Path;
static TEMPLATE: &'static str = "\
#![allow(unstable)]
#![feature(os)]
extern crate \"@UTIL_CRATE@\" as uu@UTIL_CRATE@;
use std::os;

View file

@ -1,4 +1,4 @@
#![allow(unstable)]
#![feature(core, io, os, path)]
use std::old_io::{File, Truncate, Write};
use std::os;

View file

@ -1,5 +1,5 @@
#![crate_name = "base64"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "basename"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "cat"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private)]
#![feature(box_syntax, unsafe_destructor)]

View file

@ -1,5 +1,5 @@
#![crate_name = "chmod"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "chroot"]
#![allow(unstable)]
#![feature(collections, core, io, libc, os, path, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "cksum"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "comm"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "cp"]
#![allow(unstable)]
#![feature(collections, core, io, os, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "cut"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "dirname"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "du"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private, std_misc, unicode)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "echo"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private)]
/*
* This file is part of the uutils coreutils package.

2
src/env/env.rs vendored
View file

@ -1,5 +1,5 @@
#![crate_name = "env"]
#![allow(unstable)]
#![feature(core, io, os)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "expand"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "factor"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,4 @@
#![crate_name = "false"]
#![allow(unstable)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "fold"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private, unicode)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "groups"]
#![allow(unstable)]
#![feature(collections, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "hashsum"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "head"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "hostid"]
#![allow(unstable)]
#![feature(collections, core, libc, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "hostname"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "id"]
#![allow(unstable)]
#![feature(collections, core, libc, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "kill"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private, unicode)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "link"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "logname"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "mkdir"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "mkfifo"]
#![allow(unstable)]
#![feature(collections, core, libc, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "mv"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "nice"]
#![allow(unstable)]
#![feature(collections, core, libc, os, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "nl"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "nohup"]
#![allow(unstable)]
#![feature(collections, core, io, libc, os, path, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "nproc"]
#![allow(unstable)]
#![feature(collections, os, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "od"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "paste"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "printenv"]
#![allow(unstable)]
#![feature(collections, core, io, libc, os, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "pwd"]
#![allow(unstable)]
#![feature(collections, core, io, libc, os, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "readlink"]
#![allow(unstable)]
#![feature(collections, core, io, os, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name= "realpath"]
#![allow(unstable)]
#![feature(collections, core, io, libc, os, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "relpath"]
#![allow(unstable)]
#![feature(collections, core, libc, os, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "rm"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "rmdir"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "seq"]
#![allow(unstable)]
#![feature(collections, core, libc, rustc_private)]
// TODO: Make -w flag work with decimals
// TODO: Support -f flag

View file

@ -1,5 +1,5 @@
#![crate_name = "shuf"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rand, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "sleep"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "sort"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private, unicode)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "split"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,6 +1,6 @@
#![crate_name = "libstdbuf"]
#![crate_type = "staticlib"]
#![allow(unstable)]
#![feature(core, libc, os)]
extern crate libc;
use libc::{c_int, size_t, c_char, FILE, _IOFBF, _IONBF, _IOLBF, setvbuf};

View file

@ -1,5 +1,5 @@
#![crate_name = "stdbuf"]
#![allow(unstable)]
#![feature(core, io, libc, os, path, rustc_private, unicode)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "sum"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "sync"]
#![allow(unstable)]
#![feature(collections, libc, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "tac"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "tail"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "tee"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "test"]
#![allow(unstable)]
#![feature(core, libc, os, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "timeout"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "touch"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "tr"]
#![allow(unstable)]
#![feature(collections, core, io, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,4 @@
#![crate_name= "true"]
#![allow(unstable)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "truncate"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "tsort"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "tty"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "uname"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "unexpand"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "uniq"]
#![allow(unstable)]
#![feature(collections, core, io, path, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "unlink"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "uptime"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "users"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "uutils"]
#![allow(unstable)]
#![feature(core, os, path, rustc_private)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "wc"]
#![allow(unstable)]
#![feature(collections, core, io, libc, path, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "whoami"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private, std_misc)]
/*
* This file is part of the uutils coreutils package.

View file

@ -1,5 +1,5 @@
#![crate_name = "yes"]
#![allow(unstable)]
#![feature(collections, core, io, libc, rustc_private)]
/*
* This file is part of the uutils coreutils package.