Test fixes and rebase conflicts

This commit is contained in:
Alex Crichton 2014-10-30 09:13:02 -07:00
parent c10c163377
commit 6fcba8826f
8 changed files with 17 additions and 16 deletions

View File

@ -28,7 +28,7 @@
//! one function. Currently, the actual symbol is declared in the standard //! one function. Currently, the actual symbol is declared in the standard
//! library, but the location of this may change over time. //! library, but the location of this may change over time.
#![allow(dead_code, missing_doc)] #![allow(dead_code, missing_docs)]
use fmt; use fmt;
use intrinsics; use intrinsics;
@ -63,7 +63,7 @@ fn panic_bounds_check(file_line: &(&'static str, uint),
#[cfg(stage0)] #[cfg(stage0)]
#[cold] #[inline(never)] #[cold] #[inline(never)]
pub fn panic_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! { pub fn panic_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
#[allow(ctypes)] #[allow(improper_ctypes)]
extern { extern {
#[lang = "fail_fmt"] #[lang = "fail_fmt"]
fn panic_impl(fmt: &fmt::Arguments, file: &'static str, fn panic_impl(fmt: &fmt::Arguments, file: &'static str,
@ -104,7 +104,7 @@ fn panic_bounds_check(file_line: &(&'static str, uint),
#[cfg(not(stage0))] #[cfg(not(stage0))]
#[cold] #[inline(never)] #[cold] #[inline(never)]
pub fn panic_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! { pub fn panic_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
#[allow(ctypes)] #[allow(improper_ctypes)]
extern { extern {
#[lang = "panic_fmt"] #[lang = "panic_fmt"]
fn panic_impl(fmt: &fmt::Arguments, file: &'static str, fn panic_impl(fmt: &fmt::Arguments, file: &'static str,

View File

@ -79,7 +79,7 @@ fn helper(input: libc::HANDLE, messages: Receiver<Req>, _: ()) {
} }
} else { } else {
let remove = { let remove = {
match chans.get_mut(idx as uint - 1) { match &mut chans[idx as uint - 1] {
&(ref mut c, oneshot) => { c.call(); oneshot } &(ref mut c, oneshot) => { c.call(); oneshot }
} }
}; };

View File

@ -254,7 +254,7 @@ impl LintStore {
} }
#[allow(unused_variable)] #[allow(unused_variables)]
fn find_lint(&self, lint_name: &str, sess: &Session, span: Option<Span>) fn find_lint(&self, lint_name: &str, sess: &Session, span: Option<Span>)
-> Option<LintId> -> Option<LintId>
{ {

View File

@ -286,6 +286,7 @@ pub mod dl {
use os; use os;
use ptr; use ptr;
use result::{Ok, Err, Result}; use result::{Ok, Err, Result};
use slice::ImmutableSlice;
use str::StrSlice; use str::StrSlice;
use str; use str;
use string::String; use string::String;

View File

@ -144,7 +144,7 @@ pub mod windows {
use option::{None, Option}; use option::{None, Option};
use option; use option;
use os::TMPBUF_SZ; use os::TMPBUF_SZ;
use slice::MutableSlice; use slice::{MutableSlice, ImmutableSlice};
use string::String; use string::String;
use str::StrSlice; use str::StrSlice;
use vec::Vec; use vec::Vec;

View File

@ -540,7 +540,7 @@ fn mk_delim(cx: &ExtCtxt, sp: Span, delim: token::DelimToken) -> P<ast::Expr> {
mk_token_path(cx, sp, name) mk_token_path(cx, sp, name)
} }
#[allow(non_uppercase_statics)] // NOTE(stage0): remove this attribute after the next snapshot #[allow(non_upper_case_globals)]
fn mk_token(cx: &ExtCtxt, sp: Span, tok: &token::Token) -> P<ast::Expr> { fn mk_token(cx: &ExtCtxt, sp: Span, tok: &token::Token) -> P<ast::Expr> {
match *tok { match *tok {
token::BinOp(binop) => { token::BinOp(binop) => {

View File

@ -110,10 +110,10 @@ pub enum DelimToken {
} }
#[cfg(stage0)] #[cfg(stage0)]
#[allow(non_uppercase_statics)] #[allow(non_upper_case_globals)]
pub const ModName: bool = true; pub const ModName: bool = true;
#[cfg(stage0)] #[cfg(stage0)]
#[allow(non_uppercase_statics)] #[allow(non_upper_case_globals)]
pub const Plain: bool = false; pub const Plain: bool = false;
#[deriving(Clone, Encodable, Decodable, PartialEq, Eq, Hash, Show)] #[deriving(Clone, Encodable, Decodable, PartialEq, Eq, Hash, Show)]
@ -263,7 +263,7 @@ impl Token {
/// Returns `true` if the token is a path that is not followed by a `::` /// Returns `true` if the token is a path that is not followed by a `::`
/// token. /// token.
#[allow(non_uppercase_statics)] // NOTE(stage0): remove this attribute after the next snapshot #[allow(non_upper_case_globals)]
pub fn is_plain_ident(&self) -> bool { pub fn is_plain_ident(&self) -> bool {
match *self { match *self {
Ident(_, Plain) => true, Ident(_, Plain) => true,
@ -311,7 +311,7 @@ impl Token {
} }
/// Returns `true` if the token is a given keyword, `kw`. /// Returns `true` if the token is a given keyword, `kw`.
#[allow(non_uppercase_statics)] // NOTE(stage0): remove this attribute after the next snapshot #[allow(non_upper_case_globals)]
pub fn is_keyword(&self, kw: keywords::Keyword) -> bool { pub fn is_keyword(&self, kw: keywords::Keyword) -> bool {
match *self { match *self {
Ident(sid, Plain) => kw.to_name() == sid.name, Ident(sid, Plain) => kw.to_name() == sid.name,
@ -321,7 +321,7 @@ impl Token {
/// Returns `true` if the token is either a special identifier, or a strict /// Returns `true` if the token is either a special identifier, or a strict
/// or reserved keyword. /// or reserved keyword.
#[allow(non_uppercase_statics)] // NOTE(stage0): remove this attribute after the next snapshot #[allow(non_upper_case_globals)]
pub fn is_any_keyword(&self) -> bool { pub fn is_any_keyword(&self) -> bool {
match *self { match *self {
Ident(sid, Plain) => { Ident(sid, Plain) => {
@ -338,7 +338,7 @@ impl Token {
} }
/// Returns `true` if the token may not appear as an identifier. /// Returns `true` if the token may not appear as an identifier.
#[allow(non_uppercase_statics)] // NOTE(stage0): remove this attribute after the next snapshot #[allow(non_upper_case_globals)]
pub fn is_strict_keyword(&self) -> bool { pub fn is_strict_keyword(&self) -> bool {
match *self { match *self {
Ident(sid, Plain) => { Ident(sid, Plain) => {
@ -364,7 +364,7 @@ impl Token {
/// Returns `true` if the token is a keyword that has been reserved for /// Returns `true` if the token is a keyword that has been reserved for
/// possible future use. /// possible future use.
#[allow(non_uppercase_statics)] // NOTE(stage0): remove this attribute after the next snapshot #[allow(non_upper_case_globals)]
pub fn is_reserved_keyword(&self) -> bool { pub fn is_reserved_keyword(&self) -> bool {
match *self { match *self {
Ident(sid, Plain) => { Ident(sid, Plain) => {

View File

@ -14,8 +14,8 @@ fn main() {
let f = foo; let f = foo;
let f_closure: || = f; let f_closure: || = f;
//~^ ERROR: cannot coerce non-statically resolved bare fn to closure //~^ ERROR: cannot coerce non-statically resolved bare fn to closure
//~^ HELP: consider embedding the function in a closure //~^^ HELP: consider embedding the function in a closure
let f_proc: proc() = f; let f_proc: proc() = f;
//~^ ERROR: cannot coerce non-statically resolved bare fn to closure //~^ ERROR: cannot coerce non-statically resolved bare fn to closure
//~^ HELP: consider embedding the function in a closure //~^^ HELP: consider embedding the function in a closure
} }