Skip to content

Commit 868d66c

Browse files
authored
Unrolled build for #150384
Rollup merge of #150384 - reddevilmidzy:t14, r=Kivooeo Tidying up tests/ui/issues 16 tests [7/N] > [!NOTE] > Intermediate commits are intended to help review, but will be squashed add comment commit prior to merge. part of #133895 r? Kivooeo
2 parents bd33b83 + 93f8ad9 commit 868d66c

24 files changed

+112
-94
lines changed

tests/ui/issues/issue-26614.rs renamed to tests/ui/associated-types/associated-type-const-nomalization.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/26614>
12
//@ check-pass
23

34
trait Mirror {

tests/ui/cast/cast-enum-const.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/2428>
2+
//@ run-pass
3+
4+
fn main() {
5+
const QUUX: isize = 5;
6+
7+
enum Stuff {
8+
Bar = QUUX,
9+
}
10+
11+
assert_eq!(Stuff::Bar as isize, QUUX);
12+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/22403>
12
//@ run-pass
23
fn main() {
34
let x = Box::new([1, 2, 3]);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/41998>
12
//@ check-pass
23

3-
44
fn main() {
55
if ('x' as char) < ('y' as char) {
66
print!("x");
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/25180>
2+
//@ check-pass
3+
#![allow(dead_code)]
4+
5+
const X: &'static dyn Fn() = &|| println!("ICE here");
6+
7+
fn main() {}

tests/ui/issues/issue-29030.rs renamed to tests/ui/derives/derive-debug-generic-with-lifetime.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/29030>
12
//@ check-pass
23
#![allow(dead_code)]
34
#[derive(Debug)]

tests/ui/issues/issue-25394.rs renamed to tests/ui/derives/derive-debug-newtype-unsized-slice.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/25394>
12
//@ check-pass
23
#![allow(dead_code)]
34
#[derive(Debug)]

tests/ui/issues/issue-33687.rs renamed to tests/ui/fn_traits/call-unit-struct-impl-fn-once.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/33687>
12
//@ run-pass
23
#![feature(unboxed_closures)]
34
#![feature(fn_traits)]

tests/ui/issues/issue-20847.rs renamed to tests/ui/fn_traits/fn-trait-explicit-call.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/20847>
12
//@ run-pass
23
#![feature(fn_traits)]
34

tests/ui/issues/issue-11384.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)