Skip to content

Commit 3b158b3

Browse files
committed
Silence various warnings in bootstrap build.
1 parent d300a64 commit 3b158b3

File tree

8 files changed

+1
-16
lines changed

8 files changed

+1
-16
lines changed

src/librustc/rustc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#[license = "MIT/ASL2"];
1818
#[crate_type = "lib"];
1919

20-
#[allow(non_implicitly_copyable_typarams)];
2120
#[deny(deprecated_pattern)];
2221

2322
extern mod extra;

src/librustdoc/path_pass.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ impl Clone for Ctxt {
4343
}
4444
}
4545

46-
#[allow(non_implicitly_copyable_typarams)]
4746
fn run(srv: astsrv::Srv, doc: doc::Doc) -> doc::Doc {
4847
let ctxt = Ctxt {
4948
srv: srv,
@@ -66,7 +65,6 @@ fn fold_item(fold: &fold::Fold<Ctxt>, doc: doc::ItemDoc) -> doc::ItemDoc {
6665
}
6766
}
6867

69-
#[allow(non_implicitly_copyable_typarams)]
7068
fn fold_mod(fold: &fold::Fold<Ctxt>, doc: doc::ModDoc) -> doc::ModDoc {
7169
let is_topmod = doc.id() == ast::crate_node_id;
7270

src/librustdoc/rustdoc.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
#[license = "MIT/ASL2"];
2020
#[crate_type = "lib"];
2121

22-
#[allow(non_implicitly_copyable_typarams)];
23-
2422
extern mod extra;
2523
extern mod rustc;
2624
extern mod syntax;

src/librustdoc/sort_pass.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ pub fn mk_pass(name: ~str, lteq: ItemLtEqOp) -> Pass {
4242
}
4343
}
4444

45-
#[allow(non_implicitly_copyable_typarams)]
4645
fn run(
4746
_srv: astsrv::Srv,
4847
doc: doc::Doc,
@@ -55,7 +54,6 @@ fn run(
5554
(fold.fold_doc)(&fold, doc)
5655
}
5756

58-
#[allow(non_implicitly_copyable_typarams)]
5957
fn fold_mod(
6058
fold: &fold::Fold<ItemLtEq>,
6159
doc: doc::ModDoc

src/librustdoc/text_pass.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ impl Clone for WrappedOp {
4444
}
4545
}
4646

47-
#[allow(non_implicitly_copyable_typarams)]
4847
fn run(
4948
_srv: astsrv::Srv,
5049
doc: doc::Doc,

src/libsyntax/ast_map.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ use print::pprust;
2020
use visit;
2121
use syntax::parse::token::special_idents;
2222

23-
use std::cmp;
2423
use std::hashmap::HashMap;
2524
use std::vec;
2625

src/libsyntax/ast_util.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ use opt_vec;
1616
use parse::token;
1717
use visit;
1818

19-
use std::cast::unsafe_copy;
20-
use std::cast;
2119
use std::hashmap::HashMap;
2220
use std::int;
2321
use std::local_data;

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2713,7 +2713,6 @@ impl Parser {
27132713
token::LBRACE => {
27142714
self.bump();
27152715
let (_, _) = self.parse_pat_fields();
2716-
hi = self.span.hi;
27172716
self.bump();
27182717
self.obsolete(*self.span, ObsoleteRecordPattern);
27192718
pat = pat_wild;
@@ -2744,7 +2743,6 @@ impl Parser {
27442743
}
27452744
}
27462745
if fields.len() == 1 { self.expect(&token::COMMA); }
2747-
hi = self.span.hi;
27482746
self.expect(&token::RPAREN);
27492747
pat = pat_tup(fields);
27502748
}
@@ -2760,7 +2758,6 @@ impl Parser {
27602758
self.bump();
27612759
let (before, slice, after) =
27622760
self.parse_pat_vec_elements();
2763-
hi = self.span.hi;
27642761
self.expect(&token::RBRACKET);
27652762
pat = ast::pat_vec(before, slice, after);
27662763
hi = self.last_span.hi;
@@ -4654,7 +4651,7 @@ impl Parser {
46544651

46554652
pub fn parse_item(&self, attrs: ~[attribute]) -> Option<@ast::item> {
46564653
match self.parse_item_or_view_item(attrs, true) {
4657-
iovi_none(attrs) =>
4654+
iovi_none(_) =>
46584655
None,
46594656
iovi_view_item(_) =>
46604657
self.fatal("view items are not allowed here"),
@@ -4824,7 +4821,6 @@ impl Parser {
48244821
// First, parse view items.
48254822
let mut view_items : ~[ast::view_item] = ~[];
48264823
let mut items = ~[];
4827-
let mut done = false;
48284824
// I think this code would probably read better as a single
48294825
// loop with a mutable three-state-variable (for extern mods,
48304826
// view items, and regular items) ... except that because

0 commit comments

Comments
 (0)