rust/compiler
bors ef52471066 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`
2021-08-29 12:38:05 +00:00
..
2021-08-27 05:07:37 +00:00
2021-08-27 05:07:37 +00:00
2021-08-25 20:24:39 +02:00
2021-08-27 05:07:37 +00:00
2021-08-26 11:14:31 +02:00
2021-08-28 00:16:34 -07:00
2021-08-28 00:16:34 -07:00
2021-08-27 05:07:37 +00:00
2021-08-28 00:16:34 -07:00
2021-08-28 00:16:34 -07:00
fmt
2021-08-27 08:09:00 +00:00