Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use check-pass instead of build-pass in regions ui test suite #78574

Merged
merged 1 commit into from
Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test related to #22779. In this case, the impl is an inherent impl,
// so it doesn't have to match any trait, so no error results.

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

struct MySlice<'a, T:'a>(&'a mut [T]);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test related to #22779, but where the `'a:'b` relation
// appears in the trait too. No error here.

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

trait Tr<'a, T> {
fn renew<'b: 'a>(self) -> &'b mut [T] where 'a: 'b;
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/regions/region-object-lifetime-1.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Various tests related to testing how region inference works
// with respect to the object receivers.

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

trait Foo {
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/regions/region-object-lifetime-3.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Various tests related to testing how region inference works
// with respect to the object receivers.

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

trait Foo {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// "projection gap": in this test, we know that `T: 'x`, and that is
// enough to conclude that `T::Foo: 'x`.

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// "projection gap": in this test, we know that `T::Foo: 'x`, and that
// is (naturally) enough to conclude that `T::Foo: 'x`.

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// "projection gap": in this test, we know that `T: 'x`, and that
// is (naturally) enough to conclude that `T: 'x`.

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// Rule OutlivesNominalType from RFC 1214.

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

#![feature(rustc_attrs)]
#![allow(dead_code)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// Rule OutlivesNominalType from RFC 1214.

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

#![feature(rustc_attrs)]
#![allow(dead_code)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// Rule OutlivesNominalType from RFC 1214.

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

#![feature(rustc_attrs)]
#![allow(dead_code)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// Rule OutlivesNominalType from RFC 1214.

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

#![feature(rustc_attrs)]
#![allow(dead_code)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// Rule OutlivesNominalType from RFC 1214.

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

#![feature(rustc_attrs)]
#![allow(dead_code)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// Rule OutlivesNominalType from RFC 1214.

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

#![feature(rustc_attrs)]
#![allow(dead_code)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// Rule OutlivesNominalType from RFC 1214.

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

#![feature(rustc_attrs)]
#![allow(dead_code)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//
// Rule OutlivesNominalType from RFC 1214.

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

#![feature(rustc_attrs)]
#![allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/regions/regions-outlives-projection-hrtype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// `'r` is bound, that leads to badness. This test checks that
// everything works.

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

trait TheTrait {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test that `<F as Foo<'a>>::Type: 'b`, where `trait Foo<'a> { Type:
// 'a; }`, does not require that `F: 'b`.

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

trait SomeTrait<'a> {
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/regions/regions-outlives-scalar.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Test that scalar values outlive all regions.
// Rule OutlivesScalar from RFC 1214.

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

struct Foo<'a> {
Expand Down