Skip to content

Commit

Permalink
Remove references to old_{path,io}
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Apr 21, 2015
1 parent fe7f95f commit 71bc70e
Show file tree
Hide file tree
Showing 19 changed files with 12 additions and 36 deletions.
2 changes: 0 additions & 2 deletions src/libcollections/fmt.rs
Expand Up @@ -262,7 +262,6 @@
//! Example usage is:
//!
//! ```
//! # #![feature(old_io)]
//! # #![allow(unused_must_use)]
//! use std::io::Write;
//! let mut w = Vec::new();
Expand Down Expand Up @@ -290,7 +289,6 @@
//! off, some example usage is:
//!
//! ```
//! # #![feature(old_io)]
//! use std::fmt;
//! use std::io::{self, Write};
//!
Expand Down
2 changes: 1 addition & 1 deletion src/libserialize/json.rs
Expand Up @@ -2059,7 +2059,7 @@ impl<T: Iterator<Item=char>> Builder<T> {
}
}

/// Decodes a json value from an `&mut old_io::Reader`
/// Decodes a json value from an `&mut io::Read`
pub fn from_reader(rdr: &mut Read) -> Result<Json, BuilderError> {
let mut contents = Vec::new();
match rdr.read_to_end(&mut contents) {
Expand Down
1 change: 0 additions & 1 deletion src/libstd/panicking.rs
Expand Up @@ -19,7 +19,6 @@ use rt::{backtrace, unwind};
use sys::stdio::Stderr;
use thread;

// Defined in this module instead of old_io::stdio so that the unwinding
thread_local! {
pub static LOCAL_STDERR: RefCell<Option<Box<Write + Send>>> = {
RefCell::new(None)
Expand Down
1 change: 0 additions & 1 deletion src/libtest/lib.rs
Expand Up @@ -43,7 +43,6 @@
#![feature(std_misc)]
#![feature(libc)]
#![feature(set_stdio)]
#![cfg_attr(test, feature(old_io))]

extern crate getopts;
extern crate serialize;
Expand Down
2 changes: 1 addition & 1 deletion src/test/auxiliary/linkage-visibility.rs
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(std_misc, old_path)]
#![feature(std_misc)]

use std::dynamic_lib::DynamicLibrary;

Expand Down
2 changes: 0 additions & 2 deletions src/test/debuginfo/issue13213.rs
Expand Up @@ -12,8 +12,6 @@

// aux-build:issue13213aux.rs

#![feature(old_io)]

extern crate issue13213aux;

// compile-flags:-g
Expand Down
Expand Up @@ -8,8 +8,6 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(old_io, old_path)]

use std::env;
use std::fs::File;
use std::process::Command;
Expand Down
3 changes: 1 addition & 2 deletions src/test/run-make/extern-fn-reachable/main.rs
Expand Up @@ -8,10 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(std_misc, old_path, os)]
#![feature(std_misc)]

use std::dynamic_lib::DynamicLibrary;
use std::os;
use std::path::Path;

pub fn main() {
Expand Down
4 changes: 1 addition & 3 deletions src/test/run-pass/closure-reform.rs
Expand Up @@ -11,9 +11,7 @@
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */

#![feature(unboxed_closures, old_io)]

use std::mem;
#![feature(unboxed_closures)]

fn call_it<F>(f: F)
where F : FnOnce(String) -> String
Expand Down
2 changes: 0 additions & 2 deletions src/test/run-pass/issue-10626.rs
Expand Up @@ -12,8 +12,6 @@
// Make sure that if a process doesn't have its stdio/stderr descriptors set up
// that we don't die in a large ball of fire

#![feature(old_io)]

use std::env;
use std::process::{Command, Stdio};

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/issue-11881.rs
Expand Up @@ -9,7 +9,7 @@
// except according to those terms.


#![feature(rustc_private, old_io)]
#![feature(rustc_private)]

extern crate rbml;
extern crate serialize;
Expand Down
2 changes: 0 additions & 2 deletions src/test/run-pass/issue-14940.rs
Expand Up @@ -9,8 +9,6 @@
// except according to those terms.


#![feature(old_io, io)]

use std::env;
use std::process::Command;
use std::io::{self, Write};
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/linkage-visibility.rs
Expand Up @@ -12,7 +12,7 @@
// ignore-android: FIXME(#10379)
// ignore-windows: std::dynamic_lib does not work on Windows well

#![feature(std_misc, old_path)]
#![feature(std_misc)]

extern crate linkage_visibility as foo;

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/logging-separate-lines.rs
Expand Up @@ -12,7 +12,7 @@
// exec-env:RUST_LOG=debug
// compile-flags:-C debug-assertions=y

#![feature(old_io, rustc_private)]
#![feature(rustc_private)]

#[macro_use]
extern crate log;
Expand Down
Expand Up @@ -13,9 +13,8 @@
// temporary. Issue #19147.


#![feature(core, old_io)]
#![feature(core)]

use std::mem;
use std::slice;

pub type IoResult<T> = Result<T, ()>;
Expand Down
4 changes: 1 addition & 3 deletions src/test/run-pass/process-spawn-with-unicode-params.rs
Expand Up @@ -17,15 +17,13 @@
// intact.

// ignore-aarch64
#![feature(path, fs, os, io, old_path)]

use std::io::prelude::*;
use std::io;
use std::fs;
use std::process::Command;
use std::os;
use std::env;
use std::path::{Path, PathBuf};
use std::path::Path;

fn main() {
let my_args = env::args().collect::<Vec<_>>();
Expand Down
6 changes: 1 addition & 5 deletions src/test/run-pass/running-with-no-runtime.rs
Expand Up @@ -8,16 +8,12 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(start, os, std_misc, old_io)]
#![feature(start, std_misc)]

use std::ffi::CStr;
use std::process::{Command, Output};
use std::os;
use std::rt::unwind::try;
use std::rt;
use std::str;
use std::thread::Thread;
use std::thunk::Thunk;

#[start]
fn start(argc: isize, argv: *const *const u8) -> isize {
Expand Down
3 changes: 1 addition & 2 deletions src/test/run-pass/task-stderr.rs
Expand Up @@ -10,8 +10,7 @@

// pretty-expanded FIXME #23616

#![allow(unknown_features)]
#![feature(box_syntax, old_io, std_misc, io, set_panic, set_stdio)]
#![feature(box_syntax, set_stdio)]

use std::io::prelude::*;
use std::io;
Expand Down
3 changes: 1 addition & 2 deletions src/test/run-pass/trait-coercion.rs
Expand Up @@ -8,8 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![allow(unknown_features)]
#![feature(box_syntax, old_io, io)]
#![feature(box_syntax)]

use std::io::{self, Write};

Expand Down

0 comments on commit 71bc70e

Please sign in to comment.