Skip to content

Commit 4a7c8cc

Browse files
committed
Add // run-pass to collection of tests.
1 parent 65780bc commit 4a7c8cc

30 files changed

+31
-1
lines changed

src/test/ui/run-pass/borrowck/borrowck-assign-to-subfield.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
1112
// pretty-expanded FIXME #23616
1213

1314
pub fn main() {

src/test/ui/run-pass/borrowck/borrowck-assignment-to-static-mut.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

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

1314
// revisions: ast mir

src/test/ui/run-pass/borrowck/borrowck-binding-mutbl.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
struct F { f: Vec<isize> }
1214

1315
fn impure(_v: &[isize]) {

src/test/ui/run-pass/borrowck/borrowck-borrow-from-expr-block.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
1112
#![feature(box_syntax)]
1213

1314
fn borrow<F>(x: &isize, f: F) where F: FnOnce(&isize) {

src/test/ui/run-pass/borrowck/borrowck-borrow-of-mut-base-ptr-safe.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
1112
// Test that freezing an `&mut` pointer while referent is
1213
// frozen is legal.
1314
//

src/test/ui/run-pass/borrowck/borrowck-closures-two-imm.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
1112
// Tests that two closures can simultaneously have immutable
1213
// access to the variable, whether that immutable access be used
1314
// for direct reads or for taking immutable ref. Also check

src/test/ui/run-pass/borrowck/borrowck-field-sensitivity.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
1112
// pretty-expanded FIXME #23616
1213

1314
#![feature(box_syntax)]

src/test/ui/run-pass/borrowck/borrowck-fixed-length-vecs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
1112

1213
pub fn main() {
1314
let x = [22];

src/test/ui/run-pass/borrowck/borrowck-freeze-frozen-mut.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

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

1314

src/test/ui/run-pass/borrowck/borrowck-lend-args.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
1112

1213
// pretty-expanded FIXME #23616
1314

0 commit comments

Comments
 (0)