diff options
| author | SparrowLii <liyuan179@huawei.com> | 2022-09-14 21:00:00 +0800 |
|---|---|---|
| committer | SparrowLii <liyuan179@huawei.com> | 2022-09-15 16:05:00 +0800 |
| commit | 44506f38e079caec1b6c14e05a9b86e19544757f (patch) | |
| tree | a8c4f9a28778b1afc1ade67efcb326e43c908d68 /compiler/rustc_query_impl/src | |
| parent | c3f59295fecb9a7cb067bc4a5b50f779e159a55b (diff) | |
| download | rust-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.rs | 2 |
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. |
