Skip to content

Commit

Permalink
Silence various warnings in bootstrap build.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Jul 18, 2013
1 parent cee5c4a commit c5ea6d2
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 16 deletions.
1 change: 0 additions & 1 deletion src/librustc/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#[license = "MIT/ASL2"];
#[crate_type = "lib"];

#[allow(non_implicitly_copyable_typarams)];
#[deny(deprecated_pattern)];

extern mod extra;
Expand Down
2 changes: 0 additions & 2 deletions src/librustdoc/path_pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ impl Clone for Ctxt {
}
}

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

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

Expand Down
2 changes: 0 additions & 2 deletions src/librustdoc/rustdoc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#[license = "MIT/ASL2"];
#[crate_type = "lib"];

#[allow(non_implicitly_copyable_typarams)];

extern mod extra;
extern mod rustc;
extern mod syntax;
Expand Down
2 changes: 0 additions & 2 deletions src/librustdoc/sort_pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ pub fn mk_pass(name: ~str, lteq: ItemLtEqOp) -> Pass {
}
}

#[allow(non_implicitly_copyable_typarams)]
fn run(
_srv: astsrv::Srv,
doc: doc::Doc,
Expand All @@ -55,7 +54,6 @@ fn run(
(fold.fold_doc)(&fold, doc)
}

#[allow(non_implicitly_copyable_typarams)]
fn fold_mod(
fold: &fold::Fold<ItemLtEq>,
doc: doc::ModDoc
Expand Down
1 change: 0 additions & 1 deletion src/librustdoc/text_pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ impl Clone for WrappedOp {
}
}

#[allow(non_implicitly_copyable_typarams)]
fn run(
_srv: astsrv::Srv,
doc: doc::Doc,
Expand Down
1 change: 0 additions & 1 deletion src/libsyntax/ast_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ use print::pprust;
use visit;
use syntax::parse::token::special_idents;

use std::cmp;
use std::hashmap::HashMap;
use std::vec;

Expand Down
2 changes: 0 additions & 2 deletions src/libsyntax/ast_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ use opt_vec;
use parse::token;
use visit;

use std::cast::unsafe_copy;
use std::cast;
use std::hashmap::HashMap;
use std::int;
use std::local_data;
Expand Down
6 changes: 1 addition & 5 deletions src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2713,7 +2713,6 @@ impl Parser {
token::LBRACE => {
self.bump();
let (_, _) = self.parse_pat_fields();
hi = self.span.hi;
self.bump();
self.obsolete(*self.span, ObsoleteRecordPattern);
pat = pat_wild;
Expand Down Expand Up @@ -2744,7 +2743,6 @@ impl Parser {
}
}
if fields.len() == 1 { self.expect(&token::COMMA); }
hi = self.span.hi;
self.expect(&token::RPAREN);
pat = pat_tup(fields);
}
Expand All @@ -2760,7 +2758,6 @@ impl Parser {
self.bump();
let (before, slice, after) =
self.parse_pat_vec_elements();
hi = self.span.hi;
self.expect(&token::RBRACKET);
pat = ast::pat_vec(before, slice, after);
hi = self.last_span.hi;
Expand Down Expand Up @@ -4654,7 +4651,7 @@ impl Parser {

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

0 comments on commit c5ea6d2

Please sign in to comment.