about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2022-05-05 10:20:38 +0900
committerGitHub <noreply@github.com>2022-05-05 10:20:38 +0900
commitade123275db92898b13faffea08893f0a6737ff4 (patch)
tree9b18b5c05a5673bf00548c5b7e9d011fbaa39f4f /compiler/rustc_mir_transform/src
parente3ada27d7d95cdc4e3c05b91c2cf404546c2d7fd (diff)
parent0d5a738b8b715024c25c4ad973399f2e81b7577b (diff)
downloadrust-ade123275db92898b13faffea08893f0a6737ff4.tar.gz
rust-ade123275db92898b13faffea08893f0a6737ff4.zip
Rollup merge of #96697 - oli-obk:trace_queries, r=michaelwoerister
Enable tracing for all queries

This allows you to log everything within a specific query, e.g.

```
env RUSTC_LOG=[mir_borrowck]
```

dumping all borrowck queries may be a bit verbose, so you can also restrict it to just an item of your choice:

```
env RUSTC_LOG=[mir_borrowck{key=\.\*name_of_item\.\*}]
```

the regex `.*` in the key name are because the key is a debug printed DefId, so you'd get all kinds of things like hashes in there. The tracing logs will show you the key, so you can restrict it further if you want.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions