about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
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
commit826fb78bebc757acf138e86bd755e1d81c1d08bc (patch)
treeddc36f6bf471f91916a1fffa5ac70fd7b7bc5671 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent660e53512f1c25f03f6cf34fb620a7c0ed11d120 (diff)
downloadrust-826fb78bebc757acf138e86bd755e1d81c1d08bc.tar.gz
rust-826fb78bebc757acf138e86bd755e1d81c1d08bc.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/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions