1
Fork 0

Fallout of io => old_io

This commit is contained in:
Alex Crichton 2015-01-22 16:31:00 -08:00
parent f72b164510
commit 3a07f859b8
158 changed files with 607 additions and 605 deletions

View file

@ -14,8 +14,8 @@
#![allow(unstable)]
#![deny(non_snake_case)]
use std::io::File;
use std::io::IoError;
use std::old_io::File;
use std::old_io::IoError;
struct Something {
X: usize //~ ERROR structure field `X` should have a snake case name such as `x`
@ -35,7 +35,7 @@ fn main() {
Ok(cnt) => println!("read this many bytes: {}", cnt),
Err(IoError{ kind: EndOfFile, .. }) => println!("Got end of file: {:?}", EndOfFile),
//~^ ERROR variable `EndOfFile` should have a snake case name such as `end_of_file`
//~^^ WARN `EndOfFile` is named the same as one of the variants of the type `std::io::IoErrorKind`
//~^^ WARN `EndOfFile` is named the same as one of the variants of the type `std::old_io::IoErrorKind`
}
test(1);