about summary refs log tree commit diff
path: root/compiler/rustc_query_impl/src
diff options
context:
space:
mode:
authorSparrowLii <liyuan179@huawei.com>2022-09-14 21:00:00 +0800
committerSparrowLii <liyuan179@huawei.com>2022-09-15 16:05:00 +0800
commit44506f38e079caec1b6c14e05a9b86e19544757f (patch)
treea8c4f9a28778b1afc1ade67efcb326e43c908d68 /compiler/rustc_query_impl/src
parentc3f59295fecb9a7cb067bc4a5b50f779e159a55b (diff)
downloadrust-44506f38e079caec1b6c14e05a9b86e19544757f.tar.gz
rust-44506f38e079caec1b6c14e05a9b86e19544757f.zip
add note for `layout_of` when query depth overflows
Diffstat (limited to 'compiler/rustc_query_impl/src')
-rw-r--r--compiler/rustc_query_impl/src/plumbing.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_query_impl/src/plumbing.rs b/compiler/rustc_query_impl/src/plumbing.rs
index 6fb3c69b1f4..3ca657cbca1 100644
--- a/compiler/rustc_query_impl/src/plumbing.rs
+++ b/compiler/rustc_query_impl/src/plumbing.rs
@@ -109,7 +109,7 @@ impl QueryContext for QueryCtxt<'_> {
         // when accessing the `ImplicitCtxt`.
         tls::with_related_context(**self, move |current_icx| {
             if depth_limit && !self.recursion_limit().value_within_limit(current_icx.query_depth) {
-                self.depth_limit_error();
+                self.depth_limit_error(token);
             }
 
             // Update the `ImplicitCtxt` to point to our new query job.