-
Notifications
You must be signed in to change notification settings - Fork 13k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix rustdoc stack overflow on mutually recursive Deref
fix #85095
- Loading branch information
1 parent
9089771
commit aee50f4
Showing
2 changed files
with
39 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use std::ops::Deref; | ||
|
||
pub struct A; | ||
pub struct B; | ||
|
||
// @has issue_85095/struct.A.html '//code' 'impl Deref for A' | ||
impl Deref for A { | ||
type Target = B; | ||
|
||
fn deref(&self) -> &Self::Target { | ||
panic!() | ||
} | ||
} | ||
|
||
// @has issue_85095/struct.B.html '//code' 'impl Deref for B' | ||
impl Deref for B { | ||
type Target = A; | ||
|
||
fn deref(&self) -> &Self::Target { | ||
panic!() | ||
} | ||
} |