1
Fork 0

Handle typeck errors properly

This commit is contained in:
LeSeulArtichaut 2021-05-22 15:40:26 +02:00
parent 3797b0335a
commit 3f31044d90
3 changed files with 9 additions and 1 deletions

View file

@ -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()) }
}