Skip to content

Commit 88d59d2

Browse files
committed
---
yaml --- r: 30062 b: refs/heads/incoming c: a8f1bee h: refs/heads/master v: v3
1 parent 88648b8 commit 88d59d2

File tree

18 files changed

+44
-43
lines changed

18 files changed

+44
-43
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: d0c6ce338884ee21843f4b40bf6bf18d222ce5df
9-
refs/heads/incoming: 5ba7434cb17c19438b00730b37741f2d61449ad8
9+
refs/heads/incoming: a8f1bee4574b8427a052e2fad93a90839288584b
1010
refs/heads/dist-snap: 2f32a1581f522e524009138b33b1c7049ced668d
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1212
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/incoming/src/libstd/bitv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ struct bitv {
231231
assign => s.become(s1, self.nbits),
232232
difference => s.difference(s1, self.nbits)
233233
},
234-
big(s1) => self.die()
234+
big(_) => self.die()
235235
},
236236
big(s) => match other.rep {
237237
small(_) => self.die(),

branches/incoming/src/libsyntax/ast_map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ fn map_item(i: @item, cx: ctx, v: vt) {
193193
let item_path = @/* FIXME (#2543) */ copy cx.path;
194194
cx.map.insert(i.id, node_item(i, item_path));
195195
match i.node {
196-
item_impl(_, opt_ir, _, ms) => {
196+
item_impl(_, _, _, ms) => {
197197
let impl_did = ast_util::local_def(i.id);
198198
for ms.each |m| {
199199
map_method(impl_did, extend(cx, i.ident), m,

branches/incoming/src/libsyntax/ast_util.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ impl inlined_item: inlined_item_utils {
372372
ii_ctor(ctor, nm, tps, parent_id) => {
373373
visit::visit_class_ctor_helper(ctor, nm, tps, parent_id, e, v);
374374
}
375-
ii_dtor(dtor, nm, tps, parent_id) => {
375+
ii_dtor(dtor, _, tps, parent_id) => {
376376
visit::visit_class_dtor_helper(dtor, tps, parent_id, e, v);
377377
}
378378
}
@@ -504,7 +504,7 @@ fn id_visitor(vfn: fn@(node_id)) -> visit::vt<()> {
504504
vfn(id);
505505

506506
match fk {
507-
visit::fk_ctor(nm, _, tps, self_id, parent_id) => {
507+
visit::fk_ctor(_, _, tps, self_id, parent_id) => {
508508
vec::iter(tps, |tp| vfn(tp.id));
509509
vfn(id);
510510
vfn(self_id);
@@ -583,7 +583,7 @@ pure fn is_item_impl(item: @ast::item) -> bool {
583583
fn walk_pat(pat: @pat, it: fn(@pat)) {
584584
it(pat);
585585
match pat.node {
586-
pat_ident(_, pth, some(p)) => walk_pat(p, it),
586+
pat_ident(_, _, some(p)) => walk_pat(p, it),
587587
pat_rec(fields, _) | pat_struct(_, fields, _) =>
588588
for fields.each |f| { walk_pat(f.pat, it) },
589589
pat_enum(_, some(s)) | pat_tup(s) => for s.each |p| {

branches/incoming/src/libsyntax/attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ fn eq(a: @ast::meta_item, b: @ast::meta_item) -> bool {
204204
ast::meta_name_value(nb, vb) => na == nb && va.node == vb.node,
205205
_ => false
206206
},
207-
ast::meta_list(na, la) => {
207+
ast::meta_list(*) => {
208208

209209
// ~[Fixme-sorting]
210210
// FIXME (#607): Needs implementing

branches/incoming/src/libsyntax/ext/expand.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ fn expand_item_mac(exts: hashmap<~str, syntax_extension>,
211211
span: expand.span}}));
212212
let maybe_it = match expanded {
213213
mr_item(it) => fld.fold_item(it),
214-
mr_expr(e) => cx.span_fatal(pth.span,
214+
mr_expr(_) => cx.span_fatal(pth.span,
215215
~"expr macro in item position: " +
216216
*extname),
217217
mr_def(mdef) => {

branches/incoming/src/libsyntax/ext/pipes/pipec.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl message: gen_send {
4141
fn gen_send(cx: ext_ctxt, try: bool) -> @ast::item {
4242
debug!("pipec: gen_send");
4343
match self {
44-
message(id, span, tys, this,
44+
message(_id, span, tys, this,
4545
some({state: next, tys: next_tys})) => {
4646
debug!("pipec: next state exists");
4747
let next = this.proto.get_state(next);
@@ -126,7 +126,7 @@ impl message: gen_send {
126126
cx.expr_block(body))
127127
}
128128
129-
message(id, span, tys, this, none) => {
129+
message(_id, span, tys, this, none) => {
130130
debug!("pipec: no next state");
131131
let arg_names = tys.mapi(|i, _ty| (~"x_" + i.to_str()));
132132

branches/incoming/src/libsyntax/ext/simplext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ fn add_new_extension(cx: ext_ctxt, sp: span, arg: ast::mac_arg,
635635
let mut clauses: ~[@clause] = ~[];
636636
for args.each |arg| {
637637
match arg.node {
638-
expr_vec(elts, mutbl) => {
638+
expr_vec(elts, _) => {
639639
if vec::len(elts) != 2u {
640640
cx.span_fatal((*arg).span,
641641
~"extension clause must consist of ~[" +

branches/incoming/src/libsyntax/ext/tt/macro_rules.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ fn add_new_extension(cx: ext_ctxt, sp: span, name: ident,
4242

4343
// Extract the arguments:
4444
let lhses:~[@named_match] = match argument_map.get(lhs_nm) {
45-
@matched_seq(s, sp) => s,
45+
@matched_seq(s, _) => s,
4646
_ => cx.span_bug(sp, ~"wrong-structured lhs")
4747
};
4848
let rhses:~[@named_match] = match argument_map.get(rhs_nm) {
49-
@matched_seq(s, sp) => s,
49+
@matched_seq(s, _) => s,
5050
_ => cx.span_bug(sp, ~"wrong-structured rhs")
5151
};
5252

branches/incoming/src/libsyntax/fold.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ fn fold_mac_(m: mac, fld: ast_fold) -> mac {
116116
mac_invoc(fld.fold_path(pth),
117117
option::map(arg, |x| fld.fold_expr(x)), body)
118118
}
119-
mac_invoc_tt(pth, tt) => m.node,
119+
mac_invoc_tt(*) => m.node,
120120
mac_ellipsis => mac_ellipsis,
121121
mac_aq(_,_) => /* FIXME (#2543) */ copy m.node,
122122
mac_var(_) => /* FIXME (#2543) */ copy m.node,

branches/incoming/src/libsyntax/parse/classify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fn stmt_ends_with_semi(stmt: ast::stmt) -> bool {
3131
ast::stmt_expr(e, _) => {
3232
return expr_requires_semi_to_be_stmt(e);
3333
}
34-
ast::stmt_semi(e, _) => {
34+
ast::stmt_semi(*) => {
3535
return false;
3636
}
3737
}

branches/incoming/src/libsyntax/parse/eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fn eval_crate_directive(cx: ctx, cdir: @ast::crate_directive, prefix: ~str,
130130
vec::push(items, i);
131131
}
132132
ast::cdir_view_item(vi) => vec::push(view_items, vi),
133-
ast::cdir_syntax(pth) => ()
133+
ast::cdir_syntax(*) => ()
134134
}
135135
}
136136
//

branches/incoming/src/libsyntax/parse/lexer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ fn scan_digits(rdr: string_reader, radix: uint) -> ~str {
313313
let c = rdr.curr;
314314
if c == '_' { bump(rdr); again; }
315315
match char::to_digit(c, radix) {
316-
some(d) => {
316+
some(_) => {
317317
str::push_char(rslt, c);
318318
bump(rdr);
319319
}

branches/incoming/src/libsyntax/print/pprust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ fn print_if(s: ps, test: @ast::expr, blk: ast::blk,
923923

924924
fn print_mac(s: ps, m: ast::mac) {
925925
match m.node {
926-
ast::mac_invoc(path, arg, body) => {
926+
ast::mac_invoc(path, arg, _body) => {
927927
word(s.s, ~"#");
928928
print_path(s, path, false);
929929
match arg {

branches/incoming/src/libsyntax/visit.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,11 @@ fn visit_exprs<E>(exprs: ~[@expr], e: E, v: vt<E>) {
384384

385385
fn visit_mac<E>(m: mac, e: E, v: vt<E>) {
386386
match m.node {
387-
ast::mac_invoc(pth, arg, body) => {
387+
ast::mac_invoc(_, arg, _) => {
388388
option::map(arg, |arg| v.visit_expr(arg, e, v)); }
389-
ast::mac_invoc_tt(pth, tt) => { /* no user-serviceable parts inside */ }
389+
ast::mac_invoc_tt(*) => { /* no user-serviceable parts inside */ }
390390
ast::mac_ellipsis => (),
391-
ast::mac_aq(_, e) => { /* FIXME: maybe visit (Issue #2340) */ }
391+
ast::mac_aq(*) => { /* FIXME: maybe visit (Issue #2340) */ }
392392
ast::mac_var(_) => ()
393393
}
394394
}

branches/incoming/src/rustc/middle/trans/base.rs

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ fn make_free_glue(bcx: block, v: ValueRef, t: ty::t) {
759759
none);
760760
trans_free(bcx, v)
761761
}
762-
ty::ty_uniq(content_mt) => {
762+
ty::ty_uniq(*) => {
763763
uniq::make_free_glue(bcx, v, t)
764764
}
765765
ty::ty_evec(_, ty::vstore_uniq) | ty::ty_estr(ty::vstore_uniq) |
@@ -1062,8 +1062,8 @@ fn iter_structural_ty(cx: block, av: ValueRef, t: ty::t,
10621062
cx = f(cx, llfld_a, fld.mt.ty);
10631063
}
10641064
}
1065-
ty::ty_estr(ty::vstore_fixed(n)) |
1066-
ty::ty_evec(_, ty::vstore_fixed(n)) => {
1065+
ty::ty_estr(ty::vstore_fixed(_)) |
1066+
ty::ty_evec(_, ty::vstore_fixed(_)) => {
10671067
let (base, len) = tvec::get_base_and_len(cx, av, t);
10681068
cx = tvec::iter_vec_raw(cx, base, t, len, f);
10691069
}
@@ -2071,7 +2071,7 @@ fn trans_external_path(ccx: @crate_ctxt, did: ast::def_id, t: ty::t)
20712071
fn normalize_for_monomorphization(tcx: ty::ctxt, ty: ty::t) -> option<ty::t> {
20722072
// FIXME[mono] could do this recursively. is that worthwhile? (#2529)
20732073
match ty::get(ty).struct {
2074-
ty::ty_box(mt) => {
2074+
ty::ty_box(*) => {
20752075
some(ty::mk_opaque_box(tcx))
20762076
}
20772077
ty::ty_fn(ref fty) => {
@@ -2199,10 +2199,10 @@ fn monomorphic_fn(ccx: @crate_ctxt, fn_id: ast::def_id,
21992199
ast_map::node_method(m, _, pt) => (pt, m.ident, m.span),
22002200
ast_map::node_foreign_item(i, ast::foreign_abi_rust_intrinsic, pt)
22012201
=> (pt, i.ident, i.span),
2202-
ast_map::node_foreign_item(_, abi, _) => {
2202+
ast_map::node_foreign_item(*) => {
22032203
// Foreign externs don't have to be monomorphized.
22042204
return {val: get_item_val(ccx, fn_id.node),
2205-
must_cast: true};
2205+
must_cast: true};
22062206
}
22072207
ast_map::node_ctor(nm, _, ct, _, pt) => (pt, nm, ct.span),
22082208
ast_map::node_dtor(_, dtor, _, pt) =>
@@ -2286,13 +2286,13 @@ fn monomorphic_fn(ccx: @crate_ctxt, fn_id: ast::def_id,
22862286
}
22872287
d
22882288
}
2289-
ast_map::node_method(mth, impl_def_id, _) => {
2289+
ast_map::node_method(mth, _, _) => {
22902290
let d = mk_lldecl();
22912291
set_inline_hint_if_appr(mth.attrs, d);
22922292
impl::trans_method(ccx, pt, mth, psubsts, d);
22932293
d
22942294
}
2295-
ast_map::node_ctor(nm, tps, ctor, parent_id, _) => {
2295+
ast_map::node_ctor(_, tps, ctor, parent_id, _) => {
22962296
// ctors don't have attrs, at least not right now
22972297
let d = mk_lldecl();
22982298
let tp_tys = ty::ty_params_to_tys(ccx.tcx, tps);
@@ -2356,7 +2356,7 @@ fn maybe_instantiate_inline(ccx: @crate_ctxt, fn_id: ast::def_id)
23562356
trans_item(ccx, *item);
23572357
local_def(item.id)
23582358
}
2359-
csearch::found(ast::ii_ctor(ctor, nm, tps, parent_id)) => {
2359+
csearch::found(ast::ii_ctor(ctor, _, tps, _)) => {
23602360
ccx.external.insert(fn_id, some(ctor.node.id));
23612361
local_def(ctor.node.id)
23622362
}
@@ -2398,7 +2398,7 @@ fn maybe_instantiate_inline(ccx: @crate_ctxt, fn_id: ast::def_id)
23982398
}
23992399
local_def(mth.id)
24002400
}
2401-
csearch::found(ast::ii_dtor(dtor, nm, tps, parent_id)) => {
2401+
csearch::found(ast::ii_dtor(dtor, _, tps, _)) => {
24022402
ccx.external.insert(fn_id, some(dtor.node.id));
24032403
local_def(dtor.node.id)
24042404
}
@@ -2500,7 +2500,8 @@ fn trans_local_var(cx: block, def: ast::def) -> local_var_result {
25002500
match table.find(id) {
25012501
some(local_mem(v)) => {val: v, kind: lv_owned},
25022502
some(local_imm(v)) => {val: v, kind: lv_owned_imm},
2503-
r => fail(~"take_local: internal error")
2503+
none => fail(fmt!("take_local: internal error, \
2504+
found no entry for %?", id))
25042505
}
25052506
}
25062507
match def {
@@ -2516,7 +2517,7 @@ fn trans_local_var(cx: block, def: ast::def) -> local_var_result {
25162517
assert (cx.fcx.lllocals.contains_key(nid));
25172518
return take_local(cx.fcx.lllocals, nid);
25182519
}
2519-
ast::def_self(sid) => {
2520+
ast::def_self(_) => {
25202521
let slf = match copy cx.fcx.llself {
25212522
some(s) => cast_self(cx, s),
25222523
none => cx.sess().bug(~"trans_local_var: reference to self \
@@ -2690,7 +2691,7 @@ fn expr_is_lval(bcx: block, e: @ast::expr) -> bool {
26902691
fn trans_callee(bcx: block, e: @ast::expr) -> lval_maybe_callee {
26912692
let _icx = bcx.insn_ctxt("trans_callee");
26922693
match e.node {
2693-
ast::expr_path(path) => return trans_path(bcx, e.id),
2694+
ast::expr_path(_) => return trans_path(bcx, e.id),
26942695
ast::expr_field(base, _, _) => {
26952696
// Lval means this is a record field, so not a method
26962697
if !expr_is_lval(bcx, e) {
@@ -2949,7 +2950,7 @@ fn trans_arg_expr(cx: block, arg: ty::arg, lldestty: TypeRef, e: @ast::expr,
29492950
// translate the arg expr as an lvalue
29502951
let lv = match ret_flag {
29512952
// If there is a ret_flag, this *must* be a loop body
2952-
some(ptr) => match check e.node {
2953+
some(_) => match check e.node {
29532954
ast::expr_loop_body(blk) => {
29542955
let scratch = alloc_ty(cx, expr_ty(cx, blk));
29552956
let bcx = trans_loop_body(cx, e, ret_flag, save_in(scratch));
@@ -3858,7 +3859,7 @@ fn trans_expr(bcx: block, e: @ast::expr, dest: dest) -> block {
38583859
}
38593860
}
38603861
}
3861-
ast::expr_loop_body(blk) => {
3862+
ast::expr_loop_body(_) => {
38623863
return trans_loop_body(bcx, e, none, dest);
38633864
}
38643865
ast::expr_do_body(blk) => {
@@ -5383,11 +5384,11 @@ fn get_item_val(ccx: @crate_ctxt, id: ast::node_id) -> ValueRef {
53835384
vec::append(*pth, ~[path_name(ni.ident)]),
53845385
ni.id)
53855386
}
5386-
ast_map::node_ctor(nm, tps, ctor, _, pt) => {
5387+
ast_map::node_ctor(nm, _, ctor, _, pt) => {
53875388
let my_path = vec::append(*pt, ~[path_name(nm)]);
53885389
register_fn(ccx, ctor.span, my_path, ctor.node.id)
53895390
}
5390-
ast_map::node_dtor(tps, dt, parent_id, pt) => {
5391+
ast_map::node_dtor(_, dt, parent_id, pt) => {
53915392
/*
53925393
Don't just call register_fn, since we don't want to add
53935394
the implicit self argument automatically (we want to make sure

branches/incoming/src/rustc/middle/trans/consts.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ fn const_expr(cx: @crate_ctxt, e: @ast::expr) -> ValueRef {
242242
}
243243
const_get_elt(arr, iv as uint)
244244
}
245-
ast::expr_cast(base, tp) => {
245+
ast::expr_cast(base, _) => {
246246
let ety = ty::expr_ty(cx.tcx, e), llty = type_of::type_of(cx, ety);
247247
let basety = ty::expr_ty(cx.tcx, base);
248248
let v = const_expr(cx, base);
@@ -311,7 +311,7 @@ fn const_expr(cx: @crate_ctxt, e: @ast::expr) -> ValueRef {
311311
ast::expr_rec(fs, none) => {
312312
C_struct(fs.map(|f| const_expr(cx, f.node.expr)))
313313
}
314-
ast::expr_vec(es, m_imm) => {
314+
ast::expr_vec(es, ast::m_imm) => {
315315
let (v, _, _) = const_vec(cx, e, es);
316316
v
317317
}
@@ -327,7 +327,7 @@ fn const_expr(cx: @crate_ctxt, e: @ast::expr) -> ValueRef {
327327
~"bad const-slice lit") }
328328
}
329329
}
330-
ast::expr_vec(es, m_imm) => {
330+
ast::expr_vec(es, ast::m_imm) => {
331331
let (cv, sz, llunitty) = const_vec(cx, e, es);
332332
let llty = val_ty(cv);
333333
let gv = do str::as_c_str("const") |name| {
@@ -342,7 +342,7 @@ fn const_expr(cx: @crate_ctxt, e: @ast::expr) -> ValueRef {
342342
~"bad const-slice expr")
343343
}
344344
}
345-
ast::expr_path(path) => {
345+
ast::expr_path(_) => {
346346
match cx.tcx.def_map.find(e.id) {
347347
some(ast::def_const(def_id)) => {
348348
// Don't know how to handle external consts

branches/incoming/src/rustc/middle/trans/type_of.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ fn type_of(cx: @crate_ctxt, t: ty::t) -> TypeRef {
9595
ty::ty_estr(ty::vstore_uniq) => {
9696
T_unique_ptr(T_unique(cx, T_vec(cx, T_i8())))
9797
}
98-
ty::ty_enum(did, _) => {
98+
ty::ty_enum(*) => {
9999
// Only create the named struct, but don't fill it in. We
100100
// fill it in *after* placing it into the type cache. This
101101
// avoids creating more than one copy of the enum when one

0 commit comments

Comments
 (0)