Use check-pass mode for nll tests
This commit is contained in:
parent
e0bbe7915e
commit
5c73d21eaa
15 changed files with 15 additions and 15 deletions
|
@ -4,7 +4,7 @@
|
||||||
// regions is erased.
|
// regions is erased.
|
||||||
|
|
||||||
// compile-flags:-Zborrowck=mir -Zverbose
|
// compile-flags:-Zborrowck=mir -Zverbose
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// arbitrary types without ICEs.
|
// arbitrary types without ICEs.
|
||||||
|
|
||||||
// compile-flags:-Zborrowck=mir
|
// compile-flags:-Zborrowck=mir
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
const HI: &str = "hi";
|
const HI: &str = "hi";
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// including) the call to `use_x`. The `else` branch is not included.
|
// including) the call to `use_x`. The `else` branch is not included.
|
||||||
|
|
||||||
// compile-flags:-Zborrowck=mir
|
// compile-flags:-Zborrowck=mir
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![allow(warnings)]
|
#![allow(warnings)]
|
||||||
#![feature(dropck_eyepatch)]
|
#![feature(dropck_eyepatch)]
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// extra unused mut lint tests for #51918
|
// extra unused mut lint tests for #51918
|
||||||
|
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![feature(generators, nll)]
|
#![feature(generators, nll)]
|
||||||
#![deny(unused_mut)]
|
#![deny(unused_mut)]
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// over a yield -- because the data that is borrowed (`*x`) is not
|
// over a yield -- because the data that is borrowed (`*x`) is not
|
||||||
// stored on the stack.
|
// stored on the stack.
|
||||||
|
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
fn foo(x: &mut u32) {
|
fn foo(x: &mut u32) {
|
||||||
move || {
|
move || {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// compile-flags: -Zborrowck=mir
|
// compile-flags: -Zborrowck=mir
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![allow(warnings)]
|
#![allow(warnings)]
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// compile-flags:-Zborrowck=mir
|
// compile-flags:-Zborrowck=mir
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
// another -- effectively, the single lifetime `'a` is just inferred
|
// another -- effectively, the single lifetime `'a` is just inferred
|
||||||
// to be the intersection of the two distinct lifetimes.
|
// to be the intersection of the two distinct lifetimes.
|
||||||
//
|
//
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
// compile-flags:-Zno-leak-check
|
// compile-flags:-Zno-leak-check
|
||||||
|
|
||||||
#![feature(nll)]
|
#![feature(nll)]
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
// function returning always its first argument can be upcast to one
|
// function returning always its first argument can be upcast to one
|
||||||
// that returns either first or second argument.
|
// that returns either first or second argument.
|
||||||
//
|
//
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
// compile-flags:-Zno-leak-check
|
// compile-flags:-Zno-leak-check
|
||||||
|
|
||||||
#![feature(nll)]
|
#![feature(nll)]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// Test that when we infer the lifetime to a subset of the fn body, it
|
// Test that when we infer the lifetime to a subset of the fn body, it
|
||||||
// works out.
|
// works out.
|
||||||
//
|
//
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
trait MyTrait<'a> {
|
trait MyTrait<'a> {
|
||||||
type Output;
|
type Output;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
// we don't even propagate constraints from the closures to the callers.
|
// we don't even propagate constraints from the closures to the callers.
|
||||||
|
|
||||||
// compile-flags:-Zborrowck=mir -Zverbose
|
// compile-flags:-Zborrowck=mir -Zverbose
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![allow(warnings)]
|
#![allow(warnings)]
|
||||||
#![feature(rustc_attrs)]
|
#![feature(rustc_attrs)]
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
//
|
//
|
||||||
// Regression test for #53121.
|
// Regression test for #53121.
|
||||||
//
|
//
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
trait MyTrait<'a> {
|
trait MyTrait<'a> {
|
||||||
type Output;
|
type Output;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
// MyTrait<'a>>::Output: 'a` outlives `'a` (because the trait says
|
// MyTrait<'a>>::Output: 'a` outlives `'a` (because the trait says
|
||||||
// so).
|
// so).
|
||||||
//
|
//
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
trait MyTrait<'a> {
|
trait MyTrait<'a> {
|
||||||
type Output: 'a;
|
type Output: 'a;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// compile-flags:-Zborrowck=mir -Zverbose
|
// compile-flags:-Zborrowck=mir -Zverbose
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
// Test that we assume that universal types like `T` outlive the
|
// Test that we assume that universal types like `T` outlive the
|
||||||
// function body.
|
// function body.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
// Check that we don't try to downcast `_` when type-checking the annotation.
|
// Check that we don't try to downcast `_` when type-checking the annotation.
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue