about summary refs log tree commit diff
path: root/tests/incremental/thinlto
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-10-10 13:40:56 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2022-11-16 09:41:28 +1100
commitf2d83ed1ac7254d943975fa57e54e6013d16eecf (patch)
treec2a73d64fac60a5a8a5ab57b58405ce0529c79b2 /tests/incremental/thinlto
parent8a2d0f255d623390c9495dec1c9e5d22bc895e5d (diff)
downloadrust-f2d83ed1ac7254d943975fa57e54e6013d16eecf.tar.gz
rust-f2d83ed1ac7254d943975fa57e54e6013d16eecf.zip
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.

This commit changes the language very slightly. Some programs that used
to not compile now will compile. This is because some invalid literals
that are removed by `cfg` or attribute macros will no longer trigger
errors. See this comment for more details:
https://github.com/rust-lang/rust/pull/102944#issuecomment-1277476773
Diffstat (limited to 'tests/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions