Skip to content

Commit 7d541e9

Browse files
committed
---
yaml --- r: 92304 b: refs/heads/auto c: bea3ec3 h: refs/heads/master v: v3
1 parent b386800 commit 7d541e9

File tree

114 files changed

+41
-268
lines changed

Some content is hidden

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

114 files changed

+41
-268
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: 386b455b1b00f418f1e19255023593e724036cb4
16+
refs/heads/auto: bea3ec34dde19cb66a36418541dc8b82b4d18491
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/configure

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ then
469469
PV_MINOR=${PV_MAJOR_MINOR#* }
470470
if [ "$PV_MAJOR" -lt "$MIN_PV_MAJOR" ] || [ "$PV_MINOR" -lt "$MIN_PV_MINOR" ]
471471
then
472-
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. Need at least $MIN_PV_MAJOR.$MIN_PV_MINOR. Disabling"
473-
BAD_PANDOC=1
472+
step_msg "pandoc $PV_MAJOR.$PV_MINOR is too old. Need at least $MIN_PV_MAJOR.$MIN_PV_MINOR. Disabling"
473+
BAD_PANDOC=1
474474
fi
475475
fi
476476

@@ -544,7 +544,6 @@ then
544544
putvar CFG_ENABLE_CLANG
545545
fi
546546

547-
548547
if [ -z "$CFG_ENABLE_CLANG" -a -z "$CFG_GCC" ]
549548
then
550549
err "either clang or gcc is required"
@@ -558,20 +557,20 @@ then
558557
LLVM_VERSION=$($LLVM_CONFIG --version)
559558

560559
case $LLVM_VERSION in
561-
(3.3|3.3svn|3.2|3.2svn)
562-
msg "found ok version of LLVM: $LLVM_VERSION"
563-
;;
564-
(*)
565-
err "bad LLVM version: $LLVM_VERSION, need >=3.0svn"
566-
;;
560+
(3.3|3.3svn|3.2|3.2svn)
561+
msg "found ok version of LLVM: $LLVM_VERSION"
562+
;;
563+
(*)
564+
err "bad LLVM version: $LLVM_VERSION, need >=3.0svn"
565+
;;
567566
esac
568567
fi
569568

570569
if [ ! -z "$CFG_ENABLE_CLANG" ]
571570
then
572571
if [ -z "$CFG_CLANG" ]
573572
then
574-
err "clang requested but not found"
573+
err "clang requested but not found"
575574
fi
576575
CFG_CLANG_VERSION=$("$CFG_CLANG" \
577576
--version \

branches/auto/src/etc/emacs/rust-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"if" "impl" "in"
135135
"let" "loop"
136136
"match" "mod" "mut"
137-
"priv" "proc" "pub"
137+
"priv" "pub"
138138
"ref" "return"
139139
"self" "static" "struct" "super"
140140
"true" "trait" "type"

branches/auto/src/libextra/test.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,15 +1110,6 @@ impl BenchHarness {
11101110
} else {
11111111
n = 1_000_000 / self.ns_per_iter().max(&1);
11121112
}
1113-
// if the first run took more than 1ms we don't want to just
1114-
// be left doing 0 iterations on every loop. The unfortunate
1115-
// side effect of not being able to do as many runs is
1116-
// automatically handled by the statistical analysis below
1117-
// (i.e. larger error bars).
1118-
if n == 0 { n = 1; }
1119-
1120-
debug!("Initial run took {} ns, iter count that takes 1ms estimated as {}",
1121-
self.ns_per_iter(), n);
11221113
11231114
let mut total_run = 0;
11241115
let samples : &mut [f64] = [0.0_f64, ..50];
@@ -1150,7 +1141,7 @@ impl BenchHarness {
11501141
let now = precise_time_ns();
11511142
let loop_run = now - loop_start;
11521143
1153-
// If we've run for 100ms and seem to have converged to a
1144+
// If we've run for 100ms an seem to have converged to a
11541145
// stable median.
11551146
if loop_run > 100_000_000 &&
11561147
summ.median_abs_dev_pct < 1.0 &&

branches/auto/src/librustc/front/feature_gate.rs

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,6 @@ impl Context {
7777
}
7878
}
7979

80-
fn gate_box(&self, span: Span) {
81-
self.gate_feature("managed_boxes", span,
82-
"The managed box syntax is being replaced by the \
83-
`std::gc::Gc` and `std::rc::Rc` types. Equivalent \
84-
functionality to managed trait objects will be \
85-
implemented but is currently missing.");
86-
}
87-
8880
fn has_feature(&self, feature: &str) -> bool {
8981
self.features.iter().any(|n| n.as_slice() == feature)
9082
}
@@ -180,24 +172,17 @@ impl Visitor<()> for Context {
180172
experimental and likely to be removed");
181173

182174
},
183-
ast::ty_box(_) => { self.gate_box(t.span); }
175+
ast::ty_box(_) => {
176+
self.gate_feature("managed_boxes", t.span,
177+
"The managed box syntax is being replaced by the `std::gc::Gc` \
178+
and `std::rc::Rc` types. Equivalent functionality to managed \
179+
trait objects will be implemented but is currently missing.");
180+
}
184181
_ => {}
185182
}
186183

187184
visit::walk_ty(self, t, ());
188185
}
189-
190-
fn visit_expr(&mut self, e: @ast::Expr, _: ()) {
191-
match e.node {
192-
ast::ExprUnary(_, ast::UnBox(..), _) |
193-
ast::ExprVstore(_, ast::ExprVstoreBox) |
194-
ast::ExprVstore(_, ast::ExprVstoreMutBox) => {
195-
self.gate_box(e.span);
196-
}
197-
_ => {}
198-
}
199-
visit::walk_expr(self, e, ());
200-
}
201186
}
202187

203188
pub fn check_crate(sess: Session, crate: &ast::Crate) {

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

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -770,21 +770,9 @@ fn check_heap_type(cx: &Context, span: Span, ty: ty::t) {
770770
let mut n_uniq = 0;
771771
ty::fold_ty(cx.tcx, ty, |t| {
772772
match ty::get(t).sty {
773-
ty::ty_box(_) | ty::ty_estr(ty::vstore_box) |
774-
ty::ty_evec(_, ty::vstore_box) |
775-
ty::ty_trait(_, _, ty::BoxTraitStore, _, _) => {
776-
n_box += 1;
777-
}
778-
ty::ty_uniq(_) | ty::ty_estr(ty::vstore_uniq) |
779-
ty::ty_evec(_, ty::vstore_uniq) |
780-
ty::ty_trait(_, _, ty::UniqTraitStore, _, _) => {
781-
n_uniq += 1;
782-
}
783-
ty::ty_closure(ref c) if c.sigil == ast::OwnedSigil => {
784-
n_uniq += 1;
785-
}
786-
787-
_ => ()
773+
ty::ty_box(_) => n_box += 1,
774+
ty::ty_uniq(_) => n_uniq += 1,
775+
_ => ()
788776
};
789777
t
790778
});

branches/auto/src/librustdoc/clean.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ pub struct Crate {
7373

7474
impl Clean<Crate> for visit_ast::RustdocVisitor {
7575
fn clean(&self) -> Crate {
76-
use syntax::attr::find_pkgid;
76+
use syntax::attr::{find_linkage_metas, last_meta_item_value_str_by_name};
77+
let maybe_meta = last_meta_item_value_str_by_name(
78+
find_linkage_metas(self.attrs), "name");
7779
let cx = local_data::get(super::ctxtkey, |x| *x.unwrap());
7880

7981
let mut externs = HashMap::new();
@@ -82,9 +84,10 @@ impl Clean<Crate> for visit_ast::RustdocVisitor {
8284
});
8385

8486
Crate {
85-
name: match find_pkgid(self.attrs) {
86-
Some(n) => n.name,
87-
None => fail!("rustdoc requires a `pkgid` crate attribute"),
87+
name: match maybe_meta {
88+
Some(x) => x.to_owned(),
89+
None => fail!("rustdoc requires a \\#[link(name=\"foo\")] \
90+
crate attribute"),
8891
},
8992
module: Some(self.module.clean()),
9093
externs: externs,

branches/auto/src/librustpkg/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ pub fn compile_input(context: &BuildContext,
300300
pkg_id.version.to_str()).to_managed());
301301

302302
debug!("pkgid attr: {:?}", pkgid_attr);
303-
crate.attrs.push(attr::mk_attr(pkgid_attr));
303+
crate.attrs = ~[attr::mk_attr(pkgid_attr)];
304304
}
305305

306306
debug!("calling compile_crate_from_input, workspace = {},

branches/auto/src/test/compile-fail/auto-ref-slice-plus-ref.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[feature(managed_boxes)];
12-
1311
fn main() {
1412

1513
// Testing that method lookup does not automatically borrow

branches/auto/src/test/compile-fail/borrowck-loan-rcvr-overloaded-op.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[feature(managed_boxes)];
12-
1311
struct Point {
1412
x: int,
1513
y: int,

branches/auto/src/test/compile-fail/borrowck-loan-rcvr.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[feature(managed_boxes)];
12-
1311
struct point { x: int, y: int }
1412

1513
trait methods {

branches/auto/src/test/compile-fail/borrowck-mut-boxed-vec.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[feature(managed_boxes)];
12-
1311
fn main() {
1412
let v = @mut [ 1, 2, 3 ];
1513
for _x in v.iter() {

branches/auto/src/test/compile-fail/issue-3763.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[feature(managed_boxes)];
12-
1311
mod my_mod {
1412
pub struct MyStruct {
1513
priv priv_field: int

branches/auto/src/test/compile-fail/lint-heap-memory.rs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,6 @@ struct Foo {
1919
struct Bar { x: ~int } //~ ERROR type uses owned
2020

2121
fn main() {
22-
let _x : Bar = Bar {x : ~10}; //~ ERROR type uses owned
23-
24-
@2; //~ ERROR type uses managed
25-
@[1]; //~ ERROR type uses managed
26-
//~^ ERROR type uses managed
27-
fn f(_: @Clone) {} //~ ERROR type uses managed
28-
@""; //~ ERROR type uses managed
29-
//~^ ERROR type uses managed
30-
31-
~2; //~ ERROR type uses owned
32-
~[1]; //~ ERROR type uses owned
33-
//~^ ERROR type uses owned
34-
fn g(_: ~Clone) {} //~ ERROR type uses owned
35-
~""; //~ ERROR type uses owned
22+
let _x : Bar = Bar {x : ~10};
3623
//~^ ERROR type uses owned
37-
proc() {}; //~ ERROR type uses owned
3824
}

branches/auto/src/test/compile-fail/moves-based-on-type-exprs.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Tests that references to move-by-default values trigger moves when
22
// they occur as part of various kinds of expressions.
33

4-
#[feature(managed_boxes)];
5-
64
struct Foo<A> { f: A }
75
fn guard(_s: ~str) -> bool {fail!()}
86
fn touch<A>(_a: &A) {}

branches/auto/src/test/compile-fail/non-exhaustive-match.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[feature(managed_boxes)];
12-
1311
enum t { a, b, }
1412

1513
fn main() {

branches/auto/src/test/compile-fail/occurs-check.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[feature(managed_boxes)];
12-
1311
fn main() {
1412
let f; //~ ERROR cyclic type of infinite size
1513
f = @f;

branches/auto/src/test/compile-fail/static-region-bound.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#[feature(managed_boxes)];
2-
31
fn f<T:'static>(_: T) {}
42

53
fn main() {

branches/auto/src/test/compile-fail/unique-unique-kind.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#[feature(managed_boxes)];
12-
1311
fn f<T:Send>(_i: T) {
1412
}
1513

branches/auto/src/test/debug-info/borrowed-struct.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
// debugger:print *unique_val_interior_ref_2
4646
// check:$10 = 26.5
4747

48-
#[feature(managed_boxes)];
4948
#[allow(unused_variable)];
5049

5150
struct SomeStruct {

branches/auto/src/test/debug-info/box.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
// debugger:print d->val
2525
// check:$4 = false
2626

27-
#[feature(managed_boxes)];
2827
#[allow(unused_variable)];
2928

3029
fn main() {

branches/auto/src/test/debug-info/boxed-struct.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
// debugger:print managed_dtor->val
2828
// check:$4 = {x = 33, y = 333, z = 3333, w = 33333}
2929

30-
#[feature(managed_boxes)];
3130
#[allow(unused_variable)];
3231

3332
struct StructWithSomePadding {

branches/auto/src/test/debug-info/destructured-local.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@
125125
// debugger:print *nn
126126
// check:$43 = 56
127127

128-
#[feature(managed_boxes)];
129128
#[allow(unused_variable)];
130129

131130
struct Struct {

branches/auto/src/test/debug-info/generic-method-on-generic-struct.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@
9494
// check:$21 = {-16, 16.5}
9595
// debugger:continue
9696

97-
#[feature(managed_boxes)];
98-
9997
struct Struct<T> {
10098
x: T
10199
}

branches/auto/src/test/debug-info/managed-enum.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
// check:$3 = {-9747455}
2626

2727
#[allow(unused_variable)];
28-
#[feature(struct_variant, managed_boxes)];
28+
#[feature(struct_variant)];
2929

3030
// The first element is to ensure proper alignment, irrespective of the machines word size. Since
3131
// the size of the discriminant value is machine dependent, this has be taken into account when

branches/auto/src/test/debug-info/method-on-enum.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@
9494
// check:$21 = -16
9595
// debugger:continue
9696

97-
#[feature(managed_boxes)];
9897
#[feature(struct_variant)];
9998

10099
enum Enum {

branches/auto/src/test/debug-info/method-on-generic-struct.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@
9494
// check:$21 = -16
9595
// debugger:continue
9696

97-
#[feature(managed_boxes)];
98-
9997
struct Struct<T> {
10098
x: T
10199
}

branches/auto/src/test/debug-info/method-on-struct.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@
9494
// check:$21 = -16
9595
// debugger:continue
9696

97-
#[feature(managed_boxes)];
98-
9997
struct Struct {
10098
x: int
10199
}

branches/auto/src/test/debug-info/method-on-trait.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@
9494
// check:$21 = -16
9595
// debugger:continue
9696

97-
#[feature(managed_boxes)];
98-
9997
struct Struct {
10098
x: int
10199
}

branches/auto/src/test/debug-info/method-on-tuple-struct.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,6 @@
9494
// check:$21 = -16
9595
// debugger:continue
9696

97-
#[feature(managed_boxes)];
98-
9997
struct TupleStruct(int, f64);
10098

10199
impl TupleStruct {

0 commit comments

Comments
 (0)