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 76ceedd commit f3b766d
Show file tree
Hide file tree
Showing 139 changed files with 278 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/allocator/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// aux-build:helper.rs
// no-prefer-dynamic

Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/allocator/xcrate-use.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// aux-build:custom.rs
// aux-build:helper.rs
// no-prefer-dynamic
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/allocator/xcrate-use2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// aux-build:custom.rs
// aux-build:custom-as-global.rs
// aux-build:helper.rs
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/bench/issue-32062.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// pretty-expanded FIXME #23616

fn main() {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/assoc-const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

trait Nat {
const VALUE: usize;
}
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/bswap-const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(core_intrinsics)]

use std::intrinsics;
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/chained-constants-stackoverflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// https://github.com/rust-lang/rust/issues/34997

pub const CST_1: u32 = 0;
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/const-block-non-item-statement-3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(const_let)]

type Array = [u32; { let x = 2; 5 }];
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/const-block-non-item-statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(const_let)]

enum Foo {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/const-fn-destructuring-arg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// test that certain things are disallowed in constant functions

#![feature(const_fn, const_let)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/deref_in_pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// https://github.com/rust-lang/rust/issues/25574

const A: [u8; 4] = *b"fooo";
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/ice-48279.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// https://github.com/rust-lang/rust/issues/48279

#![feature(min_const_fn)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/issue-37550.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(const_fn, const_let)]

const fn x() {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/issue-broken-mir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// https://github.com/rust-lang/rust/issues/27918

fn main() {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/locals-in-const-fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// https://github.com/rust-lang/rust/issues/48821

#![feature(const_fn, const_let)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/match-const-fn-structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// https://github.com/rust-lang/rust/issues/46114

#![feature(min_const_fn)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/mozjs-error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

struct CustomAutoRooterVFTable {
trace: unsafe extern "C" fn(this: *mut i32, trc: *mut u32),
}
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/non-scalar-cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// https://github.com/rust-lang/rust/issues/37448

fn main() {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/promotion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// compile-flags: -O

fn foo(_: &'static [&'static str]) {}
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/references.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

const FOO: &[u8] = b"foo";
const BAR: &[u8] = &[1, 2, 3];

Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/repeat_match.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// https://github.com/rust-lang/rust/issues/45044

const X: [u8; 1] = [0; 1];
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/return-in-const-fn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// https://github.com/rust-lang/rust/issues/43754

#![feature(min_const_fn)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/signed_enum_discr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// https://github.com/rust-lang/rust/issues/49181

#[derive(Eq, PartialEq)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/transmute-const.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(const_transmute)]

use std::mem;
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/ctfe/tuple-struct-constructors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// https://github.com/rust-lang/rust/issues/41898

use std::num::NonZeroU64;
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/borrow-in-tail-expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators)]

fn main() {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/conditional-drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators, generator_trait)]

use std::ops::Generator;
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/control-flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators, generator_trait)]

use std::ops::{GeneratorState, Generator};
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/drop-env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators, generator_trait)]

use std::ops::Generator;
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/issue-44197.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators, generator_trait)]

use std::ops::{ Generator, GeneratorState };
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/issue-52398.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators)]

use std::cell::RefCell;
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/iterator-count.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators, generator_trait)]

use std::ops::{GeneratorState, Generator};
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/live-upvar-across-yield.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators, generator_trait)]

use std::ops::Generator;
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/match-bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators)]

enum Enum {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/nested_generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators)]
#![feature(generator_trait)]

Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/panic-drops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// ignore-wasm32-bare compiled as panic=abort by default

#![feature(generators, generator_trait)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/panic-safe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// ignore-wasm32-bare compiled with panic=abort by default

#![feature(generators, generator_trait)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/reborrow-mut-upvar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators)]

fn _run(bar: &mut i32) {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/resume-after-return.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// ignore-wasm32-bare compiled with panic=abort by default

#![feature(generators, generator_trait)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/smoke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// ignore-emscripten no threads support
// compile-flags: --test

Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/static-generators.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators, generator_trait)]

use std::ops::{Generator, GeneratorState};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

#![feature(generators)]

fn main() {
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/xcrate-reachable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// aux-build:xcrate-reachable.rs

#![feature(generator_trait)]
Expand Down
2 changes: 2 additions & 0 deletions src/test/ui/run-pass/generator/xcrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// run-pass

// aux-build:xcrate.rs

#![feature(generators, generator_trait)]
Expand Down
Loading

0 comments on commit f3b766d

Please sign in to comment.