Test fixes and rebase conflicts
This commit is contained in:
parent
c10c163377
commit
6fcba8826f
@ -28,7 +28,7 @@
|
||||
//! one function. Currently, the actual symbol is declared in the standard
|
||||
//! library, but the location of this may change over time.
|
||||
|
||||
#![allow(dead_code, missing_doc)]
|
||||
#![allow(dead_code, missing_docs)]
|
||||
|
||||
use fmt;
|
||||
use intrinsics;
|
||||
@ -63,7 +63,7 @@ fn panic_bounds_check(file_line: &(&'static str, uint),
|
||||
#[cfg(stage0)]
|
||||
#[cold] #[inline(never)]
|
||||
pub fn panic_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
|
||||
#[allow(ctypes)]
|
||||
#[allow(improper_ctypes)]
|
||||
extern {
|
||||
#[lang = "fail_fmt"]
|
||||
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))]
|
||||
#[cold] #[inline(never)]
|
||||
pub fn panic_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
|
||||
#[allow(ctypes)]
|
||||
#[allow(improper_ctypes)]
|
||||
extern {
|
||||
#[lang = "panic_fmt"]
|
||||
fn panic_impl(fmt: &fmt::Arguments, file: &'static str,
|
||||
|
@ -79,7 +79,7 @@ fn helper(input: libc::HANDLE, messages: Receiver<Req>, _: ()) {
|
||||
}
|
||||
} else {
|
||||
let remove = {
|
||||
match chans.get_mut(idx as uint - 1) {
|
||||
match &mut chans[idx as uint - 1] {
|
||||
&(ref mut c, oneshot) => { c.call(); oneshot }
|
||||
}
|
||||
};
|
||||
|
@ -254,7 +254,7 @@ impl LintStore {
|
||||
|
||||
}
|
||||
|
||||
#[allow(unused_variable)]
|
||||
#[allow(unused_variables)]
|
||||
fn find_lint(&self, lint_name: &str, sess: &Session, span: Option<Span>)
|
||||
-> Option<LintId>
|
||||
{
|
||||
|
@ -286,6 +286,7 @@ pub mod dl {
|
||||
use os;
|
||||
use ptr;
|
||||
use result::{Ok, Err, Result};
|
||||
use slice::ImmutableSlice;
|
||||
use str::StrSlice;
|
||||
use str;
|
||||
use string::String;
|
||||
|
@ -144,7 +144,7 @@ pub mod windows {
|
||||
use option::{None, Option};
|
||||
use option;
|
||||
use os::TMPBUF_SZ;
|
||||
use slice::MutableSlice;
|
||||
use slice::{MutableSlice, ImmutableSlice};
|
||||
use string::String;
|
||||
use str::StrSlice;
|
||||
use vec::Vec;
|
||||
|
@ -540,7 +540,7 @@ fn mk_delim(cx: &ExtCtxt, sp: Span, delim: token::DelimToken) -> P<ast::Expr> {
|
||||
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> {
|
||||
match *tok {
|
||||
token::BinOp(binop) => {
|
||||
|
@ -110,10 +110,10 @@ pub enum DelimToken {
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
#[allow(non_uppercase_statics)]
|
||||
#[allow(non_upper_case_globals)]
|
||||
pub const ModName: bool = true;
|
||||
#[cfg(stage0)]
|
||||
#[allow(non_uppercase_statics)]
|
||||
#[allow(non_upper_case_globals)]
|
||||
pub const Plain: bool = false;
|
||||
|
||||
#[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 `::`
|
||||
/// 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 {
|
||||
match *self {
|
||||
Ident(_, Plain) => true,
|
||||
@ -311,7 +311,7 @@ impl Token {
|
||||
}
|
||||
|
||||
/// 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 {
|
||||
match *self {
|
||||
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
|
||||
/// 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 {
|
||||
match *self {
|
||||
Ident(sid, Plain) => {
|
||||
@ -338,7 +338,7 @@ impl Token {
|
||||
}
|
||||
|
||||
/// 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 {
|
||||
match *self {
|
||||
Ident(sid, Plain) => {
|
||||
@ -364,7 +364,7 @@ impl Token {
|
||||
|
||||
/// Returns `true` if the token is a keyword that has been reserved for
|
||||
/// 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 {
|
||||
match *self {
|
||||
Ident(sid, Plain) => {
|
||||
|
@ -14,8 +14,8 @@ fn main() {
|
||||
let f = foo;
|
||||
let f_closure: || = f;
|
||||
//~^ 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;
|
||||
//~^ 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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user