rust/compiler
bors 4bb4dc4672 Auto merge of #97251 - petrochenkov:eqtokens, r=nnethercote
rustc_parse: Move AST -> TokenStream conversion logic to rustc_ast

In the past falling back to reparsing pretty-printed strings was common, so some of this logic had to live in `rustc_parse`, but now the reparsing fallback is only used in two corner cases so we can move this logic to `rustc_ast` which makes many things simpler.

It also helps to fix `MacArgs::inner_tokens` for `MacArgs::Eq` with non-literal expressions, which is done in the second commit.
r? `@nnethercote`
2022-05-22 11:51:25 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast rustc_ast: Support MacArgs::inner_tokens for arbitrary expressions 2022-05-22 12:01:07 +03:00
rustc_ast_lowering rustc_parse: Move AST -> TokenStream conversion logic to rustc_ast 2022-05-22 12:01:07 +03:00
rustc_ast_passes Introduce LifetimeCtxt. 2022-05-20 12:25:05 +02:00
rustc_ast_pretty rustc_parse: Move AST -> TokenStream conversion logic to rustc_ast 2022-05-22 12:01:07 +03:00
rustc_attr
rustc_borrowck Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
rustc_builtin_macros rustc_parse: Move AST -> TokenStream conversion logic to rustc_ast 2022-05-22 12:01:07 +03:00
rustc_codegen_cranelift
rustc_codegen_gcc
rustc_codegen_llvm Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
rustc_codegen_ssa
rustc_const_eval Auto merge of #97177 - oli-obk:const-stability, r=davidtwco 2022-05-22 06:47:36 +00:00
rustc_data_structures
rustc_driver
rustc_error_codes
rustc_error_messages
rustc_errors Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
rustc_expand rustc_parse: Move AST -> TokenStream conversion logic to rustc_ast 2022-05-22 12:01:07 +03:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir factor out the rvalue lifetime rule 2022-05-22 16:46:50 +08:00
rustc_hir_pretty
rustc_incremental
rustc_index Auto merge of #95418 - cjgillot:more-disk, r=davidtwco 2022-05-20 20:49:55 +00:00
rustc_infer Rollup merge of #97109 - TaKO8Ki:fix-misleading-cannot-infer-type-for-type-parameter-error, r=oli-obk 2022-05-20 19:54:39 +02:00
rustc_interface rustc_parse: Move AST -> TokenStream conversion logic to rustc_ast 2022-05-22 12:01:07 +03:00
rustc_lexer
rustc_lint Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
rustc_lint_defs Lint single-use-lifetimes on the AST. 2022-05-20 12:26:37 +02:00
rustc_llvm
rustc_log
rustc_macros
rustc_metadata Auto merge of #97239 - jhpratt:remove-crate-vis, r=joshtriplett 2022-05-21 06:38:49 +00:00
rustc_middle Auto merge of #95563 - dingxiangfei2009:dxf-rfc66-refactor, r=nikomatsakis 2022-05-22 09:00:30 +00:00
rustc_mir_build factor out the rvalue lifetime rule 2022-05-22 16:46:50 +08:00
rustc_mir_dataflow
rustc_mir_transform Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
rustc_monomorphize Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
rustc_parse rustc_parse: Move AST -> TokenStream conversion logic to rustc_ast 2022-05-22 12:01:07 +03:00
rustc_parse_format
rustc_passes Auto merge of #95563 - dingxiangfei2009:dxf-rfc66-refactor, r=nikomatsakis 2022-05-22 09:00:30 +00:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl Auto merge of #97239 - jhpratt:remove-crate-vis, r=joshtriplett 2022-05-21 06:38:49 +00:00
rustc_query_system
rustc_resolve Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
rustc_save_analysis
rustc_serialize
rustc_session rustc_parse: Move AST -> TokenStream conversion logic to rustc_ast 2022-05-22 12:01:07 +03:00
rustc_span Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
rustc_symbol_mangling
rustc_target
rustc_trait_selection Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
rustc_traits Remove crate visibility usage in compiler 2022-05-20 20:04:54 -04:00
rustc_ty_utils
rustc_type_ir
rustc_typeck factor out the rvalue lifetime rule 2022-05-22 16:46:50 +08:00