about summary refs log tree commit diff
path: root/src/librustdoc/core.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2020-08-03 21:13:13 -0400
committerJoshua Nelson <jyn514@gmail.com>2020-08-03 21:26:54 -0400
commit31fcda170a0671195b7a1506b09c5f655fc4d7e9 (patch)
tree5483a71987fdb538dd066370d110fb944aaab6f5 /src/librustdoc/core.rs
parentf042d749b0fc212bff6bdc44b84e134b878bff64 (diff)
downloadrust-31fcda170a0671195b7a1506b09c5f655fc4d7e9.tar.gz
rust-31fcda170a0671195b7a1506b09c5f655fc4d7e9.zip
Fix async-std at the price of breaking half the test suite
- Don't mark impl trait as an error
Diffstat (limited to 'src/librustdoc/core.rs')
-rw-r--r--src/librustdoc/core.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/librustdoc/core.rs b/src/librustdoc/core.rs
index cbd0ca0de64..eab310ddf89 100644
--- a/src/librustdoc/core.rs
+++ b/src/librustdoc/core.rs
@@ -449,13 +449,6 @@ pub fn run_core(options: RustdocOptions) -> (clean::Crate, RenderInfo, RenderOpt
             let mut global_ctxt = abort_on_err(queries.global_ctxt(), sess).take();
 
             global_ctxt.enter(|tcx| {
-                // Certain queries assume that some checks were run elsewhere
-                // (see https://github.com/rust-lang/rust/pull/73566#issuecomment-656954425),
-                // so type-check everything other than function bodies in this crate before running lints.
-                // NOTE: this does not call `tcx.analysis()` so that we won't
-                // typeck function bodies or run the default rustc lints.
-                // (see `override_queries` in the `config`)
-                let _ = rustc_typeck::check_crate(tcx);
                 tcx.sess.abort_if_errors();
                 sess.time("missing_docs", || {
                     rustc_lint::check_crate(tcx, rustc_lint::builtin::MissingDoc::new);