about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorLeSeulArtichaut <leseulartichaut@gmail.com>2021-05-22 15:40:26 +0200
committerLeSeulArtichaut <leseulartichaut@gmail.com>2021-05-22 16:21:36 +0200
commit3f31044d908fed9d158cb8d24716447d8bc5f45e (patch)
treecb226f2e4b6e57dd32821122472adf701e1cb1b8 /compiler/rustc_middle/src
parent3797b0335ab1e119438b7aadb7c8bf80607b0b03 (diff)
downloadrust-3f31044d908fed9d158cb8d24716447d8bc5f45e.tar.gz
rust-3f31044d908fed9d158cb8d24716447d8bc5f45e.zip
Handle typeck errors properly
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/query/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/query/mod.rs b/compiler/rustc_middle/src/query/mod.rs
index f940cb62d9e..9125be33c93 100644
--- a/compiler/rustc_middle/src/query/mod.rs
+++ b/compiler/rustc_middle/src/query/mod.rs
@@ -220,7 +220,7 @@ rustc_queries! {
         desc { "checking if the crate is_panic_runtime" }
     }
 
-    /// Fetch the THIR for a given body.
+    /// Fetch the THIR for a given body. If typeck for that body failed, returns an empty `Thir`.
     query thir_body(key: ty::WithOptConstParam<LocalDefId>) -> (&'tcx Steal<thir::Thir<'tcx>>, thir::ExprId) {
         desc { |tcx| "building THIR for `{}`", tcx.def_path_str(key.did.to_def_id()) }
     }