]> 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)
commitcbd6159095dd4f5e96671e9230420a46c6302dd3
tree7fd9ea9fe79dbad06e3ad7905e1b6c178c879f57
parent2bf87f383026e68bda528017906f0bee89fe34d0
parentf2d83ed1ac7254d943975fa57e54e6013d16eecf
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`