diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-04-30 16:25:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-30 16:25:46 +0200 |
commit | 5dec8dff7ba1ec2ae18d9e903c24172bb189ba7a (patch) | |
tree | b1e425b33a4df2872c8d6774e3fe62b5b3d94ccb /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
parent | b64d4c2f26f9cf781be4d0d2e378f5a475aa66d6 (diff) | |
parent | b1d08275a9914b59bbad3cf5f80073b8365e9e67 (diff) | |
download | rust-5dec8dff7ba1ec2ae18d9e903c24172bb189ba7a.tar.gz |
Rollup merge of #110631 - notriddle:notriddle/impl-trait-cycle, r=GuillaumeGomez
rustdoc: catch and don't blow up on impl Trait cycles
Fixes #110629
An odd feature of Rust is that `Foo` is invalid, but `Bar` is okay:
type Foo<'a, 'b> = Box<dyn PartialEq<Foo<'a, 'b>>>;
type Bar<'a, 'b> = impl PartialEq<Bar<'a, 'b>>;
To get it right, track every time rustdoc descends into a type alias, so if it shows up twice, it can be write the path instead of infinitely expanding it.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions