forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of rust-lang#112543 - GuillaumeGomez:revert-112429, r=lcnr
[rustdoc] Fix infinite loop when retrieving impls for type alias Fixes rust-lang#112515. Reverts rust-lang#112429. r? `@lcnr`
- Loading branch information
Showing
5 changed files
with
67 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Regression test for <https://github.com/rust-lang/rust/issues/112515>. | ||
// It's to ensure that this code doesn't have infinite loop in rustdoc when | ||
// trying to retrive type alias implementations. | ||
|
||
// ignore-tidy-linelength | ||
|
||
pub type Boom = S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<S<u64, u8>, ()>, ()>, ()>, u8>, ()>, u8>, ()>, u8>, u8>, ()>, ()>, ()>, u8>, u8>, u8>, ()>, ()>, u8>, ()>, ()>, ()>, u8>, u8>, ()>, ()>, ()>, ()>, ()>, u8>, ()>, ()>, u8>, ()>, ()>, ()>, u8>, ()>, ()>, u8>, u8>, u8>, u8>, ()>, u8>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>, ()>; | ||
pub struct S<T, U>(T, U); | ||
|
||
pub trait A {} | ||
|
||
pub trait B<T> { | ||
type P; | ||
} | ||
|
||
impl A for u64 {} | ||
|
||
impl<T, U> A for S<T, U> {} | ||
|
||
impl<T> B<u8> for S<T, ()> | ||
where | ||
T: B<u8>, | ||
<T as B<u8>>::P: A, | ||
{ | ||
type P = (); | ||
} | ||
|
||
impl<T: A, U, V> B<T> for S<U, V> { | ||
type P = (); | ||
} |
Oops, something went wrong.