Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/22036>.
//@ run-pass

trait DigitCollection: Sized {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/22356>.

//@ check-pass
#![allow(type_alias_bounds)]

Expand Down
14 changes: 14 additions & 0 deletions tests/ui/associated-types/normalize-assoc-types.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/22629>.
//! Test transitive analysis for associated types. Collected types
//! should be normalized and new obligations generated.

//@ run-pass
#![allow(unused_imports)]

use std::borrow::{ToOwned, Cow};

fn assert_send<T: Send>(_: T) {}

fn main() {
assert_send(Cow::Borrowed("foo"));
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/22258>.

//@ run-pass
use std::ops::Add;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/22673>.
//@ check-pass

trait Expr: PartialEq<Self::Item> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/22443>.

@zedddie zedddie Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

22777 actually is PR that fixed 22443

View changes since the review

//!
//! This test is reduced from librustc_ast. It is just checking that we
//! can successfully deal with a "deep" structure, which the drop-check
//! was hitting a recursion limit on at one point.

//@ check-pass
// This test is reduced from librustc_ast. It is just checking that we
// can successfully deal with a "deep" structure, which the drop-check
// was hitting a recursion limit on at one point.


#![allow(non_camel_case_types)]
Expand Down
6 changes: 0 additions & 6 deletions tests/ui/issues/issue-22370.rs

@zedddie zedddie Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate of error-codes/E0393.rs

View changes since the review

This file was deleted.

18 changes: 0 additions & 18 deletions tests/ui/issues/issue-22370.stderr

This file was deleted.

13 changes: 0 additions & 13 deletions tests/ui/issues/issue-22629.rs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/22638>.
//@ build-fail

#![allow(unused)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
error: reached the recursion limit while instantiating `A::matches::<{closure@$DIR/issue-22638.rs:42:23: 42:25}>`
--> $DIR/issue-22638.rs:54:9
error: reached the recursion limit while instantiating `A::matches::<{closure@$DIR/infinite-instantiation-via-nested-closures.rs:43:23: 43:25}>`
--> $DIR/infinite-instantiation-via-nested-closures.rs:55:9
|
LL | a.matches(f)
| ^^^^^^^^^^^^
|
note: `A::matches` defined here
--> $DIR/issue-22638.rs:13:5
--> $DIR/infinite-instantiation-via-nested-closures.rs:14:5
|
LL | pub fn matches<F: Fn()>(&self, f: &F) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/22471>.

//@ check-pass
#![allow(dead_code)]
#![allow(type_alias_bounds)]

type Foo<T> where T: Copy = Box<T>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//! Regression test for <https://github.com/rust-lang/rust/issues/22603>.
//@ check-pass

#![feature(unboxed_closures, fn_traits)]
Expand Down
Loading