Skip to content

Commit a32d2b4

Browse files
committed
removed uses of feature gate
1 parent b908905 commit a32d2b4

26 files changed

+0
-40
lines changed

src/test/ui/pattern/bindings-after-at/bind-by-copy.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
// Test copy
44

5-
#![feature(bindings_after_at)]
6-
75
struct A { a: i32, b: i32 }
86
struct B { a: i32, b: C }
97
struct D { a: i32, d: C }

src/test/ui/pattern/bindings-after-at/bind-by-move-neither-can-live-while-the-other-survives-1.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// It checks that you cannot use an AND-pattern (`binding @ pat`)
33
// where one side is by-ref and the other is by-move.
44

5-
#![feature(bindings_after_at)]
6-
75
struct X {
86
x: (),
97
}

src/test/ui/pattern/bindings-after-at/bind-by-move-no-subbindings-fun-param.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// See issue #12534.
22

3-
#![feature(bindings_after_at)]
4-
53
fn main() {}
64

75
struct A(Box<u8>);

src/test/ui/pattern/bindings-after-at/borrowck-move-and-move.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Test that moving on both sides of an `@` pattern is not allowed.
22

3-
#![feature(bindings_after_at)]
4-
53
fn main() {
64
struct U; // Not copy!
75

src/test/ui/pattern/bindings-after-at/borrowck-pat-at-and-box-pass.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// Test `@` patterns combined with `box` patterns.
44

5-
#![feature(bindings_after_at)]
65
#![feature(box_patterns)]
76

87
#[derive(Copy, Clone)]

src/test/ui/pattern/bindings-after-at/borrowck-pat-at-and-box.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Test `@` patterns combined with `box` patterns.
22

3-
#![feature(bindings_after_at)]
43
#![feature(box_patterns)]
54

65
#[derive(Copy, Clone)]

src/test/ui/pattern/bindings-after-at/borrowck-pat-by-copy-bindings-in-at.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
// Test `Copy` bindings in the rhs of `@` patterns.
44

5-
#![feature(bindings_after_at)]
6-
75
#[derive(Copy, Clone)]
86
struct C;
97

src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse-promotion.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Test that `by_move_binding @ pat_with_by_ref_bindings` is prevented even with promotion.
22
// Currently this logic exists in THIR match checking as opposed to borrowck.
33

4-
#![feature(bindings_after_at)]
5-
64
fn main() {
75
struct U;
86
let a @ ref b = U; //~ ERROR borrow of moved value

src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref-inverse.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Test that `by_move_binding @ pat_with_by_ref_bindings` is prevented.
22

3-
#![feature(bindings_after_at)]
4-
53
fn main() {
64
struct U;
75

src/test/ui/pattern/bindings-after-at/borrowck-pat-by-move-and-ref.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// Test that `ref mut? @ pat_with_by_move_bindings` is prevented.
22

3-
#![feature(bindings_after_at)]
4-
53
fn main() {
64
struct U;
75

0 commit comments

Comments
 (0)