Skip to content

Commit eb74017

Browse files
committed
Auto merge of #53860 - pnkfelix:issue-53764-migrate-run-pass-to-ui, r=nikomatsakis
Migrate (some) of run-pass/ to ui This is a step towards addressing #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 #53764 is to keep the *filenames* invariant, even as their parents directories and contents are mildly revised...)
2 parents cd5c26f + 74a5aef commit eb74017

File tree

2,588 files changed

+3887
-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

+3887
-73
lines changed

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

+2
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

+3
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

+2
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
// Test that we cleanup a fixed size Box<[D; k]> properly when D has a
1214
// destructor.
1315

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

+2
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
// Test that we cleanup dynamic sized Box<[D]> properly when D has a
1214
// destructor.
1315

src/test/run-pass/cast-in-array-size.rs renamed to src/test/ui/run-pass/array-slice-vec/cast-in-array-size.rs

+2
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

+2
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

+2
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

+2
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

+2
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

+2
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)]

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

+2
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
pub fn main() {
1315
let x = "hello";

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
#![allow(dead_assignment)]
11+
// run-pass
1212

1313
pub fn main() {
1414
let x : &[isize] = &[1,2,3,4,5];

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

+2
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
pub fn main() {
1315
let arr = [1,2,3];

src/test/run-pass/huge-largest-array.rs renamed to src/test/ui/run-pass/array-slice-vec/huge-largest-array.rs

+2
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
use std::mem::size_of;
1315

src/test/run-pass/ivec-pass-by-value.rs renamed to src/test/ui/run-pass/array-slice-vec/ivec-pass-by-value.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// run-pass
12+
1113
fn f(_a: Vec<isize> ) { }
1214
pub fn main() { f(vec![1, 2, 3, 4, 5]); }

src/test/run-pass/mutability-inherits-through-fixed-length-vec.rs renamed to src/test/ui/run-pass/array-slice-vec/mutability-inherits-through-fixed-length-vec.rs

+2
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
fn test1() {
1315
let mut ints = [0; 32];

src/test/run-pass/mutable-alias-vec.rs renamed to src/test/ui/run-pass/array-slice-vec/mutable-alias-vec.rs

+2
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
fn grow(v: &mut Vec<isize> ) {
1214
v.push(1);
1315
}

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

+2
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
// Test that using the `vec!` macro nested within itself works
1214

1315
fn main() {

src/test/run-pass/nested-vec-2.rs renamed to src/test/ui/run-pass/array-slice-vec/nested-vec-2.rs

+2
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
// Test that using the `vec!` macro nested within itself works
1214
// when the contents implement Drop
1315

src/test/run-pass/nested-vec-3.rs renamed to src/test/ui/run-pass/array-slice-vec/nested-vec-3.rs

+2
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
// ignore-emscripten no threads support
1214

1315
// Test that using the `vec!` macro nested within itself works when

src/test/run-pass/new-style-fixed-length-vec.rs renamed to src/test/ui/run-pass/array-slice-vec/new-style-fixed-length-vec.rs

+2
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
static FOO: [isize; 3] = [1, 2, 3];
1214

1315
pub fn main() {

src/test/run-pass/rcvr-borrowed-to-slice.rs renamed to src/test/ui/run-pass/array-slice-vec/rcvr-borrowed-to-slice.rs

+3
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+
13+
#![allow(non_camel_case_types)]
1114

1215
trait sum {
1316
fn sum_(self) -> isize;

src/test/run-pass/repeated-vector-syntax.rs renamed to src/test/ui/run-pass/array-slice-vec/repeated-vector-syntax.rs

+2
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
pub fn main() {
1214
let x = [ [true]; 512 ];
1315
let y = [ 0; 1 ];

src/test/run-pass/show-boxed-slice.rs renamed to src/test/ui/run-pass/array-slice-vec/show-boxed-slice.rs

+2
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
#[derive(Debug)]
1214
struct Foo(Box<[u8]>);
1315

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

+2
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
// Test slicing expressions on slices and Vecs.
1214

1315

src/test/run-pass/slice-of-zero-size-elements.rs renamed to src/test/ui/run-pass/array-slice-vec/slice-of-zero-size-elements.rs

+3
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
// compile-flags: -C debug-assertions
1215

1316
#![feature(iter_to_slice)]

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

+2
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
// ignore-emscripten no threads support
1214

1315
// Test that if a slicing expr[..] fails, the correct cleanups happen.

src/test/run-pass/slice-panic-2.rs renamed to src/test/ui/run-pass/array-slice-vec/slice-panic-2.rs

+2
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
// ignore-emscripten no threads support
1214

1315
// Test that if a slicing expr[..] fails, the correct cleanups happen.

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

+2
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
// Test slicing sugar.
1214

1315
extern crate core;

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

+2
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
// Test binary_search_by_key lifetime. Issue #34683
1214

1315
#[derive(Debug)]

src/test/run-pass/variance-vec-covariant.rs renamed to src/test/ui/run-pass/array-slice-vec/variance-vec-covariant.rs

+2
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
// Test that vec is now covariant in its argument type.
1214

1315
#![allow(dead_code)]

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

+2
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::vec;
1214

1315
pub fn main() {

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

+2
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
#![feature(box_syntax)]
1214

1315
pub fn main() {

src/test/run-pass/vec-fixed-length.rs renamed to src/test/ui/run-pass/array-slice-vec/vec-fixed-length.rs

+2
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
use std::mem::size_of;
1315

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

+2
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

1315
pub fn main() {

src/test/run-pass/vec-late-init.rs renamed to src/test/ui/run-pass/array-slice-vec/vec-late-init.rs

+2
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
pub fn main() {
1315
let mut later: Vec<isize> ;

src/test/run-pass/vec-macro-no-std.rs renamed to src/test/ui/run-pass/array-slice-vec/vec-macro-no-std.rs

+2
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
// ignore-emscripten no no_std executables
1214

1315
#![feature(lang_items, start, libc, alloc)]

src/test/run-pass/vec-macro-repeat.rs renamed to src/test/ui/run-pass/array-slice-vec/vec-macro-repeat.rs

+2
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

1315
pub fn main() {

src/test/run-pass/vec-macro-rvalue-scope.rs renamed to src/test/ui/run-pass/array-slice-vec/vec-macro-rvalue-scope.rs

+2
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
fn one() -> i32 { 1 }
1315

src/test/run-pass/vec-macro-with-brackets.rs renamed to src/test/ui/run-pass/array-slice-vec/vec-macro-with-brackets.rs

+2
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
macro_rules! vec [

src/test/run-pass/vec-macro-with-trailing-comma.rs renamed to src/test/ui/run-pass/array-slice-vec/vec-macro-with-trailing-comma.rs

+2
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

1315
pub fn main() {

src/test/run-pass/vec-matching-autoslice.rs renamed to src/test/ui/run-pass/array-slice-vec/vec-matching-autoslice.rs

+3
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(illegal_floating_point_literal_pattern)] // FIXME #41620
13+
1114
pub fn main() {
1215
let x = [1, 2, 3];
1316
match x {

src/test/run-pass/vec-matching-fixed.rs renamed to src/test/ui/run-pass/array-slice-vec/vec-matching-fixed.rs

+2
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
#![feature(slice_patterns)]
1214

1315
fn a() {

src/test/run-pass/vec-matching-fold.rs renamed to src/test/ui/run-pass/array-slice-vec/vec-matching-fold.rs

+2
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
#![feature(slice_patterns)]
1214

1315
use std::fmt::Debug;

0 commit comments

Comments
 (0)