Skip to content

Commit 8495203

Browse files
committed
---
yaml --- r: 184048 b: refs/heads/auto c: 9f8b9d6 h: refs/heads/master v: v3
1 parent 03c2190 commit 8495203

8 files changed

+11
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1010
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1111
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1212
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13-
refs/heads/auto: cc61f9c1d5baa29209b29a51cb9c553dcb2fb725
13+
refs/heads/auto: 9f8b9d6847ab02f7f1c28c84988ceae4c0a10f26
1414
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1515
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1616
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/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.

branches/auto/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,

branches/auto/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

branches/auto/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 ()>)

branches/auto/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

branches/auto/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

branches/auto/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)