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

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
#![feature(allocator_api, nonnull)]
1214

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

src/test/ui/run-pass/allocator/box-new.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
fn main() {

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

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

src/test/ui/run-pass/allocator/realloc-16687.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
// 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

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::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

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
use std::sync::Arc;
1315
fn dispose(_x: Arc<bool>) { }

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

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

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

src/test/ui/run-pass/consts/const-int-conversion.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
#![feature(const_int_conversion, const_int_ops, reverse_bits, int_to_from_bytes)]
1214

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

0 commit comments

Comments
 (0)