Skip to content

Commit 98235a0

Browse files
committed
Added // run-pass to a slew of tests.
1 parent df6b006 commit 98235a0

File tree

81 files changed

+162
-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.

81 files changed

+162
-0
lines changed

src/test/ui/run-pass/allocator/allocator-alloc-one.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(allocator_api, nonnull)]
1214

1315
use std::alloc::{Alloc, Global, Layout, handle_alloc_error};

src/test/ui/run-pass/allocator/box-new.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/ui/run-pass/allocator/empty-allocation-non-null.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
assert!(Some(Box::new(())).is_some());
1315

src/test/ui/run-pass/allocator/empty-allocation-rvalue-non-null.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
pub fn main() {

src/test/ui/run-pass/allocator/realloc-16687.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
// alloc::heap::reallocate test.
1214
//
1315
// Ideally this would be revised to use no_std, but for now it serves

src/test/ui/run-pass/associated-types/associated-item-long-paths.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::mem::size_of;
1214

1315
// The main point of this test is to ensure that we can parse and resolve

src/test/ui/run-pass/binding/bind-by-move.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::sync::Arc;
1315
fn dispose(_x: Arc<bool>) { }

src/test/ui/run-pass/binding/resolve-issue-2428.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
const foo: isize = 4 >> 1;
1315
enum bs { thing = foo }

src/test/ui/run-pass/binding/resolve-pseudo-shadowing.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 type parameters can't "shadow" qualified paths.
1214

1315
fn check<Clone>(_c: Clone) {

src/test/ui/run-pass/consts/const-int-conversion.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_int_conversion, const_int_ops, reverse_bits, int_to_from_bytes)]
1214

1315
const REVERSE: u32 = 0x12345678_u32.reverse_bits();

src/test/ui/run-pass/consts/const-int-overflowing.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_int_overflowing)]
1214

1315
const ADD_A: (u32, bool) = 5u32.overflowing_add(2);

src/test/ui/run-pass/consts/const-int-rotate.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_int_rotate)]
1214

1315
const LEFT: u32 = 0x10000b3u32.rotate_left(8);

src/test/ui/run-pass/consts/const-int-sign.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_int_sign)]
1214

1315
const NEGATIVE_A: bool = (-10i32).is_negative();

src/test/ui/run-pass/consts/const-int-wrapping.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_int_wrapping)]
1214

1315
const ADD_A: u32 = 200u32.wrapping_add(55);

src/test/ui/run-pass/drop/cleanup-arm-conditional.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 cleanup scope for temporaries created in a match
1214
// arm is confined to the match arm itself.
1315

src/test/ui/run-pass/drop/cleanup-rvalue-during-if-and-while.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
// This test verifies that temporaries created for `while`'s and `if`
1214
// conditions are dropped after the condition is evaluated.
1315

src/test/ui/run-pass/drop/cleanup-rvalue-for-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
// Test that the lifetime of rvalues in for loops is extended
1214
// to the for loop itself.
1315

src/test/ui/run-pass/drop/cleanup-rvalue-scopes.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 destructors for rvalue temporaries run either at end of
1214
// statement or end of block, as appropriate given the temporary
1315
// lifetime rules.

src/test/ui/run-pass/drop/cleanup-rvalue-temp-during-incomplete-alloc.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 cleanup of rvalue temporary that occurs while `box` construction
1214
// is in progress. This scenario revealed a rather terrible bug. The
1315
// ingredients are:

src/test/ui/run-pass/drop/cleanup-shortcircuit.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 cleanups for the RHS of shortcircuiting operators work.
1214

1315
// pretty-expanded FIXME #23616

src/test/ui/run-pass/drop/resource-assign-is-not-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
use std::cell::Cell;
1214

1315
#[derive(Debug)]

src/test/ui/run-pass/drop/resource-destruct.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
struct shrinky_pointer<'a> {

src/test/ui/run-pass/drop/use_inline_dtor.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:inline_dtor.rs
1214

1315
// pretty-expanded FIXME #23616

src/test/ui/run-pass/foreign/abi-sysv64-arg-passing.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 if the "sysv64" calling convention behaves the same as the
1214
// "C" calling convention on platforms where both should be the same
1315

src/test/ui/run-pass/foreign/abi-sysv64-register-usage.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 if the correct registers are being used to pass arguments
1214
// when the sysv64 ABI is specified.
1315

src/test/ui/run-pass/foreign/abort-on-c-abi.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
// Since we mark some ABIs as "nounwind" to LLVM, we must make sure that
1214
// we never unwind through them.
1315

src/test/ui/run-pass/foreign/align-with-extern-c-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
// #45662
1214

1315
#![feature(repr_align)]

src/test/ui/run-pass/foreign/anon-extern-mod.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
// ignore-wasm32-bare no libc to test ffi with
1315

src/test/ui/run-pass/foreign/c-stack-as-value.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
// ignore-wasm32-bare no libc to test ffi with
1315

src/test/ui/run-pass/foreign/c-stack-returning-int64.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 no libc to test with
1214

1315
#![feature(libc)]

src/test/ui/run-pass/foreign/cabi-int-widening.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 no libc to test ffi with
1214

1315
#[link(name = "rust_test_helpers", kind = "static")]

src/test/ui/run-pass/foreign/crt-static-off-works.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:-C target-feature=-crt-static -Z unstable-options
1214
// ignore-musl - requires changing the linker which is hard
1315

src/test/ui/run-pass/foreign/crt-static-on-works.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:-C target-feature=+crt-static -Z unstable-options
1214

1315
#![feature(cfg_target_feature)]

src/test/ui/run-pass/foreign/invoke-external-foreign.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:foreign_lib.rs
1214
// ignore-wasm32-bare no libc to test ffi with
1315

src/test/ui/run-pass/foreign/repr_c_int_align.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
#![allow(dead_code)]

src/test/ui/run-pass/foreign/variadic-ffi.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 no libc to test ffi with
1214

1315
#[link(name = "rust_test_helpers", kind = "static")]

src/test/ui/run-pass/foreign/warn-ctypes-inhibit.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:-D improper-ctypes
1214

1315
// pretty-expanded FIXME #23616

src/test/ui/run-pass/foreign/weak-lang-item.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:weak-lang-items.rs
1214

1315
// ignore-emscripten no threads support

src/test/ui/run-pass/functions-closures/argument-passing.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
struct X {

src/test/ui/run-pass/functions-closures/bare-fn-implements-fn-mut.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::ops::FnMut;
1214

1315
fn call_f<F:FnMut()>(mut f: F) {

src/test/ui/run-pass/functions-closures/block-arg-call-as.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 asBlock<F>(f: F) -> usize where F: FnOnce() -> usize {
1315
return f();

src/test/ui/run-pass/functions-closures/block-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
// Check usage and precedence of block arguments in expressions:
1214
pub fn main() {
1315
let v = vec![-1.0f64, 0.0, 1.0, 2.0, 3.0];

src/test/ui/run-pass/functions-closures/block-explicit-types.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
fn as_buf<T, F>(s: String, f: F) -> T where F: FnOnce(String) -> T { f(s) }
1315
as_buf("foo".to_string(), |foo: String| -> () { println!("{}", foo) });

src/test/ui/run-pass/functions-closures/block-fn-coerce.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 force<F>(f: F) -> isize where F: FnOnce() -> isize { return f(); }
1315

0 commit comments

Comments
 (0)