Rollup merge of - sasurau4:test/check-pass-regions, r=jyn514

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

## Overview

Helps with 

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
This commit is contained in:
Jonas Schievink 2020-11-10 14:45:13 +01:00 committed by GitHub
commit 8c88c0324b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 18 additions and 18 deletions

@ -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]);

@ -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;

@ -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 {

@ -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 {

@ -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)]

@ -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)]

@ -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)]

@ -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)]

@ -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)]

@ -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)]

@ -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)]

@ -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)]

@ -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)]

@ -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)]

@ -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)]

@ -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 {

@ -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> {

@ -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> {