about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-06-21 11:26:49 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-06-21 11:29:45 +1000
commit1da13489247ed5b0b6694b2aabb0184f16b50afd (patch)
treead13726c058b2d50d41fcb71ef50fba719311e0b /compiler/rustc_codegen_gcc
parentc696307a87cffb6eafee9469858450f116b26988 (diff)
downloadrust-1da13489247ed5b0b6694b2aabb0184f16b50afd.tar.gz
rust-1da13489247ed5b0b6694b2aabb0184f16b50afd.zip
Remove Queries::ongoing_codegen.
There's no need to store it in `Queries`. We can just use a local
variable, because it's always used shortly after it's produced.

The commit also removes the `tcx.analysis()` call in `ongoing_codegen`,
because it's easy to ensure that's done beforehand.

All this makes the dataflow within `run_compiler` easier to follow, at
the cost of making one test slightly more verbose, which I think is a
good tradeoff.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions