1
Fork 0

rollup merge of #22459: alexcrichton/feature-names

Conflicts:
	src/rustbook/main.rs
This commit is contained in:
Alex Crichton 2015-02-17 15:16:22 -08:00
commit d8ba8b00a7
18 changed files with 36 additions and 37 deletions

View file

@ -13,8 +13,8 @@
#![feature(box_syntax)] #![feature(box_syntax)]
#![feature(collections)] #![feature(collections)]
#![feature(int_uint)] #![feature(int_uint)]
#![feature(io)] #![feature(old_io)]
#![feature(path)] #![feature(old_path)]
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(unboxed_closures)] #![feature(unboxed_closures)]
#![feature(std_misc)] #![feature(std_misc)]

View file

@ -276,7 +276,7 @@
#![feature(int_uint)] #![feature(int_uint)]
#![feature(collections)] #![feature(collections)]
#![feature(core)] #![feature(core)]
#![feature(io)] #![feature(old_io)]
use self::LabelText::*; use self::LabelText::*;

View file

@ -171,7 +171,7 @@
#![feature(box_syntax)] #![feature(box_syntax)]
#![feature(int_uint)] #![feature(int_uint)]
#![feature(core)] #![feature(core)]
#![feature(io)] #![feature(old_io)]
#![feature(std_misc)] #![feature(std_misc)]
#![feature(env)] #![feature(env)]

View file

@ -28,7 +28,7 @@
#![feature(collections)] #![feature(collections)]
#![feature(core)] #![feature(core)]
#![feature(int_uint)] #![feature(int_uint)]
#![feature(io)] #![feature(old_io)]
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(staged_api)] #![feature(staged_api)]

View file

@ -29,10 +29,10 @@
#![feature(core)] #![feature(core)]
#![feature(hash)] #![feature(hash)]
#![feature(int_uint)] #![feature(int_uint)]
#![feature(io)] #![feature(old_io)]
#![feature(libc)] #![feature(libc)]
#![feature(env)] #![feature(env)]
#![feature(path)] #![feature(old_path)]
#![feature(quote)] #![feature(quote)]
#![feature(rustc_diagnostic_macros)] #![feature(rustc_diagnostic_macros)]
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -35,9 +35,9 @@
#![feature(core)] #![feature(core)]
#![feature(hash)] #![feature(hash)]
#![feature(int_uint)] #![feature(int_uint)]
#![feature(io)] #![feature(old_io)]
#![feature(os)] #![feature(os)]
#![feature(path)] #![feature(old_path)]
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(staged_api)] #![feature(staged_api)]
#![feature(env)] #![feature(env)]

View file

@ -28,10 +28,10 @@
#![feature(core)] #![feature(core)]
#![feature(env)] #![feature(env)]
#![feature(int_uint)] #![feature(int_uint)]
#![feature(io)] #![feature(old_io)]
#![feature(libc)] #![feature(libc)]
#![feature(os)] #![feature(os)]
#![feature(path)] #![feature(old_path)]
#![feature(quote)] #![feature(quote)]
#![feature(rustc_diagnostic_macros)] #![feature(rustc_diagnostic_macros)]
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -29,7 +29,7 @@
#![feature(int_uint)] #![feature(int_uint)]
#![feature(libc)] #![feature(libc)]
#![feature(link_args)] #![feature(link_args)]
#![feature(path)] #![feature(old_path)]
#![feature(staged_api)] #![feature(staged_api)]
#![feature(std_misc)] #![feature(std_misc)]

View file

@ -30,10 +30,10 @@
#![feature(core)] #![feature(core)]
#![feature(hash)] #![feature(hash)]
#![feature(int_uint)] #![feature(int_uint)]
#![feature(io)] #![feature(old_io)]
#![feature(env)] #![feature(env)]
#![feature(libc)] #![feature(libc)]
#![feature(path)] #![feature(old_path)]
#![feature(quote)] #![feature(quote)]
#![feature(rustc_diagnostic_macros)] #![feature(rustc_diagnostic_macros)]
#![feature(rustc_private)] #![feature(rustc_private)]

View file

@ -25,10 +25,10 @@
#![feature(env)] #![feature(env)]
#![feature(hash)] #![feature(hash)]
#![feature(int_uint)] #![feature(int_uint)]
#![feature(io)] #![feature(old_io)]
#![feature(libc)] #![feature(libc)]
#![feature(os)] #![feature(os)]
#![feature(path)] #![feature(old_path)]
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(staged_api)] #![feature(staged_api)]
#![feature(std_misc)] #![feature(std_misc)]

