summaryrefslogtreecommitdiff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-04-20 18:08:06 -0700
committerMichael Howell <michael@notriddle.com>2023-04-29 16:53:02 -0700
commitb1d08275a9914b59bbad3cf5f80073b8365e9e67 (patch)
tree7faaffc6f6692b47ab7d49d3d655cb34f34750b3 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent87b1f891ea76713462cfc5a15137a8fe2b24ecc2 (diff)
downloadrust-b1d08275a9914b59bbad3cf5f80073b8365e9e67.tar.gz
rustdoc: catch and don't blow up on impl Trait cycles
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