Skip to content

Commit 58aa7fc

Browse files
committed
No need for feature gate directives for if_let, while_let, or tuple_indexing anymore.
1 parent a31ad6b commit 58aa7fc

File tree

15 files changed

+9
-25
lines changed

15 files changed

+9
-25
lines changed

src/librustc/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2323
html_root_url = "http://doc.rust-lang.org/nightly/")]
2424

25-
#![feature(default_type_params, globs, if_let, import_shadowing, macro_rules, phase, quote)]
26-
#![feature(slicing_syntax, tuple_indexing, unsafe_destructor)]
25+
#![feature(default_type_params, globs, import_shadowing, macro_rules, phase, quote)]
26+
#![feature(slicing_syntax, unsafe_destructor)]
2727
#![feature(rustc_diagnostic_macros)]
2828

2929
extern crate arena;

src/librustc_driver/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2323
html_root_url = "http://doc.rust-lang.org/nightly/")]
2424

25-
#![feature(default_type_params, globs, if_let, import_shadowing, macro_rules, phase, quote)]
25+
#![feature(default_type_params, globs, import_shadowing, macro_rules, phase, quote)]
2626
#![feature(slicing_syntax, unsafe_destructor)]
2727
#![feature(rustc_diagnostic_macros)]
2828

src/librustc_trans/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
2323
html_root_url = "http://doc.rust-lang.org/nightly/")]
2424

25-
#![feature(default_type_params, globs, if_let, import_shadowing, macro_rules, phase, quote)]
25+
#![feature(default_type_params, globs, import_shadowing, macro_rules, phase, quote)]
2626
#![feature(slicing_syntax, unsafe_destructor)]
2727
#![feature(rustc_diagnostic_macros)]
2828

src/librustc_typeck/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ This API is completely unstable and subject to change.
7171
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
7272
html_root_url = "http://doc.rust-lang.org/nightly/")]
7373

74-
#![feature(default_type_params, globs, if_let, import_shadowing, macro_rules, phase, quote)]
75-
#![feature(slicing_syntax, tuple_indexing, unsafe_destructor)]
74+
#![feature(default_type_params, globs, import_shadowing, macro_rules, phase, quote)]
75+
#![feature(slicing_syntax, unsafe_destructor)]
7676
#![feature(rustc_diagnostic_macros)]
7777
#![allow(non_camel_case_types)]
7878

src/librustdoc/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
html_playground_url = "http://play.rust-lang.org/")]
1919

2020
#![allow(unknown_features)]
21-
#![feature(globs, if_let, macro_rules, phase, slicing_syntax, tuple_indexing)]
21+
#![feature(globs, macro_rules, phase, slicing_syntax)]
2222

2323
extern crate arena;
2424
extern crate getopts;

src/libstd/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
#![allow(unknown_features)]
107107
#![feature(macro_rules, globs, linkage)]
108108
#![feature(default_type_params, phase, lang_items, unsafe_destructor)]
109-
#![feature(import_shadowing, slicing_syntax, tuple_indexing)]
109+
#![feature(import_shadowing, slicing_syntax)]
110110

111111
// Don't link to std. We are std.
112112
#![no_std]

src/libsyntax/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
html_root_url = "http://doc.rust-lang.org/nightly/")]
2424

2525
#![allow(unknown_features)]
26-
#![feature(if_let, macro_rules, globs, default_type_params, phase, slicing_syntax)]
26+
#![feature(macro_rules, globs, default_type_params, phase, slicing_syntax)]
2727
#![feature(quote, unsafe_destructor, import_shadowing)]
2828

2929
extern crate arena;

src/test/compile-fail/issue-19096.rs

-2
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(tuple_indexing)]
12-
1311
fn main() {
1412
let t = (42i, 42i);
1513
t.0::<int>; //~ ERROR expected one of `.`, `;`, `}`, or an operator, found `::`

src/test/run-pass/borrow-tuple-fields.rs

-2
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(tuple_indexing)]
12-
1311
struct Foo(int, int);
1412

1513
fn main() {

src/test/run-pass/if-let.rs

-2
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(if_let)]
12-
1311
pub fn main() {
1412
let x = Some(3i);
1513
if let Some(y) = x {

src/test/run-pass/issue-18412.rs

-2
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(tuple_indexing)]
12-
1311
// Test that non-static methods can be assigned to local variables as
1412
// function pointers.
1513

src/test/run-pass/issue-19244.rs

-2
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(tuple_indexing)]
12-
1311
struct MyStruct { field: uint }
1412
const STRUCT: MyStruct = MyStruct { field: 42 };
1513
const TUP: (uint,) = (43,);

src/test/run-pass/tuple-index-fat-types.rs

-2
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(tuple_indexing)]
12-
1311
struct Foo<'a>(&'a [int]);
1412

1513
fn main() {

src/test/run-pass/tuple-index.rs

-2
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(tuple_indexing)]
12-
1311
struct Point(int, int);
1412

1513
fn main() {

src/test/run-pass/while-let.rs

-2
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(while_let)]
12-
1311
use std::collections::BinaryHeap;
1412

1513
fn make_pq() -> BinaryHeap<int> {

0 commit comments

Comments
 (0)