Skip to content

Commit 3792dbd

Browse files
committed
Rollup merge of rust-lang#53860 - pnkfelix:issue-53764-migrate-run-pass-to-ui, r=nikomatsakis
Migrate (some) of run-pass/ to ui This is a step towards addressing rust-lang#53764. Much still remains. I went through a large portion of the `*.rs` files that were directly stored into `src/test/run-pass/` and moved them into various subdirectories of a newly created `src/test/ui/run-pass/`. (yes, it would have perhaps been nice to meld it more directly with directories already in `src/test/ui/`; but the sad truth is that opens up the reality of filename collisions, and one of my short term goals for resolving rust-lang#53764 is to keep the *filenames* invariant, even as their parents directories and contents are mildly revised...)
2 parents 1805f3c + 5fe0851 commit 3792dbd

File tree

2,588 files changed

+3898
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,588 files changed

+3898
-73
lines changed

src/test/run-pass/arr_cycle.rs renamed to src/test/ui/run-pass/array-slice-vec/arr_cycle.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
use std::cell::Cell;
1214

1315
#[derive(Debug)]

src/test/run-pass/array_const_index-1.rs renamed to src/test/ui/run-pass/array-slice-vec/array_const_index-1.rs

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

11+
// run-pass
12+
#![allow(stable_features)]
13+
1114
#![feature(const_indexing)]
1215

1316
fn main() {

src/test/run-pass/box-of-array-of-drop-1.rs renamed to src/test/ui/run-pass/array-slice-vec/box-of-array-of-drop-1.rs

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

11+
// run-pass
12+
#![allow(overflowing_literals)]
13+
1114
// Test that we cleanup a fixed size Box<[D; k]> properly when D has a
1215
// destructor.
1316

src/test/run-pass/box-of-array-of-drop-2.rs renamed to src/test/ui/run-pass/array-slice-vec/box-of-array-of-drop-2.rs

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

11+
// run-pass
12+
#![allow(overflowing_literals)]
13+
1114
// Test that we cleanup dynamic sized Box<[D]> properly when D has a
1215
// destructor.
1316

src/test/run-pass/cast-in-array-size.rs renamed to src/test/ui/run-pass/array-slice-vec/cast-in-array-size.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

1214
// issues #10618 and #16382
1315
// pretty-expanded FIXME #23616

src/test/run-pass/check-static-mut-slices.rs renamed to src/test/ui/run-pass/array-slice-vec/check-static-mut-slices.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
// Checks that mutable static items can have mutable slices
1214

1315

src/test/run-pass/check-static-slice.rs renamed to src/test/ui/run-pass/array-slice-vec/check-static-slice.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
// Check that the various ways of getting to a reference to a vec (both sized
1214
// and unsized) work properly.
1315

src/test/run-pass/copy-out-of-array-1.rs renamed to src/test/ui/run-pass/array-slice-vec/copy-out-of-array-1.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
// Ensure that we can copy out of a fixed-size array.
1214
//
1315
// (Compare with compile-fail/move-out-of-array-1.rs)

src/test/run-pass/destructure-array-1.rs renamed to src/test/ui/run-pass/array-slice-vec/destructure-array-1.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
// Ensure that we can do a destructuring bind of a fixed-size array,
1214
// even when the element type has a destructor.
1315

src/test/run-pass/empty-mutable-vec.rs renamed to src/test/ui/run-pass/array-slice-vec/empty-mutable-vec.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
// pretty-expanded FIXME #23616
1214

1315
#![allow(unused_mut)]

0 commit comments

Comments
 (0)