Skip to content

Commit 8c88c03

Browse files
Rollup merge of #78574 - sasurau4:test/check-pass-regions, r=jyn514
Use check-pass instead of build-pass in regions ui test suite ## Overview Helps with #62277 Region inference have nothing to do with codegen because they are erased before codegen. Ref: https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Is.20region.20inference.20.20nothing.20to.20do.20with.20codegen.20process.3F/near/215956759
2 parents 9596e34 + 68d2cd5 commit 8c88c03

18 files changed

+18
-18
lines changed

src/test/ui/regions/region-bound-extra-bound-in-inherent-impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Test related to #22779. In this case, the impl is an inherent impl,
22
// so it doesn't have to match any trait, so no error results.
33

4-
// build-pass (FIXME(62277): could be check-pass?)
4+
// check-pass
55
#![allow(dead_code)]
66

77
struct MySlice<'a, T:'a>(&'a mut [T]);

src/test/ui/regions/region-bound-same-bounds-in-trait-and-impl.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Test related to #22779, but where the `'a:'b` relation
22
// appears in the trait too. No error here.
33

4-
// build-pass (FIXME(62277): could be check-pass?)
4+
// check-pass
55

66
trait Tr<'a, T> {
77
fn renew<'b: 'a>(self) -> &'b mut [T] where 'a: 'b;

src/test/ui/regions/region-object-lifetime-1.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Various tests related to testing how region inference works
22
// with respect to the object receivers.
33

4-
// build-pass (FIXME(62277): could be check-pass?)
4+
// check-pass
55
#![allow(warnings)]
66

77
trait Foo {

src/test/ui/regions/region-object-lifetime-3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Various tests related to testing how region inference works
22
// with respect to the object receivers.
33

4-
// build-pass (FIXME(62277): could be check-pass?)
4+
// check-pass
55
#![allow(warnings)]
66

77
trait Foo {

src/test/ui/regions/regions-implied-bounds-projection-gap-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// "projection gap": in this test, we know that `T: 'x`, and that is
33
// enough to conclude that `T::Foo: 'x`.
44

5-
// build-pass (FIXME(62277): could be check-pass?)
5+
// check-pass
66
#![allow(dead_code)]
77
#![allow(unused_variables)]
88

src/test/ui/regions/regions-implied-bounds-projection-gap-3.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// "projection gap": in this test, we know that `T::Foo: 'x`, and that
33
// is (naturally) enough to conclude that `T::Foo: 'x`.
44

5-
// build-pass (FIXME(62277): could be check-pass?)
5+
// check-pass
66
#![allow(dead_code)]
77
#![allow(unused_variables)]
88

src/test/ui/regions/regions-implied-bounds-projection-gap-4.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// "projection gap": in this test, we know that `T: 'x`, and that
33
// is (naturally) enough to conclude that `T: 'x`.
44

5-
// build-pass (FIXME(62277): could be check-pass?)
5+
// check-pass
66
#![allow(dead_code)]
77
#![allow(unused_variables)]
88

src/test/ui/regions/regions-outlives-nominal-type-enum-region-rev.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// Rule OutlivesNominalType from RFC 1214.
55

6-
// build-pass (FIXME(62277): could be check-pass?)
6+
// check-pass
77

88
#![feature(rustc_attrs)]
99
#![allow(dead_code)]

src/test/ui/regions/regions-outlives-nominal-type-enum-region.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// Rule OutlivesNominalType from RFC 1214.
55

6-
// build-pass (FIXME(62277): could be check-pass?)
6+
// check-pass
77

88
#![feature(rustc_attrs)]
99
#![allow(dead_code)]

src/test/ui/regions/regions-outlives-nominal-type-enum-type-rev.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// Rule OutlivesNominalType from RFC 1214.
55

6-
// build-pass (FIXME(62277): could be check-pass?)
6+
// check-pass
77

88
#![feature(rustc_attrs)]
99
#![allow(dead_code)]

src/test/ui/regions/regions-outlives-nominal-type-enum-type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// Rule OutlivesNominalType from RFC 1214.
55

6-
// build-pass (FIXME(62277): could be check-pass?)
6+
// check-pass
77

88
#![feature(rustc_attrs)]
99
#![allow(dead_code)]

src/test/ui/regions/regions-outlives-nominal-type-struct-region-rev.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// Rule OutlivesNominalType from RFC 1214.
55

6-
// build-pass (FIXME(62277): could be check-pass?)
6+
// check-pass
77

88
#![feature(rustc_attrs)]
99
#![allow(dead_code)]

src/test/ui/regions/regions-outlives-nominal-type-struct-region.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// Rule OutlivesNominalType from RFC 1214.
55

6-
// build-pass (FIXME(62277): could be check-pass?)
6+
// check-pass
77

88
#![feature(rustc_attrs)]
99
#![allow(dead_code)]

src/test/ui/regions/regions-outlives-nominal-type-struct-type-rev.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// Rule OutlivesNominalType from RFC 1214.
55

6-
// build-pass (FIXME(62277): could be check-pass?)
6+
// check-pass
77

88
#![feature(rustc_attrs)]
99
#![allow(dead_code)]

src/test/ui/regions/regions-outlives-nominal-type-struct-type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//
44
// Rule OutlivesNominalType from RFC 1214.
55

6-
// build-pass (FIXME(62277): could be check-pass?)
6+
// check-pass
77

88
#![feature(rustc_attrs)]
99
#![allow(dead_code)]

src/test/ui/regions/regions-outlives-projection-hrtype.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// `'r` is bound, that leads to badness. This test checks that
66
// everything works.
77

8-
// build-pass (FIXME(62277): could be check-pass?)
8+
// check-pass
99
#![allow(dead_code)]
1010

1111
trait TheTrait {

src/test/ui/regions/regions-outlives-projection-trait-def.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Test that `<F as Foo<'a>>::Type: 'b`, where `trait Foo<'a> { Type:
22
// 'a; }`, does not require that `F: 'b`.
33

4-
// build-pass (FIXME(62277): could be check-pass?)
4+
// check-pass
55
#![allow(dead_code)]
66

77
trait SomeTrait<'a> {

src/test/ui/regions/regions-outlives-scalar.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Test that scalar values outlive all regions.
22
// Rule OutlivesScalar from RFC 1214.
33

4-
// build-pass (FIXME(62277): could be check-pass?)
4+
// check-pass
55
#![allow(dead_code)]
66

77
struct Foo<'a> {

0 commit comments

Comments
 (0)