]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Auto merge of #88880 - cjgillot:no-krate, r=oli-obk
authorbors <bors@rust-lang.org>
Fri, 1 Oct 2021 20:06:34 +0000 (20:06 +0000)
committerbors <bors@rust-lang.org>
Fri, 1 Oct 2021 20:06:34 +0000 (20:06 +0000)
commitc02371c442f811878ab3a0f5a813402b6dfd45d2
treee293105dba102078f3039dba3ddc4f82f7c6c6bb
parentb6057bf7b7ee7c58e6a39ead02eaa13b75f908c2
parent77c300285c0528241b2b08823167598739fc0f82
Auto merge of #88880 - cjgillot:no-krate, r=oli-obk

Rework HIR API to make invocations of the hir_crate query harder.

`hir_crate` forces the recomputation of queries that depend on it.

This PR aims at avoiding useless invocations of `hir_crate` by making dependent code go through `tcx.hir()`.
compiler/rustc_hir/src/hir.rs
compiler/rustc_interface/src/passes.rs
compiler/rustc_metadata/src/rmeta/encoder.rs
compiler/rustc_middle/src/ty/mod.rs
src/librustdoc/clean/types.rs