rust/compiler/rustc_ast/src
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
..
attr Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
expand Make allocator_kind a query. 2021-06-20 11:52:51 +02:00
util Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
ast.rs Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
ast_traits.rs Rename {Create,Lazy}TokenStream as {To,Lazy}AttrTokenStream. 2022-09-09 17:25:38 +10:00
entry.rs Fixup missing renames from #[main] to #[rustc_main] 2022-06-22 18:24:09 +02:00
lib.rs Replace some bool params with an enum 2022-10-01 10:13:02 +00:00
mut_visit.rs Introduce ExprKind::IncludedBytes 2022-11-11 16:31:32 +00:00
node_id.rs rustc_error, rustc_private, rustc_ast: Switch to stable hash containers 2022-09-10 11:49:12 +02:00
ptr.rs Use delayed error handling for Encodable and Encoder infallible. 2022-06-08 07:01:26 +10:00
token.rs Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
tokenstream.rs Use tidy-alphabetical in the compiler 2022-10-12 17:49:10 +05:30
visit.rs Auto merge of #103858 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini 2022-11-14 00:07:19 +00:00