Skip to content

Commit 22e94e4

Browse files
committed
---
yaml --- r: 183951 b: refs/heads/master c: 9f8b9d6 h: refs/heads/master i: 183949: e524158 183947: d222f6d 183943: cbff16a 183935: ab1dde4 v: v3
1 parent 19a7a4d commit 22e94e4

8 files changed

+11
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: cc61f9c1d5baa29209b29a51cb9c553dcb2fb725
2+
refs/heads/master: 9f8b9d6847ab02f7f1c28c84988ceae4c0a10f26
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 522d09dfecbeca1595f25ac58c6d0178bbd21d7d
55
refs/heads/try: ccf8fedf1cffcb8f6f3581d53d220039e192fe77

trunk/src/test/compile-fail/variance-trait-bounds.rs

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

1111
#![deny(bivariance)]
1212
#![allow(dead_code)]
13+
#![feature(rustc_attrs)]
1314

1415
// Check that bounds on type parameters (other than `Self`) do not
1516
// influence variance.

trunk/src/test/compile-fail/variance-types-bounds.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// Test that we correctly infer variance for type parameters in
1212
// various types and traits.
1313

14+
#![feature(rustc_attrs)]
15+
1416
#[rustc_variance]
1517
struct TestImm<A, B> { //~ ERROR types=[[+, +];[];[]]
1618
x: A,

trunk/src/test/compile-fail/variance-types.rs

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

1111
#![deny(bivariance)]
1212
#![allow(dead_code)]
13+
#![feature(rustc_attrs)]
1314

1415
use std::cell::Cell;
1516

trunk/src/test/compile-fail/variance-use-contravariant-struct-1.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// Test various uses of structs with distint variances to make sure
1212
// they permit lifetimes to be approximated as expected.
1313

14+
#![feature(rustc_attrs)]
15+
1416
struct SomeStruct<T>(fn(T));
1517

1618
fn foo<'min,'max>(v: SomeStruct<&'max ()>)

trunk/src/test/compile-fail/variance-use-contravariant-struct-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// they permit lifetimes to be approximated as expected.
1313

1414
#![allow(dead_code)]
15+
#![feature(rustc_attrs)]
1516

1617
struct SomeStruct<T>(fn(T));
1718

trunk/src/test/compile-fail/variance-use-covariant-struct-2.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// be shortened.
1313

1414
#![allow(dead_code)]
15+
#![feature(rustc_attrs)]
1516

1617
struct SomeStruct<T>(T);
1718

trunk/src/test/compile-fail/variance-use-invariant-struct-1.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
// Test various uses of structs with distint variances to make sure
1212
// they permit lifetimes to be approximated as expected.
1313

14+
#![feature(rustc_attrs)]
15+
1416
struct SomeStruct<T>(*mut T);
1517

1618
fn foo<'min,'max>(v: SomeStruct<&'max ()>)

0 commit comments

Comments
 (0)