about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-01-03 11:20:08 +0000
committerbors <bors@rust-lang.org>2022-01-03 11:20:08 +0000
commitb5efe5727f5db54412cf2995d14def91140a5a42 (patch)
tree5766ed453992e34673821d165a17025a6aede8f6 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentd367c349ef2dd04ebc876a0cd0b0efa46c18ff12 (diff)
parentf1d682334d07e125595bb73735b6045bedfb30c4 (diff)
downloadrust-b5efe5727f5db54412cf2995d14def91140a5a42.tar.gz
rust-b5efe5727f5db54412cf2995d14def91140a5a42.zip
Auto merge of #92179 - Aaron1011:incr-loaded-from-disk, r=michaelwoerister
Add `#[rustc_clean(loaded_from_disk)]` to assert loading of query result

Currently, you can use `#[rustc_clean]` to assert to that a particular
query (technically, a `DepNode`) is green or red. However, a green
`DepNode` does not mean that the query result was actually deserialized
from disk - we might have never re-run a query that needed the result.

Some incremental tests are written as regression tests for ICEs that
occured during query result decoding. Using
`#[rustc_clean(loaded_from_disk="typeck")]`, you can now assert
that the result of a particular query (e.g. `typeck`) was actually
loaded from disk, in addition to being green.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions