about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-11-12 06:27:17 +0100
committerGitHub <noreply@github.com>2024-11-12 06:27:17 +0100
commit2ad4a3568d9932bc4ecba48142a1f400c6c260aa (patch)
treef08c1a0cd49a2ae0f66916b17edca01d7c53a1ca /compiler/rustc_middle/src
parent9098e03fb21ec6591e4c394059e9a02df297d29f (diff)
parent15a71b64b837373b205daaebcf75e179fdfec89e (diff)
downloadrust-2ad4a3568d9932bc4ecba48142a1f400c6c260aa.tar.gz
rust-2ad4a3568d9932bc4ecba48142a1f400c6c260aa.zip
Rollup merge of #132627 - adwinwhite:thir_body_cleanup, r=compiler-errors
cleanup: Remove outdated comment of `thir_body`

When typeck fails, `thir_body` returns `ErrorGuaranteed` rather than empty body.

No other code follows this outdated description except `check_unsafety`, which is also cleaned up in this PR.
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 54ead9a7a75..b25ed1c44e1 100644
--- a/compiler/rustc_middle/src/query/mod.rs
+++ b/compiler/rustc_middle/src/query/mod.rs
@@ -463,7 +463,7 @@ rustc_queries! {
         separate_provide_extern
     }
 
-    /// Fetch the THIR for a given body. If typeck for that body failed, returns an empty `Thir`.
+    /// Fetch the THIR for a given body.
     query thir_body(key: LocalDefId) -> Result<(&'tcx Steal<thir::Thir<'tcx>>, thir::ExprId), ErrorGuaranteed> {
         // Perf tests revealed that hashing THIR is inefficient (see #85729).
         no_hash