Skip to content

Commit 3d841c1

Browse files
authored
Rollup merge of #156241 - danieljofficial:move-tests-coercion, r=Kivooeo
Move tests coercion Hi, I have moved some tests that belong in the coercion folder. Please take out time to review r? @Kivooeo
2 parents 6fa435d + c5cf608 commit 3d841c1

4 files changed

Lines changed: 7 additions & 1 deletion

tests/ui/issues/issue-18539.rs renamed to tests/ui/coercion/coerce-bare-fn-returning-zst-to-closure.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/18539
2+
13
//@ run-pass
24
// Test that coercing bare fn's that return a zero sized type to
35
// a closure doesn't cause an LLVM ERROR

tests/ui/issues/issue-47722.rs renamed to tests/ui/coercion/coerce-mut-ref-to-raw-ptr-borrow-expires.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/47722
2+
13
//@ check-pass
24

35
// Tests that automatic coercions from &mut T to *mut T

tests/ui/issues/issue-33387.rs renamed to tests/ui/coercion/coerce-trait-object-removes-send-bound.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Regression test for https://github.com/rust-lang/rust/issues/33387
2+
13
//@ run-pass
24
#![feature(rustc_attrs)]
35

tests/ui/issues/issue-41936-variance-coerce-unsized-cycle.rs renamed to tests/ui/coercion/variance-coerce-unsized-cycle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//@ check-pass
22
#![allow(dead_code)]
3-
// Regression test for #41936. The coerce-unsized trait check in
3+
// Regression test for https://github.com/rust-lang/rust/issues/41936. The coerce-unsized trait check in
44
// coherence was using subtyping, which triggered variance
55
// computation, which failed because it required type info for fields
66
// that had not (yet) been computed.

0 commit comments

Comments
 (0)