rust/compiler
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
..
rustc rustc: Use unix_sigpipe instead of rustc_driver::set_sigpipe_handler 2022-10-02 17:49:36 +02:00
rustc_apfloat
rustc_arena
rustc_ast Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_ast_lowering Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_ast_passes Visit attributes of trait impl items during AST validation 2022-11-08 13:44:07 +01:00
rustc_ast_pretty Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_attr Migrate all diagnostics 2022-10-23 10:09:44 +02:00
rustc_borrowck Rollup merge of #103960 - AndyJado:var_path_only_diag, r=davidtwco 2022-11-11 12:12:30 -05:00
rustc_builtin_macros Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_codegen_cranelift Auto merge of #104054 - RalfJung:byte-provenance, r=oli-obk 2022-11-15 17:37:15 +00:00
rustc_codegen_gcc Auto merge of #104054 - RalfJung:byte-provenance, r=oli-obk 2022-11-15 17:37:15 +00:00
rustc_codegen_llvm Auto merge of #104054 - RalfJung:byte-provenance, r=oli-obk 2022-11-15 17:37:15 +00:00
rustc_codegen_ssa Auto merge of #104091 - BelovDV:issue-103044, r=petrochenkov 2022-11-15 00:38:08 +00:00
rustc_const_eval Auto merge of #104054 - RalfJung:byte-provenance, r=oli-obk 2022-11-15 17:37:15 +00:00
rustc_data_structures Use the interned stable hash as plain hash. 2022-11-11 13:02:37 +00:00
rustc_driver Rollup merge of #104184 - jyn514:rustdoc-version, r=davidtwco 2022-11-09 15:39:07 -05:00
rustc_error_codes Rollup merge of #104339 - compiler-errors:rustc_deny_explicit_impl, r=cjgillot 2022-11-15 10:44:12 +01:00
rustc_error_messages Auto merge of #104418 - matthiaskrgr:rollup-y4i6xjc, r=matthiaskrgr 2022-11-15 03:37:07 +00:00
rustc_errors Rollup merge of #104229 - compiler-errors:overlap-full-path, r=davidtwco 2022-11-14 19:26:16 +01:00
rustc_expand Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_feature Rollup merge of #104339 - compiler-errors:rustc_deny_explicit_impl, r=cjgillot 2022-11-15 10:44:12 +01:00
rustc_fs_util
rustc_graphviz Add initial version of value analysis and dataflow constant propagation 2022-11-07 10:35:08 +01:00
rustc_hir Some tracing and comment cleanups 2022-11-04 17:10:07 +00:00
rustc_hir_analysis Auto merge of #104054 - RalfJung:byte-provenance, r=oli-obk 2022-11-15 17:37:15 +00:00
rustc_hir_pretty pretty: fix to print some lifetimes on HIR pretty-print 2022-10-15 23:34:21 +09:00
rustc_hir_typeck Rollup merge of #104258 - compiler-errors:tait-closure-deduce, r=oli-obk 2022-11-15 10:44:10 +01:00
rustc_incremental Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
rustc_index Remove from compiler/ crates 2022-09-29 16:49:04 +09:00
rustc_infer Rollup merge of #104206 - compiler-errors:ocx-more-2, r=lcnr 2022-11-12 12:02:52 +05:30
rustc_interface Fix rustdoc --version when used with download-rustc 2022-11-09 02:54:51 -06:00
rustc_lexer Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_lint Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_lint_defs Make PROC_MACRO_DERIVE_RESOLUTION_FALLBACK a hard error 2022-10-24 13:40:07 -05:00
rustc_llvm [llvm-wrapper] adapt for LLVM API change 2022-11-14 14:59:32 +00:00
rustc_log
rustc_macros Modify comment syntax error 2022-11-07 14:33:33 +08:00
rustc_metadata Wrap bundlen static libraries into object files 2022-11-14 12:01:49 +03:00
rustc_middle Auto merge of #104054 - RalfJung:byte-provenance, r=oli-obk 2022-11-15 17:37:15 +00:00
rustc_mir_build Rollup merge of #104349 - rustaceanclub:master, r=oli-obk 2022-11-14 19:26:18 +01:00
rustc_mir_dataflow Remove log statement that was commented out 2022-11-12 20:32:09 +01:00
rustc_mir_transform Auto merge of #104054 - RalfJung:byte-provenance, r=oli-obk 2022-11-15 17:37:15 +00:00
rustc_monomorphize interpret: support for per-byte provenance 2022-11-06 14:17:10 +01:00
rustc_parse Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_parse_format Fix rustc_parse_format spans following escaped utf-8 multibyte chars 2022-10-27 18:20:56 +00:00
rustc_passes Rollup merge of #104320 - fee1-dead-contrib:use-derive-const-in-std, r=oli-obk 2022-11-13 17:37:37 +01:00
rustc_plugin_impl Migrate all diagnostics 2022-10-23 10:09:44 +02:00
rustc_privacy privacy: Check effective visibility invariants 2022-11-05 16:25:41 +04:00
rustc_query_impl Make AbsoluteBytePos a u64. 2022-11-08 18:47:26 +00:00
rustc_query_system Hash spans when interning. 2022-11-11 13:02:37 +00:00
rustc_resolve Rollup merge of #104364 - petrochenkov:docice2, r=GuillaumeGomez 2022-11-14 19:26:19 +01:00
rustc_save_analysis Rename some OwnerId fields. 2022-10-29 20:28:38 +11:00
rustc_serialize rustdoc: use ThinVec for cleaned generics 2022-11-02 16:17:22 -07:00
rustc_session Use token::Lit in ast::ExprKind::Lit. 2022-11-16 09:41:28 +11:00
rustc_smir Only keep one version of ImplicitSelfKind. 2022-09-13 19:18:23 +02:00
rustc_span Rollup merge of #104339 - compiler-errors:rustc_deny_explicit_impl, r=cjgillot 2022-11-15 10:44:12 +01:00
rustc_symbol_mangling Add an optional Span to BrAnon and use it to print better error for HRTB error from generator interior 2022-11-07 17:39:29 -05:00
rustc_target Rollup merge of #104349 - rustaceanclub:master, r=oli-obk 2022-11-14 19:26:18 +01:00
rustc_trait_selection Rollup merge of #104316 - cjgillot:simplify-async-suggestion, r=estebank 2022-11-15 10:44:11 +01:00
rustc_traits Make rustc build with new chalk 2022-11-13 19:53:44 +00:00
rustc_transmute Auto merge of #103831 - chenyukang:yukang/fix-103751-ice, r=nagisa 2022-11-05 13:48:30 +00:00
rustc_ty_utils add is_sized method on Abi and Layout, and use it 2022-11-13 12:23:53 +01:00
rustc_type_ir deprecate DelaySpanBugEmitted and use ErrorGuaranteed directly 2022-11-02 23:15:49 +08:00