rust/compiler/rustc_mir/src
Yuki Okushi 6e25418474
Rollup merge of #75143 - oli-obk:tracing, r=RalfJung
Use `tracing` spans to trace the entire MIR interp stack

r? @RalfJung

While being very verbose, this allows really good tracking of what's going on. While I considered schemes like the previous indenter that we had (which we could get by using the `tracing-tree` crate), this will break down horribly with things like multithreaded rustc. Instead, we can now use `RUSTC_LOG` to restrict the things being traced. You could specify a filter in a way that only shows the logging of a specific frame.

![screenshot of command line output of the new formatting](https://user-images.githubusercontent.com/332036/89291343-aa40de00-d65a-11ea-9f6c-ea06c1806327.png)

If we lower the span's level to `debug`, then in `info` level logging we'd not see the frames, but in `debug` level we would see them. The filtering rules in `tracing` are super powerful, but  I'm not sure if we can specify a filter so we do see `debug` level events, but *not* the `frame` spans. The documentation at https://docs.rs/tracing-subscriber/0.2.10/tracing_subscriber/struct.EnvFilter.html makes me think that we can only turn on things, not turn off things at a more precise level.

cc @hawkw
2020-10-04 11:44:49 +09:00
..
borrow_check Rollup merge of #77037 - matthiaskrgr:cl42ppy, r=Dylan-DPC 2020-09-30 20:56:05 +02:00
const_eval References to ZSTs may be at arbitrary aligned addresses 2020-09-30 10:40:49 +02:00
dataflow Add -Zprecise-enum-drop-elaboration 2020-10-01 11:31:43 -07:00
interpret Only mention that a stack frame is being popped when starting to do so 2020-10-01 08:32:24 +02:00
monomorphize Avoid calling Symbol::interner in compute_codegen_unit_name 2020-09-25 22:46:15 +01:00
transform Rollup merge of #77251 - dtolnay:drop, r=Aaron1011 2020-10-03 00:31:12 +02:00
util Stop using the const_eval query for initializers of statics 2020-09-19 10:36:36 +02:00
lib.rs Auto merge of #70743 - oli-obk:eager_const_to_pat_conversion, r=eddyb 2020-09-26 06:44:28 +00:00
shim.rs Auto merge of #75346 - davidtwco:issue-69925-polymorphic-instancedef-fnptrshim, r=nikomatsakis 2020-09-20 04:15:43 +00:00