]> git.lizzy.rs Git - rust.git/commit
Don't ICE on infinitely recursive types
authorJoshua Nelson <jyn514@gmail.com>
Sat, 11 Jul 2020 04:28:42 +0000 (00:28 -0400)
committerJoshua Nelson <jyn514@gmail.com>
Wed, 15 Jul 2020 14:54:05 +0000 (10:54 -0400)
commit02a24c8e2fd370041a24b7d93e8c3710b7b76015
tree826bbca890b868214a69ff7ec56cd6745bfd813d
parent2d0e8e2162a2e2be233a63ba5a8cbf3e19770b17
Don't ICE on infinitely recursive types

`evaluate_obligation` can only be run on types that are already valid.
So rustdoc still has to run typeck even though it doesn't care about the
result.
Cargo.lock
src/librustdoc/Cargo.toml
src/librustdoc/core.rs
src/librustdoc/lib.rs
src/test/rustdoc-ui/infinite-recursive-type.rs [new file with mode: 0644]
src/test/rustdoc-ui/infinite-recursive-type.stderr [new file with mode: 0644]