Skip to content

Commit 6fcba88

Browse files
committed
Test fixes and rebase conflicts
1 parent c10c163 commit 6fcba88

File tree

8 files changed

+17
-16
lines changed

8 files changed

+17
-16
lines changed

src/libcore/panicking.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
//! one function. Currently, the actual symbol is declared in the standard
2929
//! library, but the location of this may change over time.
3030
31-
#![allow(dead_code, missing_doc)]
31+
#![allow(dead_code, missing_docs)]
3232

3333
use fmt;
3434
use intrinsics;
@@ -63,7 +63,7 @@ fn panic_bounds_check(file_line: &(&'static str, uint),
6363
#[cfg(stage0)]
6464
#[cold] #[inline(never)]
6565
pub fn panic_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
66-
#[allow(ctypes)]
66+
#[allow(improper_ctypes)]
6767
extern {
6868
#[lang = "fail_fmt"]
6969
fn panic_impl(fmt: &fmt::Arguments, file: &'static str,
@@ -104,7 +104,7 @@ fn panic_bounds_check(file_line: &(&'static str, uint),
104104
#[cfg(not(stage0))]
105105
#[cold] #[inline(never)]
106106
pub fn panic_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
107-
#[allow(ctypes)]
107+
#[allow(improper_ctypes)]
108108
extern {
109109
#[lang = "panic_fmt"]
110110
fn panic_impl(fmt: &fmt::Arguments, file: &'static str,

src/libnative/io/timer_windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ fn helper(input: libc::HANDLE, messages: Receiver<Req>, _: ()) {
7979
}
8080
} else {
8181
let remove = {
82-
match chans.get_mut(idx as uint - 1) {
82+
match &mut chans[idx as uint - 1] {
8383
&(ref mut c, oneshot) => { c.call(); oneshot }
8484
}
8585
};

src/librustc/lint/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ impl LintStore {
254254

255255
}
256256

257-
#[allow(unused_variable)]
257+
#[allow(unused_variables)]
258258
fn find_lint(&self, lint_name: &str, sess: &Session, span: Option<Span>)
259259
-> Option<LintId>
260260
{

src/libstd/dynamic_lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ pub mod dl {
286286
use os;
287287
use ptr;
288288
use result::{Ok, Err, Result};
289+
use slice::ImmutableSlice;
289290
use str::StrSlice;
290291
use str;
291292
use string::String;

src/libstd/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ pub mod windows {
144144
use option::{None, Option};
145145
use option;
146146
use os::TMPBUF_SZ;
147-
use slice::MutableSlice;
147+
use slice::{MutableSlice, ImmutableSlice};
148148
use string::String;
149149
use str::StrSlice;
150150
use vec::Vec;

src/libsyntax/ext/quote.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ fn mk_delim(cx: &ExtCtxt, sp: Span, delim: token::DelimToken) -> P<ast::Expr> {
540540
mk_token_path(cx, sp, name)
541541
}
542542

543-
#[allow(non_uppercase_statics)] // NOTE(stage0): remove this attribute after the next snapshot
543+
#[allow(non_upper_case_globals)]
544544
fn mk_token(cx: &ExtCtxt, sp: Span, tok: &token::Token) -> P<ast::Expr> {
545545
match *tok {
546546
token::BinOp(binop) => {

src/libsyntax/parse/token.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ pub enum DelimToken {
110110
}
111111

112112
#[cfg(stage0)]
113-
#[allow(non_uppercase_statics)]
113+
#[allow(non_upper_case_globals)]
114114
pub const ModName: bool = true;
115115
#[cfg(stage0)]
116-
#[allow(non_uppercase_statics)]
116+
#[allow(non_upper_case_globals)]
117117
pub const Plain: bool = false;
118118

119119
#[deriving(Clone, Encodable, Decodable, PartialEq, Eq, Hash, Show)]
@@ -263,7 +263,7 @@ impl Token {
263263

264264
/// Returns `true` if the token is a path that is not followed by a `::`
265265
/// token.
266-
#[allow(non_uppercase_statics)] // NOTE(stage0): remove this attribute after the next snapshot
266+
#[allow(non_upper_case_globals)]
267267
pub fn is_plain_ident(&self) -> bool {
268268
match *self {
269269
Ident(_, Plain) => true,
@@ -311,7 +311,7 @@ impl Token {
311311
}
312312

313313
/// Returns `true` if the token is a given keyword, `kw`.
314-
#[allow(non_uppercase_statics)] // NOTE(stage0): remove this attribute after the next snapshot
314+
#[allow(non_upper_case_globals)]
315315
pub fn is_keyword(&self, kw: keywords::Keyword) -> bool {
316316
match *self {
317317
Ident(sid, Plain) => kw.to_name() == sid.name,
@@ -321,7 +321,7 @@ impl Token {
321321

322322
/// Returns `true` if the token is either a special identifier, or a strict
323323
/// or reserved keyword.
324-
#[allow(non_uppercase_statics)] // NOTE(stage0): remove this attribute after the next snapshot
324+
#[allow(non_upper_case_globals)]
325325
pub fn is_any_keyword(&self) -> bool {
326326
match *self {
327327
Ident(sid, Plain) => {
@@ -338,7 +338,7 @@ impl Token {
338338
}
339339

340340
/// Returns `true` if the token may not appear as an identifier.
341-
#[allow(non_uppercase_statics)] // NOTE(stage0): remove this attribute after the next snapshot
341+
#[allow(non_upper_case_globals)]
342342
pub fn is_strict_keyword(&self) -> bool {
343343
match *self {
344344
Ident(sid, Plain) => {
@@ -364,7 +364,7 @@ impl Token {
364364

365365
/// Returns `true` if the token is a keyword that has been reserved for
366366
/// possible future use.
367-
#[allow(non_uppercase_statics)] // NOTE(stage0): remove this attribute after the next snapshot
367+
#[allow(non_upper_case_globals)]
368368
pub fn is_reserved_keyword(&self) -> bool {
369369
match *self {
370370
Ident(sid, Plain) => {

src/test/compile-fail/coerce-bare-fn-to-closure-and-proc.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ fn main() {
1414
let f = foo;
1515
let f_closure: || = f;
1616
//~^ ERROR: cannot coerce non-statically resolved bare fn to closure
17-
//~^ HELP: consider embedding the function in a closure
17+
//~^^ HELP: consider embedding the function in a closure
1818
let f_proc: proc() = f;
1919
//~^ ERROR: cannot coerce non-statically resolved bare fn to closure
20-
//~^ HELP: consider embedding the function in a closure
20+
//~^^ HELP: consider embedding the function in a closure
2121
}

0 commit comments

Comments
 (0)