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::old_io::{File, Truncate, ReadWrite};
use std::os; use std::os;
use std::path::Path; use std::path::Path;
static TEMPLATE: &'static str = "\ static TEMPLATE: &'static str = "\
#![allow(unstable)] #![feature(os)]
extern crate \"@UTIL_CRATE@\" as uu@UTIL_CRATE@; extern crate \"@UTIL_CRATE@\" as uu@UTIL_CRATE@;
use std::os; 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::old_io::{File, Truncate, Write};
use std::os; use std::os;

View file

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

View file

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

View file

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

View file

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

View file

@ -1,5 +1,5 @@
#![crate_name = "chroot"] #![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. * This file is part of the uutils coreutils package.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,5 +1,5 @@
#![crate_name = "du"] #![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. * This file is part of the uutils coreutils package.

View file

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

2
src/env/env.rs vendored
View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,5 +1,5 @@
#![crate_name = "nohup"] #![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. * This file is part of the uutils coreutils package.

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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