rust/compiler/rustc_session
Nicholas Nethercote 358a603f11 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
2022-11-16 09:41:28 +11:00
..
src Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
Cargo.toml improve filesearch::get_or_default_sysroot r=ozkanonur 2022-11-04 17:06:47 +03:00