Skip to content

Commit ba57ef1

Browse files
committed
Rollup merge of #53994 - pnkfelix:issue-53764-migrate-run-pass-dirs-to-ui, r=alexcrichton
migrate run-pass/*/ to ui/run-pass I think this is all that remains of #53764
2 parents 12b3826 + 4973094 commit ba57ef1

File tree

171 files changed

+291
-0
lines changed

Some content is hidden

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

171 files changed

+291
-0
lines changed

src/test/run-pass/allocator/custom.rs renamed to src/test/ui/run-pass/allocator/custom.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
// aux-build:helper.rs
1214
// no-prefer-dynamic
1315

src/test/run-pass/allocator/xcrate-use.rs renamed to src/test/ui/run-pass/allocator/xcrate-use.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
// aux-build:custom.rs
1214
// aux-build:helper.rs
1315
// no-prefer-dynamic

src/test/run-pass/allocator/xcrate-use2.rs renamed to src/test/ui/run-pass/allocator/xcrate-use2.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
// aux-build:custom.rs
1214
// aux-build:custom-as-global.rs
1315
// aux-build:helper.rs

src/test/run-pass/bench/issue-32062.rs renamed to src/test/ui/run-pass/bench/issue-32062.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
fn main() {

src/test/run-pass/ctfe/assoc-const.rs renamed to src/test/ui/run-pass/ctfe/assoc-const.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
trait Nat {
1214
const VALUE: usize;
1315
}

src/test/run-pass/ctfe/bswap-const.rs renamed to src/test/ui/run-pass/ctfe/bswap-const.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(core_intrinsics)]
1214

1315
use std::intrinsics;

src/test/run-pass/ctfe/chained-constants-stackoverflow.rs renamed to src/test/ui/run-pass/ctfe/chained-constants-stackoverflow.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
// https://github.com/rust-lang/rust/issues/34997
1214

1315
pub const CST_1: u32 = 0;

src/test/run-pass/ctfe/const-block-non-item-statement-3.rs renamed to src/test/ui/run-pass/ctfe/const-block-non-item-statement-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
#![feature(const_let)]
1214

1315
type Array = [u32; { let x = 2; 5 }];

src/test/run-pass/ctfe/const-block-non-item-statement.rs renamed to src/test/ui/run-pass/ctfe/const-block-non-item-statement.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(const_let)]
1214

1315
enum Foo {

src/test/run-pass/ctfe/const-fn-destructuring-arg.rs renamed to src/test/ui/run-pass/ctfe/const-fn-destructuring-arg.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 certain things are disallowed in constant functions
1214

1315
#![feature(const_fn, const_let)]

src/test/run-pass/ctfe/deref_in_pattern.rs renamed to src/test/ui/run-pass/ctfe/deref_in_pattern.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
// https://github.com/rust-lang/rust/issues/25574
1214

1315
const A: [u8; 4] = *b"fooo";

src/test/run-pass/ctfe/ice-48279.rs renamed to src/test/ui/run-pass/ctfe/ice-48279.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
// https://github.com/rust-lang/rust/issues/48279
1214

1315
#![feature(min_const_fn)]

src/test/run-pass/ctfe/issue-37550.rs renamed to src/test/ui/run-pass/ctfe/issue-37550.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(const_fn, const_let)]
1214

1315
const fn x() {

src/test/run-pass/ctfe/issue-broken-mir.rs renamed to src/test/ui/run-pass/ctfe/issue-broken-mir.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
// https://github.com/rust-lang/rust/issues/27918
1214

1315
fn main() {

src/test/run-pass/ctfe/locals-in-const-fn.rs renamed to src/test/ui/run-pass/ctfe/locals-in-const-fn.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
// https://github.com/rust-lang/rust/issues/48821
1214

1315
#![feature(const_fn, const_let)]

src/test/run-pass/ctfe/match-const-fn-structs.rs renamed to src/test/ui/run-pass/ctfe/match-const-fn-structs.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
// https://github.com/rust-lang/rust/issues/46114
1214

1315
#![feature(min_const_fn)]

src/test/run-pass/ctfe/mozjs-error.rs renamed to src/test/ui/run-pass/ctfe/mozjs-error.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(non_upper_case_globals)]
13+
1114
struct CustomAutoRooterVFTable {
1215
trace: unsafe extern "C" fn(this: *mut i32, trc: *mut u32),
1316
}

src/test/run-pass/ctfe/non-scalar-cast.rs renamed to src/test/ui/run-pass/ctfe/non-scalar-cast.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
// https://github.com/rust-lang/rust/issues/37448
1214

1315
fn main() {

src/test/run-pass/ctfe/promotion.rs renamed to src/test/ui/run-pass/ctfe/promotion.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
// compile-flags: -O
1214

1315
fn foo(_: &'static [&'static str]) {}

src/test/run-pass/ctfe/references.rs renamed to src/test/ui/run-pass/ctfe/references.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
const FOO: &[u8] = b"foo";
1214
const BAR: &[u8] = &[1, 2, 3];
1315

src/test/run-pass/ctfe/repeat_match.rs renamed to src/test/ui/run-pass/ctfe/repeat_match.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
// https://github.com/rust-lang/rust/issues/45044
1214

1315
const X: [u8; 1] = [0; 1];

src/test/run-pass/ctfe/return-in-const-fn.rs renamed to src/test/ui/run-pass/ctfe/return-in-const-fn.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
// https://github.com/rust-lang/rust/issues/43754
1214

1315
#![feature(min_const_fn)]

src/test/run-pass/ctfe/signed_enum_discr.rs renamed to src/test/ui/run-pass/ctfe/signed_enum_discr.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
// https://github.com/rust-lang/rust/issues/49181
1214

1315
#[derive(Eq, PartialEq)]

src/test/run-pass/ctfe/transmute-const.rs renamed to src/test/ui/run-pass/ctfe/transmute-const.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(const_transmute)]
1214

1315
use std::mem;

src/test/run-pass/ctfe/tuple-struct-constructors.rs renamed to src/test/ui/run-pass/ctfe/tuple-struct-constructors.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
// https://github.com/rust-lang/rust/issues/41898
1214

1315
use std::num::NonZeroU64;

src/test/run-pass/generator/borrow-in-tail-expr.rs renamed to src/test/ui/run-pass/generator/borrow-in-tail-expr.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(generators)]
1214

1315
fn main() {

src/test/run-pass/generator/conditional-drop.rs renamed to src/test/ui/run-pass/generator/conditional-drop.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(generators, generator_trait)]
1214

1315
use std::ops::Generator;

src/test/run-pass/generator/control-flow.rs renamed to src/test/ui/run-pass/generator/control-flow.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(generators, generator_trait)]
1214

1315
use std::ops::{GeneratorState, Generator};

src/test/run-pass/generator/drop-env.rs renamed to src/test/ui/run-pass/generator/drop-env.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(generators, generator_trait)]
1214

1315
use std::ops::Generator;

src/test/run-pass/generator/issue-44197.rs renamed to src/test/ui/run-pass/generator/issue-44197.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(generators, generator_trait)]
1214

1315
use std::ops::{ Generator, GeneratorState };

src/test/run-pass/generator/issue-52398.rs renamed to src/test/ui/run-pass/generator/issue-52398.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(generators)]
1214

1315
use std::cell::RefCell;

src/test/run-pass/generator/iterator-count.rs renamed to src/test/ui/run-pass/generator/iterator-count.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(generators, generator_trait)]
1214

1315
use std::ops::{GeneratorState, Generator};

src/test/run-pass/generator/live-upvar-across-yield.rs renamed to src/test/ui/run-pass/generator/live-upvar-across-yield.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(generators, generator_trait)]
1214

1315
use std::ops::Generator;

src/test/run-pass/generator/match-bindings.rs renamed to src/test/ui/run-pass/generator/match-bindings.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(generators)]
1214

1315
enum Enum {

src/test/run-pass/generator/nested_generators.rs renamed to src/test/ui/run-pass/generator/nested_generators.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(generators)]
1214
#![feature(generator_trait)]
1315

src/test/run-pass/generator/panic-drops.rs renamed to src/test/ui/run-pass/generator/panic-drops.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-wasm32-bare compiled as panic=abort by default
1214

1315
#![feature(generators, generator_trait)]

src/test/run-pass/generator/panic-safe.rs renamed to src/test/ui/run-pass/generator/panic-safe.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-wasm32-bare compiled with panic=abort by default
1214

1315
#![feature(generators, generator_trait)]

src/test/run-pass/generator/reborrow-mut-upvar.rs renamed to src/test/ui/run-pass/generator/reborrow-mut-upvar.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(generators)]
1214

1315
fn _run(bar: &mut i32) {

src/test/run-pass/generator/resume-after-return.rs renamed to src/test/ui/run-pass/generator/resume-after-return.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-wasm32-bare compiled with panic=abort by default
1214

1315
#![feature(generators, generator_trait)]

src/test/run-pass/generator/smoke.rs renamed to src/test/ui/run-pass/generator/smoke.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
// compile-flags: --test
1315

src/test/run-pass/generator/static-generators.rs renamed to src/test/ui/run-pass/generator/static-generators.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(generators, generator_trait)]
1214

1315
use std::ops::{Generator, GeneratorState};

src/test/run-pass/generator/too-live-local-in-immovable-gen.rs renamed to src/test/ui/run-pass/generator/too-live-local-in-immovable-gen.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(generators)]
1214

1315
fn main() {

src/test/run-pass/generator/xcrate-reachable.rs renamed to src/test/ui/run-pass/generator/xcrate-reachable.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
// aux-build:xcrate-reachable.rs
1214

1315
#![feature(generator_trait)]

src/test/run-pass/generator/xcrate.rs renamed to src/test/ui/run-pass/generator/xcrate.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
// aux-build:xcrate.rs
1214

1315
#![feature(generators, generator_trait)]

0 commit comments

Comments
 (0)