-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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 #62503 - pnkfelix:dont-recur-infiitely-from-print-def-p…
…ath, r=eddyb Dont recur infinitely from print_def_path Fix #61711
- Loading branch information
Showing
3 changed files
with
41 additions
and
1 deletion.
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,5 @@ | ||
// edition:2018 | ||
#![crate_type="lib"] | ||
#![crate_name="xcrate_issue_61711_b"] | ||
pub struct Struct; | ||
pub use crate as alias; |
11 changes: 11 additions & 0 deletions
11
src/test/ui/issues/issue-61711-once-caused-rustc-inf-loop.rs
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,11 @@ | ||
// Issue 61711: A crate pub re-exporting `crate` was causing an | ||
// infinite loop. | ||
|
||
// edition:2018 | ||
// aux-build:xcrate-issue-61711-b.rs | ||
// compile-flags:--extern xcrate_issue_61711_b | ||
|
||
// run-pass | ||
|
||
fn f<F: Fn(xcrate_issue_61711_b::Struct)>(_: F) { } | ||
fn main() { } |