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.
This commit is contained in:
Joshua Nelson
2020-07-11 00:28:42 -04:00
parent 2d0e8e2162
commit 02a24c8e2f
6 changed files with 40 additions and 0 deletions

View File

@@ -15,6 +15,8 @@
#![recursion_limit = "256"]
extern crate env_logger;
#[macro_use]
extern crate lazy_static;
extern crate rustc_ast;
extern crate rustc_ast_pretty;
extern crate rustc_attr;