From 25297ec2b3c9455f0f2fd8a7d45020721abe166f Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 13 Nov 2013 12:17:41 +0100 Subject: [PATCH] std::rt::io -> std::io --- cat/cat.rs | 2 +- env/env.rs | 2 +- printenv/printenv.rs | 2 +- whoami/whoami.rs | 1 - yes/yes.rs | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cat/cat.rs b/cat/cat.rs index 2d7e82446..f52c0b489 100644 --- a/cat/cat.rs +++ b/cat/cat.rs @@ -15,7 +15,7 @@ extern mod extra; use std::os; -use std::rt::io::{stdin, stderr, stdout, File, result}; +use std::io::{stdin, stderr, stdout, File, result}; use extra::getopts::groups; fn main() { diff --git a/env/env.rs b/env/env.rs index 1c7e7f6ba..a1b23b9b8 100644 --- a/env/env.rs +++ b/env/env.rs @@ -192,7 +192,7 @@ fn main() { [ref prog, ..args] => { let exit = std::run::process_status(prog.as_slice(), args.as_slice()); match exit { - std::rt::io::process::ExitStatus(status) => std::os::set_exit_status(status), + std::io::process::ExitStatus(status) => std::os::set_exit_status(status), _ => std::os::set_exit_status(1) } } diff --git a/printenv/printenv.rs b/printenv/printenv.rs index 17338a26f..b2e3fc1f5 100644 --- a/printenv/printenv.rs +++ b/printenv/printenv.rs @@ -14,7 +14,7 @@ extern mod extra; use std::os; -use std::rt::io::stderr; +use std::io::stderr; use extra::getopts::groups; fn main() { diff --git a/whoami/whoami.rs b/whoami/whoami.rs index 54e73695a..750d8036b 100644 --- a/whoami/whoami.rs +++ b/whoami/whoami.rs @@ -29,7 +29,6 @@ extern { } #[fixed_stack_segment] -#[deny(cstack)] unsafe fn getusername() -> ~str { let passwd: *c_passwd = getpwuid(geteuid()); diff --git a/yes/yes.rs b/yes/yes.rs index a08e91cb9..a494e1b42 100644 --- a/yes/yes.rs +++ b/yes/yes.rs @@ -14,7 +14,7 @@ extern mod extra; use std::os; -use std::rt::io::stderr; +use std::io::stderr; use extra::getopts::groups; fn main() {