]> git.lizzy.rs Git - rust.git/commit
Auto merge of #102944 - nnethercote:ast-Lit-third-time-lucky, r=petrochenkov
authorbors <bors@rust-lang.org>
Wed, 16 Nov 2022 23:03:14 +0000 (23:03 +0000)
committerbors <bors@rust-lang.org>
Wed, 16 Nov 2022 23:03:14 +0000 (23:03 +0000)
commitbebd57a9602e48431c90274fbf7d96683b0708b6
treee9d0c9731ffc16ca0a92dd34d5925f1fe05000e7
parente9493d63c2a57b91556dccd219e21821432c7445
parent358a603f110b0489d22f3929d3f232e684fd9ffb
Auto merge of #102944 - nnethercote:ast-Lit-third-time-lucky, r=petrochenkov

Use `token::Lit` in `ast::ExprKind::Lit`.

Instead of `ast::Lit`.

Literal lowering now happens at two different times. Expression literals are lowered when HIR is crated. Attribute literals are lowered during parsing.

r? `@petrochenkov`