Skip to content

Commit e5ec43e

Browse files
committed
Opt into new box_patterns feature gate in various crates.
Namely: `collections` (used in `dlist.rs`), `syntax`, `rustc`, `rustc_typeck`, `rustc_trans`, and `rustdoc`.
1 parent 105f70b commit e5ec43e

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

src/libcollections/lib.rs

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

2525
#![feature(alloc)]
2626
#![feature(box_syntax)]
27+
#![feature(box_patterns)]
2728
#![feature(core)]
2829
#![feature(hash)]
2930
#![feature(staged_api)]

src/librustc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2424
html_root_url = "http://doc.rust-lang.org/nightly/")]
2525

26+
#![feature(box_patterns)]
2627
#![feature(box_syntax)]
2728
#![feature(collections)]
2829
#![feature(core)]

src/librustc_trans/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
html_root_url = "http://doc.rust-lang.org/nightly/")]
2525

2626
#![feature(alloc)]
27+
#![feature(box_patterns)]
2728
#![feature(box_syntax)]
2829
#![feature(collections)]
2930
#![feature(core)]

src/librustc_typeck/lib.rs

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

7575
#![allow(non_camel_case_types)]
7676

77+
#![feature(box_patterns)]
7778
#![feature(box_syntax)]
7879
#![feature(collections)]
7980
#![feature(core)]

src/librustdoc/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
html_root_url = "http://doc.rust-lang.org/nightly/",
1919
html_playground_url = "http://play.rust-lang.org/")]
2020

21+
#![feature(box_patterns)]
2122
#![feature(box_syntax)]
2223
#![feature(collections)]
2324
#![feature(core)]

src/libsyntax/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2424
html_root_url = "http://doc.rust-lang.org/nightly/")]
2525

26+
#![feature(box_patterns)]
2627
#![feature(box_syntax)]
2728
#![feature(collections)]
2829
#![feature(core)]

0 commit comments

Comments
 (0)