Skip to content

Commit d00a323

Browse files
committed
---
yaml --- r: 67005 b: refs/heads/master c: 3b158b3 h: refs/heads/master i: 67003: 0caa55e v: v3
1 parent d72998a commit d00a323

File tree

11 files changed

+352
-186
lines changed

11 files changed

+352
-186
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 30ef79ca6d069e3cc100e3d1332a286cbbc1eab3
2+
refs/heads/master: 3b158b3e425b8adb42eab076acc9962bb22783ca
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 18e3db7392d2d0697b7e27d6d986139960144d85
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9

trunk/src/librustc/middle/trans/base.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,6 @@ pub fn new_fn_ctxt_w_id(ccx: @mut CrateContext,
16121612
llfndecl: ValueRef,
16131613
id: ast::node_id,
16141614
output_type: ty::t,
1615-
skip_retptr: bool,
16161615
param_substs: Option<@param_substs>,
16171616
sp: Option<span>)
16181617
-> fn_ctxt {
@@ -1656,7 +1655,7 @@ pub fn new_fn_ctxt_w_id(ccx: @mut CrateContext,
16561655
fcx.llenv = unsafe {
16571656
llvm::LLVMGetParam(llfndecl, fcx.env_arg_pos() as c_uint)
16581657
};
1659-
if !ty::type_is_nil(substd_output_type) && !(is_immediate && skip_retptr) {
1658+
if !ty::type_is_nil(substd_output_type) {
16601659
fcx.llretptr = Some(make_return_pointer(fcx, substd_output_type));
16611660
}
16621661
fcx
@@ -1668,7 +1667,7 @@ pub fn new_fn_ctxt(ccx: @mut CrateContext,
16681667
output_type: ty::t,
16691668
sp: Option<span>)
16701669
-> fn_ctxt {
1671-
new_fn_ctxt_w_id(ccx, path, llfndecl, -1, output_type, false, None, sp)
1670+
new_fn_ctxt_w_id(ccx, path, llfndecl, -1, output_type, None, sp)
16721671
}
16731672

16741673
// NB: must keep 4 fns in sync:
@@ -1862,7 +1861,6 @@ pub fn trans_closure(ccx: @mut CrateContext,
18621861
llfndecl,
18631862
id,
18641863
output_type,
1865-
false,
18661864
param_substs,
18671865
Some(body.span));
18681866
let raw_llargs = create_llargs_for_fn_args(fcx, self_arg, decl.inputs);
@@ -2081,7 +2079,6 @@ pub fn trans_enum_variant_or_tuple_like_struct<A:IdAndTy>(
20812079
llfndecl,
20822080
ctor_id,
20832081
result_ty,
2084-
false,
20852082
param_substs,
20862083
None);
20872084

trunk/src/librustc/middle/trans/foreign.rs

Lines changed: 348 additions & 164 deletions
Large diffs are not rendered by default.

trunk/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;

trunk/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

trunk/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;

trunk/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

trunk/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,

trunk/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

trunk/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;

trunk/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)