about summary refs log tree commit diff
path: root/compiler/rustc_const_eval/src
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-09-23 23:49:11 -0400
committerGitHub <noreply@github.com>2024-09-23 23:49:11 -0400
commitc0f1a69229a8d139cde0e8a65eb8dfb79dca0ae9 (patch)
treec6b0985036a731a660e1c2c3570f11653ce586c9 /compiler/rustc_const_eval/src
parent0a0ea28f26b37d44a27380713f98b5d9c97f309b (diff)
parentc0c569f99db937a143d949bd07009ab1a9a37dd1 (diff)
downloadrust-c0f1a69229a8d139cde0e8a65eb8dfb79dca0ae9.tar.gz
rust-c0f1a69229a8d139cde0e8a65eb8dfb79dca0ae9.zip
Rollup merge of #130618 - m-ou-se:skip-query, r=compiler-errors
Skip query in get_parent_item when possible.

For HirIds with a non-zero item local id, `self.parent_owner_iter(hir_id).next()` just returns the same HirId with the item local id set to 0, but also does a query to retrieve the Node which is ignored here, which seems wasteful.
Diffstat (limited to 'compiler/rustc_const_eval/src')
0 files changed, 0 insertions, 0 deletions