diff --git a/base64/base64.rs b/base64/base64.rs index a98d81676..48ec40a67 100644 --- a/base64/base64.rs +++ b/base64/base64.rs @@ -90,9 +90,8 @@ pub fn uumain(args: Vec) { } } -fn main() { - uumain(os::args()); -} +#[allow(dead_code)] +fn main() { uumain(os::args()); } fn decode(input: &mut Reader, ignore_garbage: bool) { let mut to_decode = match input.read_to_str() { diff --git a/basename/basename.rs b/basename/basename.rs index f60a6ace7..be9217b5a 100644 --- a/basename/basename.rs +++ b/basename/basename.rs @@ -23,6 +23,7 @@ mod util; static NAME: &'static str = "basename"; static VERSION: &'static str = "1.0.0"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/cat/cat.rs b/cat/cat.rs index 46ced03a3..c1ebae158 100644 --- a/cat/cat.rs +++ b/cat/cat.rs @@ -19,6 +19,7 @@ use std::io::{print, File}; use std::io::stdio::{stdout_raw, stdin_raw}; use std::io::{BufferedWriter}; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/cksum/cksum.rs b/cksum/cksum.rs index bb4d94bfe..6907a2e40 100644 --- a/cksum/cksum.rs +++ b/cksum/cksum.rs @@ -77,7 +77,8 @@ fn open_file(name: &str) -> IoResult> { } } -pub fn main() { uumain(os::args()); } +#[allow(dead_code)] +fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { let opts = [ diff --git a/comm/comm.rs b/comm/comm.rs index b9e2e2f50..6303b0e3f 100644 --- a/comm/comm.rs +++ b/comm/comm.rs @@ -87,7 +87,8 @@ fn open_file(name: &str) -> IoResult> { } } -pub fn main() { uumain(os::args()); } +#[allow(dead_code)] +fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { let opts = [ diff --git a/cp/cp.rs b/cp/cp.rs index 074c0e822..8bb6ccf18 100644 --- a/cp/cp.rs +++ b/cp/cp.rs @@ -31,6 +31,7 @@ pub enum Mode { Version, } +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/dirname/dirname.rs b/dirname/dirname.rs index 8ae72da43..bebf57545 100644 --- a/dirname/dirname.rs +++ b/dirname/dirname.rs @@ -16,6 +16,7 @@ use std::io::print; static VERSION: &'static str = "1.0.0"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/du/du.rs b/du/du.rs index bc897f033..14dfec99d 100644 --- a/du/du.rs +++ b/du/du.rs @@ -90,6 +90,7 @@ fn du(path: &Path, mut my_stat: Stat, return stats; } +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/echo/echo.rs b/echo/echo.rs index caa49bf9c..deb920a4f 100644 --- a/echo/echo.rs +++ b/echo/echo.rs @@ -69,6 +69,7 @@ fn convert_str(string: &str, index: uint, base: uint) -> (char, int) { return (to_char(&bytes, base), max_digits) } +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/env/env.rs b/env/env.rs index 15a352248..bd303f31f 100644 --- a/env/env.rs +++ b/env/env.rs @@ -53,6 +53,7 @@ fn print_env(null: bool) { } } +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/fold/fold.rs b/fold/fold.rs index 2adfffbbf..e5ccc732b 100644 --- a/fold/fold.rs +++ b/fold/fold.rs @@ -26,6 +26,7 @@ mod util; static NAME: &'static str = "fold"; static VERSION: &'static str = "1.0.0"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/groups/groups.rs b/groups/groups.rs index 2b2c103db..d344e9583 100644 --- a/groups/groups.rs +++ b/groups/groups.rs @@ -25,6 +25,7 @@ use c_types::{get_pw_from_args, group}; static NAME: &'static str = "groups"; +#[allow(dead_code)] fn main () { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/head/head.rs b/head/head.rs index e4bbec498..a9432e5b3 100644 --- a/head/head.rs +++ b/head/head.rs @@ -22,6 +22,7 @@ use getopts::{optopt, optflag, getopts, usage}; static PROGRAM: &'static str = "head"; +#[allow(dead_code)] fn main () { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/hostid/hostid.rs b/hostid/hostid.rs index b05f4d287..6ce2d77e0 100644 --- a/hostid/hostid.rs +++ b/hostid/hostid.rs @@ -49,6 +49,7 @@ extern { pub fn gethostid() -> c_long; } +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/hostname/hostname.rs b/hostname/hostname.rs index af7ec2aaf..f78dd1173 100644 --- a/hostname/hostname.rs +++ b/hostname/hostname.rs @@ -23,6 +23,7 @@ extern { fn sethostname(name: *libc::c_char, namelen: libc::c_int) -> libc::c_int; } +#[allow(dead_code)] fn main () { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/id/id.rs b/id/id.rs index 3d60d7776..cd3c4364d 100644 --- a/id/id.rs +++ b/id/id.rs @@ -87,6 +87,7 @@ extern { static NAME: &'static str = "id"; +#[allow(dead_code)] fn main () { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/kill/kill.rs b/kill/kill.rs index a8fa7ec67..0cf73c9ef 100644 --- a/kill/kill.rs +++ b/kill/kill.rs @@ -52,7 +52,7 @@ pub enum Mode { Version, } - +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/logname/logname.rs b/logname/logname.rs index 1149ae8dd..d237f1615 100644 --- a/logname/logname.rs +++ b/logname/logname.rs @@ -43,6 +43,7 @@ fn version() { println!("{} {}", NAME, VERSION); } +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/mkdir/mkdir.rs b/mkdir/mkdir.rs index 28956a89d..ba71264b8 100644 --- a/mkdir/mkdir.rs +++ b/mkdir/mkdir.rs @@ -28,6 +28,7 @@ static VERSION: &'static str = "1.0.0"; /** * Handles option parsing */ +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/paste/paste.rs b/paste/paste.rs index a8556aef9..202d62ffa 100644 --- a/paste/paste.rs +++ b/paste/paste.rs @@ -23,6 +23,7 @@ mod util; static NAME: &'static str = "paste"; static VERSION: &'static str = "1.0.0"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/printenv/printenv.rs b/printenv/printenv.rs index a167c15e8..20ff04afc 100644 --- a/printenv/printenv.rs +++ b/printenv/printenv.rs @@ -24,6 +24,7 @@ mod util; static NAME: &'static str = "printenv"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/pwd/pwd.rs b/pwd/pwd.rs index 2df6b4c2f..a0ca6fe67 100644 --- a/pwd/pwd.rs +++ b/pwd/pwd.rs @@ -23,6 +23,7 @@ mod util; static NAME: &'static str = "pwd"; static VERSION: &'static str = "1.0.0"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/rm/rm.rs b/rm/rm.rs index 9da2a5ea1..f8f62e6d6 100644 --- a/rm/rm.rs +++ b/rm/rm.rs @@ -29,6 +29,7 @@ enum InteractiveMode { static NAME: &'static str = "rm"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/rmdir/rmdir.rs b/rmdir/rmdir.rs index fd71a84b2..be743412e 100644 --- a/rmdir/rmdir.rs +++ b/rmdir/rmdir.rs @@ -22,6 +22,7 @@ mod util; static NAME: &'static str = "rmdir"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/seq/seq.rs b/seq/seq.rs index 370210489..b077d70d9 100644 --- a/seq/seq.rs +++ b/seq/seq.rs @@ -33,6 +33,7 @@ fn escape_sequences(s: &str) -> String { replace("\\t", "\t") } +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/sleep/sleep.rs b/sleep/sleep.rs index 7380e2597..870ca66f8 100644 --- a/sleep/sleep.rs +++ b/sleep/sleep.rs @@ -23,6 +23,7 @@ mod util; static NAME: &'static str = "sleep"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/sum/sum.rs b/sum/sum.rs index cb7fbbe1f..eb585ea1d 100644 --- a/sum/sum.rs +++ b/sum/sum.rs @@ -76,6 +76,7 @@ fn open(name: &str) -> IoResult> { } } +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/tac/tac.rs b/tac/tac.rs index adab8f74f..1f5bef22f 100644 --- a/tac/tac.rs +++ b/tac/tac.rs @@ -23,6 +23,7 @@ mod util; static NAME: &'static str = "tac"; static VERSION: &'static str = "1.0.0"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/tee/tee.rs b/tee/tee.rs index 345cb040d..9c6791974 100644 --- a/tee/tee.rs +++ b/tee/tee.rs @@ -24,6 +24,7 @@ use getopts::{getopts, optflag, usage}; static NAME: &'static str = "tee"; static VERSION: &'static str = "1.0.0"; +#[allow(dead_code)] fn main() { uumain(args()); } pub fn uumain(args: Vec) { diff --git a/touch/touch.rs b/touch/touch.rs index 25ff0dd48..3d5843edf 100644 --- a/touch/touch.rs +++ b/touch/touch.rs @@ -22,6 +22,7 @@ mod util; static NAME: &'static str = "touch"; static VERSION: &'static str = "1.0.0"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/tr/tr.rs b/tr/tr.rs index f99af6309..5b906564d 100644 --- a/tr/tr.rs +++ b/tr/tr.rs @@ -146,7 +146,9 @@ fn usage(opts: &[OptGroup]) { print(getopts::usage("Translate or delete characters.", opts).as_slice()); } -pub fn main() { uumain(os::args()); } +#[allow(dead_code)] +fn main() { uumain(os::args()); } + pub fn uumain(args: Vec) { let opts = [ getopts::optflag("c", "complement", "use the complement of SET1"), diff --git a/truncate/truncate.rs b/truncate/truncate.rs index ccce94021..98e95a6d5 100644 --- a/truncate/truncate.rs +++ b/truncate/truncate.rs @@ -46,6 +46,7 @@ enum TruncateMode { static NAME: &'static str = "truncate"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/tty/tty.rs b/tty/tty.rs index 2a8143756..b34ff8565 100644 --- a/tty/tty.rs +++ b/tty/tty.rs @@ -34,6 +34,7 @@ extern { static NAME: &'static str = "tty"; +#[allow(dead_code)] fn main () { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/uname/uname.rs b/uname/uname.rs index e6cc63316..5264a0283 100644 --- a/uname/uname.rs +++ b/uname/uname.rs @@ -51,6 +51,7 @@ unsafe fn getuname() -> utsrust { static NAME: &'static str = "uname"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/unlink/unlink.rs b/unlink/unlink.rs index f4c17b195..29ab49092 100644 --- a/unlink/unlink.rs +++ b/unlink/unlink.rs @@ -26,6 +26,7 @@ mod util; static NAME: &'static str = "unlink"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/uptime/uptime.rs b/uptime/uptime.rs index 2dab891cc..e71bd53b9 100644 --- a/uptime/uptime.rs +++ b/uptime/uptime.rs @@ -47,6 +47,7 @@ extern { fn utmpxname(file: *c_char) -> c_int; } +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/users/users.rs b/users/users.rs index 52d705a9b..38aae3fd8 100644 --- a/users/users.rs +++ b/users/users.rs @@ -47,6 +47,7 @@ extern { static NAME: &'static str = "users"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/wc/wc.rs b/wc/wc.rs index 7ae4fd197..4d5d6eca8 100644 --- a/wc/wc.rs +++ b/wc/wc.rs @@ -33,6 +33,7 @@ struct Result { static NAME: &'static str = "wc"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/whoami/whoami.rs b/whoami/whoami.rs index 21e870034..dc1379279 100644 --- a/whoami/whoami.rs +++ b/whoami/whoami.rs @@ -41,6 +41,7 @@ unsafe fn getusername() -> String { static NAME: &'static str = "whoami"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) { diff --git a/yes/yes.rs b/yes/yes.rs index 745390ae3..88d58d797 100644 --- a/yes/yes.rs +++ b/yes/yes.rs @@ -24,6 +24,7 @@ mod util; static NAME: &'static str = "yes"; +#[allow(dead_code)] fn main() { uumain(os::args()); } pub fn uumain(args: Vec) {