diff --git a/src/test/ui/feature-gates/feature-gate-infer_static_outlives_requirements.rs b/src/test/ui/feature-gates/feature-gate-infer_static_outlives_requirements.rs deleted file mode 100644 index 65792a74ea4..00000000000 --- a/src/test/ui/feature-gates/feature-gate-infer_static_outlives_requirements.rs +++ /dev/null @@ -1,12 +0,0 @@ -// Needs an explicit where clause stating outlives condition. (RFC 2093) - -// Type T needs to outlive lifetime 'static. -struct Foo { - bar: Bar //~ ERROR the parameter type `U` may not live long enough [E0310] -} -struct Bar { - x: T, -} - - -fn main() { } diff --git a/src/test/ui/feature-gates/feature-gate-infer_static_outlives_requirements.stderr b/src/test/ui/feature-gates/feature-gate-infer_static_outlives_requirements.stderr deleted file mode 100644 index 7ffebab4153..00000000000 --- a/src/test/ui/feature-gates/feature-gate-infer_static_outlives_requirements.stderr +++ /dev/null @@ -1,19 +0,0 @@ -error[E0310]: the parameter type `U` may not live long enough - --> $DIR/feature-gate-infer_static_outlives_requirements.rs:5:10 - | -LL | bar: Bar - | ^^^^^^ ...so that the type `U` will meet its required lifetime bounds... - | -note: ...that is required by this bound - --> $DIR/feature-gate-infer_static_outlives_requirements.rs:7:15 - | -LL | struct Bar { - | ^^^^^^^ -help: consider adding an explicit lifetime bound... - | -LL | struct Foo { - | +++++++++ - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0310`. diff --git a/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.rs b/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.rs index 5297d0d9842..d3940b13b11 100644 --- a/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.rs +++ b/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.rs @@ -1,7 +1,5 @@ /* - * We don't infer `T: 'static` outlives relationships by default. - * Instead an additional feature gate `infer_static_outlives_requirements` - * is required. + * We don't infer `T: 'static` outlives relationships. */ struct Foo { diff --git a/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.stderr b/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.stderr index 950ffd6c89b..0c388f5fe41 100644 --- a/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.stderr +++ b/src/test/ui/rfc-2093-infer-outlives/dont-infer-static.stderr @@ -1,11 +1,11 @@ error[E0310]: the parameter type `U` may not live long enough - --> $DIR/dont-infer-static.rs:8:10 + --> $DIR/dont-infer-static.rs:6:10 | LL | bar: Bar | ^^^^^^ ...so that the type `U` will meet its required lifetime bounds... | note: ...that is required by this bound - --> $DIR/dont-infer-static.rs:10:15 + --> $DIR/dont-infer-static.rs:8:15 | LL | struct Bar { | ^^^^^^^ diff --git a/src/test/ui/rfc-2093-infer-outlives/infer-static.rs b/src/test/ui/rfc-2093-infer-outlives/infer-static.rs deleted file mode 100644 index bd778e3b136..00000000000 --- a/src/test/ui/rfc-2093-infer-outlives/infer-static.rs +++ /dev/null @@ -1,12 +0,0 @@ -#![feature(rustc_attrs)] -#![feature(infer_static_outlives_requirements)] - -#[rustc_outlives] -struct Foo { //~ ERROR rustc_outlives - bar: Bar -} -struct Bar { - x: T, -} - -fn main() {} diff --git a/src/test/ui/rfc-2093-infer-outlives/infer-static.stderr b/src/test/ui/rfc-2093-infer-outlives/infer-static.stderr deleted file mode 100644 index 6fbb7cf4cb8..00000000000 --- a/src/test/ui/rfc-2093-infer-outlives/infer-static.stderr +++ /dev/null @@ -1,12 +0,0 @@ -error: rustc_outlives - --> $DIR/infer-static.rs:5:1 - | -LL | / struct Foo { -LL | | bar: Bar -LL | | } - | |_^ - | - = note: U: 'static - -error: aborting due to previous error -