View file

@ -29,8 +29,8 @@ Core encoding and decoding interfaces.
#![feature(collections)] #![feature(collections)]
#![feature(core)] #![feature(core)]
#![feature(int_uint)] #![feature(int_uint)]
#![feature(io)] #![feature(old_io)]
#![feature(path)] #![feature(old_path)]
#![feature(hash)] #![feature(hash)]
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(staged_api)] #![feature(staged_api)]

View file

@ -238,7 +238,7 @@
//! concerned with error handling; instead its caller is responsible for //! concerned with error handling; instead its caller is responsible for
//! responding to errors that may occur while attempting to read the numbers. //! responding to errors that may occur while attempting to read the numbers.
#![unstable(feature = "io")] #![unstable(feature = "old_io")]
#![deny(unused_must_use)] #![deny(unused_must_use)]
pub use self::SeekStyle::*; pub use self::SeekStyle::*;

View file

@ -59,7 +59,7 @@
//! println!("path exists: {}", path.exists()); //! println!("path exists: {}", path.exists());
//! ``` //! ```
#![unstable(feature = "path")] #![unstable(feature = "old_path")]
use core::marker::Sized; use core::marker::Sized;
use ffi::CString; use ffi::CString;

View file

@ -30,9 +30,9 @@
#![feature(env)] #![feature(env)]
#![feature(hash)] #![feature(hash)]
#![feature(int_uint)] #![feature(int_uint)]
#![feature(io)] #![feature(old_io)]
#![feature(libc)] #![feature(libc)]
#![feature(path)] #![feature(old_path)]
#![feature(quote, unsafe_destructor)] #![feature(quote, unsafe_destructor)]
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(staged_api)] #![feature(staged_api)]

View file

@ -54,8 +54,8 @@
#![feature(box_syntax)] #![feature(box_syntax)]
#![feature(collections)] #![feature(collections)]
#![feature(int_uint)] #![feature(int_uint)]
#![feature(io)] #![feature(old_io)]
#![feature(path)] #![feature(old_path)]
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(staged_api)] #![feature(staged_api)]
#![feature(unicode)] #![feature(unicode)]

View file

@ -39,8 +39,8 @@
#![feature(env)] #![feature(env)]
#![feature(hash)] #![feature(hash)]
#![feature(int_uint)] #![feature(int_uint)]
#![feature(io)] #![feature(old_io)]
#![feature(path)] #![feature(old_path)]
#![feature(rustc_private)] #![feature(rustc_private)]
#![feature(staged_api)] #![feature(staged_api)]
#![feature(std_misc)] #![feature(std_misc)]

View file

@ -11,10 +11,10 @@
#![feature(box_syntax)] #![feature(box_syntax)]
#![feature(collections)] #![feature(collections)]
#![feature(core)] #![feature(core)]
#![feature(io)] #![feature(old_io)]
#![feature(os)] #![feature(os)]
#![feature(env)] #![feature(env)]
#![feature(path)] #![feature(old_path)]
#![feature(rustdoc)] #![feature(rustdoc)]
extern crate rustdoc; extern crate rustdoc;

View file

@ -12,12 +12,14 @@
#![allow(dead_code)] #![allow(dead_code)]
#![deny(non_snake_case)] #![deny(non_snake_case)]
#![feature(path)]
#![feature(io)]
use std::old_io::File; use std::old_io::File;
use std::old_io::IoError; use std::old_io::IoError;
mod foo {
pub enum Foo { Foo }
}
struct Something { struct Something {
X: usize //~ ERROR structure field `X` should have a snake case name such as `x` X: usize //~ ERROR structure field `X` should have a snake case name such as `x`
} }
@ -30,13 +32,10 @@ fn main() {
let Test: usize = 0; //~ ERROR variable `Test` should have a snake case name such as `test` let Test: usize = 0; //~ ERROR variable `Test` should have a snake case name such as `test`
println!("{}", Test); println!("{}", Test);
let mut f = File::open(&Path::new("something.txt")); match foo::Foo::Foo {
let mut buff = [0u8; 16]; Foo => {}
match f.read(&mut buff) { //~^ ERROR variable `Foo` should have a snake case name such as `foo`
Ok(cnt) => println!("read this many bytes: {}", cnt), //~^^ WARN `Foo` is named the same as one of the variants of the type `foo::Foo`
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::old_io::IoErrorKind`
} }
test(1); test(1);