about summary refs log tree commit diff
path: root/compiler/rustc_driver/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-08-29 12:38:05 +0000
committerbors <bors@rust-lang.org>2021-08-29 12:38:05 +0000
commitef524710669a003cf2b24361dc6b04b566e560fa (patch)
treedc419f09932cc682a01987d3572474b97e7c6e9e /compiler/rustc_driver/src
parent59ce76548484806ac4970c57c0bb6ad9e53b80f6 (diff)
parent59013cdebe665377e0d733ea3906c84216bd33db (diff)
downloadrust-ef524710669a003cf2b24361dc6b04b566e560fa.tar.gz
rust-ef524710669a003cf2b24361dc6b04b566e560fa.zip
Auto merge of #88208 - petrochenkov:lowspan, r=Aaron1011
ast_lowering: Introduce `lower_span` for catching all spans entering HIR

This PR cherry-picks the `fn lower_span` change from https://github.com/rust-lang/rust/pull/84373.
I also introduced `fn lower_ident` for lowering spans in identifiers, and audited places where HIR structures with spans or identifiers are constructed and added a few missing `lower_span`s/`lower_ident`s.

Having a hook for spans entering HIR can be useful for things other than https://github.com/rust-lang/rust/pull/84373, e.g. https://github.com/rust-lang/rust/issues/35148.
I also want to check whether this change causes perf regressions due to some accidental inlining issues.

r? `@cjgillot`
Diffstat (limited to 'compiler/rustc_driver/src')
0 files changed, 0 insertions, 0 deletions