Skip to content

Commit 3410b85

Browse files
committed
---
yaml --- r: 171588 b: refs/heads/batch c: 4a31aad h: refs/heads/master v: v3
1 parent 9467337 commit 3410b85

File tree

15 files changed

+26
-1
lines changed

15 files changed

+26
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: 82af2a1847fd51dd82f38666283ec9ff174d7a74
32+
refs/heads/batch: 4a31aaddb364f5ab8280242a1016bdd3d10dcaed
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
3434
refs/heads/beta: 496dc4eae7de9d14cd49511a9acfbf5f11ae6c3f
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/batch/src/liballoc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
#![no_std]
6767
#![allow(unknown_features)]
6868
#![feature(lang_items, unsafe_destructor)]
69+
#![feature(box_syntax)]
6970

7071
#[macro_use]
7172
extern crate core;

branches/batch/src/libcollections/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#![allow(unknown_features)]
2525
#![feature(unsafe_destructor, slicing_syntax)]
2626
#![feature(old_impl_check)]
27+
#![feature(box_syntax)]
2728
#![feature(unboxed_closures)]
2829
#![no_std]
2930

branches/batch/src/liblog/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
html_root_url = "http://doc.rust-lang.org/nightly/",
165165
html_playground_url = "http://play.rust-lang.org/")]
166166
#![feature(slicing_syntax)]
167+
#![feature(box_syntax)]
167168
#![deny(missing_docs)]
168169

169170
extern crate regex;

branches/batch/src/libregex/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#![allow(unknown_features)]
2626
#![feature(slicing_syntax)]
27+
#![feature(box_syntax)]
2728
#![deny(missing_docs)]
2829

2930
#[cfg(test)]

branches/batch/src/librustc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#![allow(unknown_features)]
2626
#![feature(quote)]
2727
#![feature(slicing_syntax, unsafe_destructor)]
28+
#![feature(box_syntax)]
2829
#![feature(rustc_diagnostic_macros)]
2930
#![feature(old_impl_check)]
3031

branches/batch/src/librustc_trans/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#![feature(quote)]
2626
#![feature(slicing_syntax, unsafe_destructor)]
27+
#![feature(box_syntax)]
2728
#![feature(rustc_diagnostic_macros)]
2829

2930
extern crate arena;

branches/batch/src/librustc_typeck/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ This API is completely unstable and subject to change.
7373

7474
#![feature(quote)]
7575
#![feature(slicing_syntax, unsafe_destructor)]
76+
#![feature(box_syntax)]
7677
#![feature(rustc_diagnostic_macros)]
7778
#![allow(non_camel_case_types)]
7879

branches/batch/src/librustdoc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
html_root_url = "http://doc.rust-lang.org/nightly/",
1818
html_playground_url = "http://play.rust-lang.org/")]
1919
#![feature(slicing_syntax)]
20+
#![feature(box_syntax)]
2021

2122
extern crate arena;
2223
extern crate getopts;

branches/batch/src/libserialize/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Core encoding and decoding interfaces.
2424
html_playground_url = "http://play.rust-lang.org/")]
2525
#![allow(unknown_features)]
2626
#![feature(slicing_syntax)]
27+
#![feature(box_syntax)]
2728
#![feature(old_impl_check)]
2829
#![cfg_attr(stage0, allow(unused_attributes))]
2930

branches/batch/src/libstd/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
#![feature(linkage, thread_local, asm)]
108108
#![feature(lang_items, unsafe_destructor)]
109109
#![feature(slicing_syntax, unboxed_closures)]
110+
#![feature(box_syntax)]
110111
#![feature(old_impl_check)]
111112
#![cfg_attr(stage0, allow(unused_attributes))]
112113

branches/batch/src/libsyntax/feature_gate.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ static KNOWN_FEATURES: &'static [(&'static str, Status)] = &[
7070
("associated_types", Accepted),
7171
("visible_private_types", Active),
7272
("slicing_syntax", Active),
73+
("box_syntax", Active),
7374

7475
("if_let", Accepted),
7576
("while_let", Accepted),
@@ -343,6 +344,12 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
343344
e.span,
344345
"range syntax is experimental");
345346
}
347+
ast::ExprBox(..) | ast::ExprUnary(ast::UnOp::UnUniq, _) => {
348+
self.gate_feature("box_syntax",
349+
e.span,
350+
"box expression syntax is experimental in alpha release; \
351+
you can call `Box::new` instead.");
352+
}
346353
_ => {}
347354
}
348355
visit::walk_expr(self, e);
@@ -365,6 +372,11 @@ impl<'a, 'v> Visitor<'v> for PostExpansionVisitor<'a> {
365372
but at the end of a slice (e.g. \
366373
`[0, ..xs, 0]` are experimental")
367374
}
375+
ast::PatBox(..) => {
376+
self.gate_feature("box_syntax",
377+
pattern.span,
378+
"box pattern syntax is experimental in alpha release");
379+
}
368380
_ => {}
369381
}
370382
visit::walk_pat(self, pattern)

branches/batch/src/libsyntax/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
#![allow(unknown_features)]
2626
#![feature(slicing_syntax)]
27+
#![feature(box_syntax)]
2728
#![feature(quote, unsafe_destructor)]
2829

2930
extern crate arena;

branches/batch/src/libterm/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949

5050
#![allow(unknown_features)]
5151
#![feature(slicing_syntax)]
52+
#![feature(box_syntax)]
5253
#![deny(missing_docs)]
5354

5455
#[macro_use] extern crate log;

branches/batch/src/libtest/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
3232
html_root_url = "http://doc.rust-lang.org/nightly/")]
3333
#![feature(asm, slicing_syntax)]
34+
#![feature(box_syntax)]
3435

3536
extern crate getopts;
3637
extern crate regex;

0 commit comments

Comments
 (0)