about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/coverage/debug.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-05-09 13:38:17 +0000
committerbors <bors@rust-lang.org>2021-05-09 13:38:17 +0000
commitbba8710616e5e4722215c0d6b27abaedca03ebad (patch)
tree33bf7820b48760634f28b35711567ee7e7e32d6a /compiler/rustc_mir/src/transform/coverage/debug.rs
parent19dae7b4539a58e4d2fe6429a77852665f399150 (diff)
parentf25aa5767f0bb1409c7c7b6c202f22d8bf48bbee (diff)
downloadrust-bba8710616e5e4722215c0d6b27abaedca03ebad.tar.gz
rust-bba8710616e5e4722215c0d6b27abaedca03ebad.zip
Auto merge of #83596 - jyn514:session-dead-code, r=oli-obk
Remove dead or useless code from Session

This is a more principled follow-up to https://github.com/rust-lang/rust/pull/83185#discussion_r601753839.

- Rename `Parser::span_fatal_err` -> `Parser::span_err`
- Remove some unnecessary uses of `struct_span_fatal`
- Make `Diagnostic::span_fatal` unconditionally raise an error
- Add `impl Deref<Target = Handler>` for Session and remove all functions that are exactly the same as their Handler counterparts
- Note why `Handler::fatal` is different from `Sesssion::fatal`
- Remove unused `opt_span_warn` function

r? `@oli-obk` or `@estebank`
Diffstat (limited to 'compiler/rustc_mir/src/transform/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions