Skip to content
/ rust Public
forked from rust-lang/rust

Commit c1aeb89

Browse files
authored
Rollup merge of rust-lang#158003 - zedddie:gsoc-batch-9-meow, r=Kivooeo
Reorganize `tests/ui/issues` [9/N] Part of [GSoC'26 project](https://rust-lang.zulipchat.com/#narrow/channel/421156-gsoc/topic/Project.3A.20Reorganizing.20tests.2Fui.2Fissues) r? Kivooeo @Teapot4195
2 parents a9ba52c + 9e59547 commit c1aeb89

13 files changed

Lines changed: 33 additions & 44 deletions

tests/ui/issues/issue-22036.rs renamed to tests/ui/associated-types/assoc-type-projection-in-default-method.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/22036>.
12
//@ run-pass
23

34
trait DigitCollection: Sized {

tests/ui/issues/issue-22356.rs renamed to tests/ui/associated-types/associated-type-projection-alias-in-field.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/22356>.
2+
13
//@ check-pass
24
#![allow(type_alias_bounds)]
35

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/22629>.
2+
//! Test transitive analysis for associated types. Collected types
3+
//! should be normalized and new obligations generated.
4+
5+
//@ run-pass
6+
#![allow(unused_imports)]
7+
8+
use std::borrow::{ToOwned, Cow};
9+
10+
fn assert_send<T: Send>(_: T) {}
11+
12+
fn main() {
13+
assert_send(Cow::Borrowed("foo"));
14+
}

tests/ui/issues/issue-22258.rs renamed to tests/ui/associated-types/ret-associated-type.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/22258>.
2+
13
//@ run-pass
24
use std::ops::Add;
35

tests/ui/issues/issue-22673.rs renamed to tests/ui/associated-types/supertrait-bound-references-own-associated-type.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/22673>.
12
//@ check-pass
23

34
trait Expr: PartialEq<Self::Item> {

tests/ui/issues/issue-22777.rs renamed to tests/ui/dropck/no-dropck-overflow-on-deep-nesting.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
//! Regression test for <https://github.com/rust-lang/rust/issues/22443>.
2+
//!
3+
//! This test is reduced from librustc_ast. It is just checking that we
4+
//! can successfully deal with a "deep" structure, which the drop-check
5+
//! was hitting a recursion limit on at one point.
6+
17
//@ check-pass
2-
// This test is reduced from librustc_ast. It is just checking that we
3-
// can successfully deal with a "deep" structure, which the drop-check
4-
// was hitting a recursion limit on at one point.
58

69

710
#![allow(non_camel_case_types)]

tests/ui/issues/issue-22370.rs

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

tests/ui/issues/issue-22370.stderr

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

tests/ui/issues/issue-22629.rs

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

tests/ui/issues/issue-22638.rs renamed to tests/ui/recursion/infinite-instantiation-via-nested-closures.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/22638>.
12
//@ build-fail
23

34
#![allow(unused)]

0 commit comments

Comments
 (0)