Remove references to old_{path,io}

This commit is contained in:
Tamir Duberstein 2015-04-20 19:01:20 -07:00
parent fe7f95fb3c
commit 71bc70ea1b
19 changed files with 12 additions and 36 deletions

View file

@ -262,7 +262,6 @@
//! Example usage is:
//!
//! ```
//! # #![feature(old_io)]
//! # #![allow(unused_must_use)]
//! use std::io::Write;
//! let mut w = Vec::new();
@ -290,7 +289,6 @@
//! off, some example usage is:
//!
//! ```
//! # #![feature(old_io)]
//! use std::fmt;
//! use std::io::{self, Write};
//!

View file

@ -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) {

View file

@ -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)

View file

@ -43,7 +43,6 @@
#![feature(std_misc)]
#![feature(libc)]
#![feature(set_stdio)]
#![cfg_attr(test, feature(old_io))]
extern crate getopts;
extern crate serialize;

View file

@ -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;

View file

@ -12,8 +12,6 @@
// aux-build:issue13213aux.rs
#![feature(old_io)]
extern crate issue13213aux;
// compile-flags:-g

View file

@ -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;

View file

@ -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() {

View file

@ -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

View file

@ -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};

View file

@ -9,7 +9,7 @@
// except according to those terms.
#![feature(rustc_private, old_io)]
#![feature(rustc_private)]
extern crate rbml;
extern crate serialize;

View file

@ -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};

View file

@ -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;

View file

@ -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;

View file

@ -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, ()>;

View file

@ -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<_>>();

View file

@ -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 {

View file

@ -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;

View file

@ -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};