Skip to content

Commit 70fbb7d

Browse files
committed
---
yaml --- r: 58029 b: refs/heads/snap-stage3 c: dc5df61 h: refs/heads/master i: 58027: 9337309 v: v3
1 parent d0f8307 commit 70fbb7d

File tree

26 files changed

+5490
-677
lines changed

26 files changed

+5490
-677
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: c081ffbd1e845687202a975ea2e698b623e5722f
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 79a2b2eafc3c766cecec8a5f76317693bae9ed17
4+
refs/heads/snap-stage3: dc5df61bc1914224d50d92cdd5599b6337ac68f2
55
refs/heads/try: bf67eb2362b7d0f37012f2d6dac604c3bbacd2c6
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustc/back/abi.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ pub static n_tydesc_fields: uint = 8u;
5757
pub static fn_field_code: uint = 0u;
5858
pub static fn_field_box: uint = 1u;
5959

60-
// The three fields of a trait object/trait instance: vtable, box, and type
61-
// description.
62-
pub static trt_field_vtable: uint = 0u;
63-
pub static trt_field_box: uint = 1u;
64-
// This field is only present in unique trait objects, so it comes last.
65-
pub static trt_field_tydesc: uint = 2u;
66-
6760
pub static vec_elt_fill: uint = 0u;
6861

6962
pub static vec_elt_alloc: uint = 1u;

branches/snap-stage3/src/librustc/driver/driver.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ pub fn build_session_options(binary: @~str,
653653
654654
let linker_args = getopts::opt_strs(matches, ~"link-args").flat_map( |a| {
655655
let mut args = ~[];
656-
for str::each_split_char(*a, ' ') |arg| {
656+
for str::each_split_char(*a, ',') |arg| {
657657
args.push(str::from_slice(arg));
658658
}
659659
args
@@ -760,7 +760,7 @@ pub fn optgroups() -> ~[getopts::groups::OptGroup] {
760760
optmulti("L", "", "Add a directory to the library search path",
761761
"PATH"),
762762
optflag("", "lib", "Compile a library crate"),
763-
optmulti("", "link-args", "FLAGS is a space-separated list of flags
763+
optmulti("", "link-args", "FLAGS is a comma-separated list of flags
764764
passed to the linker", "FLAGS"),
765765
optflag("", "ls", "List the symbols defined by a library crate"),
766766
optflag("", "no-trans",

branches/snap-stage3/src/librustc/metadata/decoder.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,21 @@ fn item_ty_param_defs(item: ebml::Doc, tcx: ty::ctxt, cdata: cmd,
272272
@bounds
273273
}
274274
275+
#[cfg(stage0)]
275276
fn item_ty_region_param(item: ebml::Doc) -> Option<ty::region_variance> {
276277
reader::maybe_get_doc(item, tag_region_param).map(|doc| {
277278
Decodable::decode(&reader::Decoder(*doc))
278279
})
279280
}
280281
282+
#[cfg(not(stage0))]
283+
fn item_ty_region_param(item: ebml::Doc) -> Option<ty::region_variance> {
284+
reader::maybe_get_doc(item, tag_region_param).map(|doc| {
285+
let mut decoder = reader::Decoder(*doc);
286+
Decodable::decode(&mut decoder)
287+
})
288+
}
289+
281290
fn item_ty_param_count(item: ebml::Doc) -> uint {
282291
let mut n = 0u;
283292
reader::tagged_docs(item, tag_items_data_item_ty_param_bounds,

0 commit comments

Comments
 (0)