Skip to content

Commit

Permalink
Add // run-pass to collection of tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Sep 6, 2018
1 parent 65780bc commit 4a7c8cc
Show file tree
Hide file tree
Showing 30 changed files with 31 additions and 1 deletion.
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// pretty-expanded FIXME #23616

pub fn main() {
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// Test taken from #45641 (https://github.com/rust-lang/rust/issues/45641)

// revisions: ast mir
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/borrowck/borrowck-binding-mutbl.rs
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

struct F { f: Vec<isize> }

fn impure(_v: &[isize]) {
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
#![feature(box_syntax)]

fn borrow<F>(x: &isize, f: F) where F: FnOnce(&isize) {
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// Test that freezing an `&mut` pointer while referent is
// frozen is legal.
//
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/borrowck/borrowck-closures-two-imm.rs
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// Tests that two closures can simultaneously have immutable
// access to the variable, whether that immutable access be used
// for direct reads or for taking immutable ref. Also check
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// pretty-expanded FIXME #23616

#![feature(box_syntax)]
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

pub fn main() {
let x = [22];
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// Test that a `&mut` inside of an `&` is freezable.


Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/borrowck/borrowck-lend-args.rs
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// pretty-expanded FIXME #23616

Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// Check that we do not ICE when compiling this
// macro, which reuses the expression `$id`

Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
#![feature(box_syntax)]

pub fn main() {
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// Test case from #39963.

#![feature(nll)]
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/borrowck/borrowck-mut-uniq.rs
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
#![feature(box_syntax)]

use std::mem::swap;
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass


fn want_slice(v: &[isize]) -> isize {
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/borrowck/borrowck-pat-enum.rs
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// ignore-pretty issue #37199

fn match_ref(v: Option<isize>) -> isize {
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

pub fn main() {
let mut x = None;
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/borrowck/borrowck-rvalues-mutable.rs
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

struct Counter {
value: usize
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// Tests that the scope of the pointer returned from `get()` is
// limited to the deref operation itself, and does not infect the
// block as a whole.
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
//compile-flags: -Z borrowck=mir

#![feature(slice_patterns)]
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// Regression test for issue #7740

// pretty-expanded FIXME #23616
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/borrowck/borrowck-trait-lifetime.rs
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// This test verifies that casting from the same lifetime on a value
// to the same lifetime on a trait succeeds. See issue #10766.

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/borrowck/borrowck-uniq-via-ref.rs
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// pretty-expanded FIXME #23616

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/run-pass/borrowck/borrowck-univariant-enum.rs
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.


// run-pass

use std::cell::Cell;

Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// revisions: ast mir
//[mir]compile-flags: -Z borrowck=mir

Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
#![feature(nll)]
#![deny(unused_mut)]

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/borrowck/borrowck-use-mut-borrow.rs
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// pretty-expanded FIXME #23616

#![feature(box_syntax)]
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/borrowck/two-phase-baseline.rs
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// compile-flags: -Z borrowck=mir -Z two-phase-borrows

// This is the "goto example" for why we want two phase borrows.
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/run-pass/borrowck/two-phase-bin-ops.rs
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// revisions: lxl nll

#![cfg_attr(nll, feature(nll))]
Expand Down
Expand Up @@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass
// revisions: lxl nll
//[lxl]compile-flags: -Z borrowck=mir -Z two-phase-borrows

Expand Down

0 comments on commit 4a7c8cc

Please sign in to comment.