Skip to content

Commit b354951

Browse files
committed
---
yaml --- r: 138452 b: refs/heads/try2 c: cec1f38 h: refs/heads/master v: v3
1 parent 66b5b76 commit b354951

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+603
-483
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 1869df30a66243f6f44e37a4f6c8b3d1f098dc94
8+
refs/heads/try2: cec1f38c309b743b29a386ce71db1b1035ccd89d
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/compiletest/common.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub enum mode {
2121
mode_debug_info,
2222
}
2323

24-
pub type config = {
24+
pub struct config {
2525
// The library paths required for running the compiler
2626
compile_lib_path: ~str,
2727

@@ -68,4 +68,4 @@ pub type config = {
6868
// Explain what's going on
6969
verbose: bool
7070

71-
};
71+
}

branches/try2/src/compiletest/compiletest.rc

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#[crate_type = "bin"];
1212

1313
#[no_core];
14-
#[legacy_records];
1514

1615
#[allow(vecs_implicitly_copyable)];
1716
#[allow(non_camel_case_types)];
@@ -77,26 +76,28 @@ pub fn parse_config(args: ~[~str]) -> config {
7776
Path(getopts::opt_str(m, nm))
7877
}
7978

80-
return {compile_lib_path: getopts::opt_str(matches, ~"compile-lib-path"),
81-
run_lib_path: getopts::opt_str(matches, ~"run-lib-path"),
82-
rustc_path: opt_path(matches, ~"rustc-path"),
83-
src_base: opt_path(matches, ~"src-base"),
84-
build_base: opt_path(matches, ~"build-base"),
85-
aux_base: opt_path(matches, ~"aux-base"),
86-
stage_id: getopts::opt_str(matches, ~"stage-id"),
87-
mode: str_mode(getopts::opt_str(matches, ~"mode")),
88-
run_ignored: getopts::opt_present(matches, ~"ignored"),
89-
filter:
79+
config {
80+
compile_lib_path: getopts::opt_str(matches, ~"compile-lib-path"),
81+
run_lib_path: getopts::opt_str(matches, ~"run-lib-path"),
82+
rustc_path: opt_path(matches, ~"rustc-path"),
83+
src_base: opt_path(matches, ~"src-base"),
84+
build_base: opt_path(matches, ~"build-base"),
85+
aux_base: opt_path(matches, ~"aux-base"),
86+
stage_id: getopts::opt_str(matches, ~"stage-id"),
87+
mode: str_mode(getopts::opt_str(matches, ~"mode")),
88+
run_ignored: getopts::opt_present(matches, ~"ignored"),
89+
filter:
9090
if vec::len(matches.free) > 0u {
9191
option::Some(matches.free[0])
9292
} else { option::None },
93-
logfile: option::map(&getopts::opt_maybe_str(matches,
93+
logfile: option::map(&getopts::opt_maybe_str(matches,
9494
~"logfile"),
95-
|s| Path(*s)),
96-
runtool: getopts::opt_maybe_str(matches, ~"runtool"),
97-
rustcflags: getopts::opt_maybe_str(matches, ~"rustcflags"),
98-
jit: getopts::opt_present(matches, ~"jit"),
99-
verbose: getopts::opt_present(matches, ~"verbose")};
95+
|s| Path(*s)),
96+
runtool: getopts::opt_maybe_str(matches, ~"runtool"),
97+
rustcflags: getopts::opt_maybe_str(matches, ~"rustcflags"),
98+
jit: getopts::opt_present(matches, ~"jit"),
99+
verbose: getopts::opt_present(matches, ~"verbose")
100+
}
100101
}
101102

102103
pub fn log_config(config: config) {

branches/try2/src/libcore/core.rc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,8 @@ pub const debug : u32 = 4_u32;
225225
// The runtime interface used by the compiler
226226
#[cfg(notest)] pub mod rt;
227227
// The runtime and compiler interface to fmt!
228+
#[cfg(stage0)]
229+
#[path = "private/extfmt.rs"]
228230
pub mod extfmt;
229231
// Private APIs
230232
pub mod private;

branches/try2/src/libcore/prelude.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ pub use char;
5252
pub use cmp;
5353
pub use dvec;
5454
pub use either;
55-
pub use extfmt;
5655
pub use f32;
5756
pub use f64;
5857
pub use float;

branches/try2/src/libcore/private.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ pub mod weak_task;
3434
pub mod exchange_alloc;
3535
#[path = "private/intrinsics.rs"]
3636
pub mod intrinsics;
37+
#[path = "private/extfmt.rs"]
38+
pub mod extfmt;
3739

3840
extern mod rustrt {
3941
pub unsafe fn rust_create_little_lock() -> rust_little_lock;

branches/try2/src/librustc/middle/astencode.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,13 +1278,13 @@ fn test_simplification() {
12781278
let item_in = ast::ii_item(quote_item!(
12791279
fn new_int_alist<B:Copy>() -> alist<int, B> {
12801280
fn eq_int(&&a: int, &&b: int) -> bool { a == b }
1281-
return {eq_fn: eq_int, data: ~[]};
1281+
return alist {eq_fn: eq_int, data: ~[]};
12821282
}
12831283
).get());
12841284
let item_out = simplify_ast(item_in);
12851285
let item_exp = ast::ii_item(quote_item!(
12861286
fn new_int_alist<B:Copy>() -> alist<int, B> {
1287-
return {eq_fn: eq_int, data: ~[]};
1287+
return alist {eq_fn: eq_int, data: ~[]};
12881288
}
12891289
).get());
12901290
match (item_out, item_exp) {

branches/try2/src/librustc/middle/lint.rs

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -706,23 +706,21 @@ fn check_item_deprecated_self(cx: ty::ctxt, item: @ast::item) {
706706
}
707707
708708
fn check_item_structural_records(cx: ty::ctxt, it: @ast::item) {
709-
if !cx.legacy_records {
710-
let visit = item_stopping_visitor(
711-
visit::mk_simple_visitor(@visit::SimpleVisitor {
712-
visit_expr: |e: @ast::expr| {
713-
match e.node {
714-
ast::expr_rec(*) =>
715-
cx.sess.span_lint(
716-
structural_records, e.id, it.id,
717-
e.span,
718-
~"structural records are deprecated"),
719-
_ => ()
720-
}
721-
},
722-
.. *visit::default_simple_visitor()
723-
}));
724-
visit::visit_item(it, (), visit);
725-
}
709+
let visit = item_stopping_visitor(
710+
visit::mk_simple_visitor(@visit::SimpleVisitor {
711+
visit_expr: |e: @ast::expr| {
712+
match e.node {
713+
ast::expr_rec(*) =>
714+
cx.sess.span_lint(
715+
structural_records, e.id, it.id,
716+
e.span,
717+
~"structural records are deprecated"),
718+
_ => ()
719+
}
720+
},
721+
.. *visit::default_simple_visitor()
722+
}));
723+
visit::visit_item(it, (), visit);
726724
}
727725

728726
fn check_item_ctypes(cx: ty::ctxt, it: @ast::item) {

0 commit comments

Comments
 (0)