Skip to content

Commit 878e652

Browse files
committed
---
yaml --- r: 56671 b: refs/heads/auto c: 73733c9 h: refs/heads/master i: 56669: ee7c93c 56667: a520958 56663: 04685cf 56655: a13bba6 56639: 27c16bd v: v3
1 parent 50f6f2a commit 878e652

27 files changed

+711
-5496
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: dc5df61bc1914224d50d92cdd5599b6337ac68f2
17+
refs/heads/auto: 73733c96db89f267e8a3289f660937c807b71283
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/librustc/back/abi.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,13 @@ 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+
6067
pub static vec_elt_fill: uint = 0u;
6168

6269
pub static vec_elt_alloc: uint = 1u;

branches/auto/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 comma-separated list of flags
763+
optmulti("", "link-args", "FLAGS is a space-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/auto/src/librustc/metadata/decoder.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -272,21 +272,12 @@ fn item_ty_param_defs(item: ebml::Doc, tcx: ty::ctxt, cdata: cmd,
272272
@bounds
273273
}
274274
275-
#[cfg(stage0)]
276275
fn item_ty_region_param(item: ebml::Doc) -> Option<ty::region_variance> {
277276
reader::maybe_get_doc(item, tag_region_param).map(|doc| {
278277
Decodable::decode(&reader::Decoder(*doc))
279278
})
280279
}
281280
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-
290281
fn item_ty_param_count(item: ebml::Doc) -> uint {
291282
let mut n = 0u;
292283
reader::tagged_docs(item, tag_items_data_item_ty_param_bounds,

0 commit comments

Comments
 (0)