rust/compiler
bors 62c068feea Auto merge of #127636 - nnethercote:fix-Parser-look_ahead, r=oli-obk
Fix `Parser::look_ahead`

`Parser::look_ahead` has a slow but simple general case, and a fast special case that is hit most of the time. But the special case is buggy and behaves differently to the general case. There are also no unit tests. This PR fixes all of this, resulting in a `Parser::look_ahead` that is equally fast, slightly simpler, more correct, and better tested.

r? `@davidtwco`
2024-07-12 17:28:21 +00:00
..
rustc
rustc_abi
rustc_arena
rustc_ast Make visit_clobber's impl safe 2024-07-10 07:54:17 +00:00
rustc_ast_ir
rustc_ast_lowering Auto merge of #127200 - fee1-dead-contrib:trait_def_const_trait, r=compiler-errors 2024-07-09 06:51:35 +00:00
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_baked_icu_data
rustc_borrowck Rollup merge of #127625 - SkiFire13:revert-comment-deletion, r=workingjubilee 2024-07-12 03:43:36 +02:00
rustc_builtin_macros
rustc_codegen_cranelift Auto merge of #113128 - WaffleLapkin:become_trully_unuwuable, r=oli-obk,RalfJung 2024-07-08 04:35:04 +00:00
rustc_codegen_gcc Update Cargo.lock and remove duplicated impl 2024-07-10 13:02:26 +02:00
rustc_codegen_llvm Auto merge of #127614 - matthiaskrgr:rollup-8geziwi, r=matthiaskrgr 2024-07-11 22:56:52 +00:00
rustc_codegen_ssa Add the feature gate and target-features 2024-07-11 19:00:49 -07:00
rustc_const_eval Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00
rustc_data_structures Use uplifted rustc-stable-hash crate in rustc_data_structures 2024-07-11 16:51:16 +02:00
rustc_driver
rustc_driver_impl
rustc_error_codes
rustc_error_messages
rustc_errors Rollup merge of #120248 - WaffleLapkin:bonk-ptr-object-casts, r=compiler-errors,oli-obk,lnicola 2024-07-08 16:28:15 +02:00
rustc_expand Rollup merge of #126841 - c410-f3r:concat-again, r=petrochenkov 2024-07-08 13:04:30 +08:00
rustc_feature Rollup merge of #126639 - sayantn:amx, r=Amanieu 2024-07-12 14:37:57 +02:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_analysis Auto merge of #127575 - chenyukang:yukang-fix-struct-fields-ice, r=compiler-errors 2024-07-11 03:12:38 +00:00
rustc_hir_pretty
rustc_hir_typeck Rollup merge of #127596 - tesuji:help-unwrap-or, r=compiler-errors 2024-07-12 03:43:35 +02:00
rustc_incremental
rustc_index
rustc_index_macros
rustc_infer Avoid follow-up errors and ICEs after missing lifetime errors on data structures 2024-07-11 11:00:15 +00:00
rustc_interface
rustc_lexer
rustc_lint Auto merge of #127097 - compiler-errors:async-closure-lint, r=oli-obk 2024-07-11 06:59:10 +00:00
rustc_lint_defs Auto merge of #127097 - compiler-errors:async-closure-lint, r=oli-obk 2024-07-11 06:59:10 +00:00
rustc_llvm
rustc_log
rustc_macros Make sure that labels are defined after the primary span in diagnostics 2024-07-10 18:55:45 -04:00
rustc_metadata report pat no field error no recoverd struct variant 2024-07-11 00:18:47 +08:00
rustc_middle Rollup merge of #127627 - lcnr:rustc_search_graph, r=compiler-errors 2024-07-12 14:38:00 +02:00
rustc_mir_build Address review comments 2024-07-09 22:47:35 +02:00
rustc_mir_dataflow Support tail calls in mir via TerminatorKind::TailCall 2024-07-07 17:11:04 +02:00
rustc_mir_transform Auto merge of #127234 - ZhuUx:inlined-expr, r=davidtwco,Zalathar 2024-07-09 20:24:30 +00:00
rustc_monomorphize Auto merge of #113128 - WaffleLapkin:become_trully_unuwuable, r=oli-obk,RalfJung 2024-07-08 04:35:04 +00:00
rustc_next_trait_solver enable fuzzing of SearchGraph 2024-07-12 06:30:19 -04:00
rustc_parse Auto merge of #127636 - nnethercote:fix-Parser-look_ahead, r=oli-obk 2024-07-12 17:28:21 +00:00
rustc_parse_format
rustc_passes Move trait selection error reporting to its own top-level module 2024-07-08 16:04:47 -04:00
rustc_pattern_analysis
rustc_privacy
rustc_query_impl
rustc_query_system enable fuzzing of SearchGraph 2024-07-12 06:30:19 -04:00
rustc_resolve Auto merge of #127382 - estebank:const-let, r=compiler-errors 2024-07-12 01:18:12 +00:00
rustc_sanitizers
rustc_serialize
rustc_session
rustc_smir Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
rustc_span Add the feature gate and target-features 2024-07-11 19:00:49 -07:00
rustc_symbol_mangling
rustc_target Add the feature gate and target-features 2024-07-11 19:00:49 -07:00
rustc_trait_selection Allows #[diagnostic::do_not_recommend] to supress trait impls in suggestions as well 2024-07-11 08:14:28 +02:00
rustc_traits Split out overflow handling into its own module 2024-07-09 09:51:56 -04:00
rustc_transmute
rustc_ty_utils Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00
rustc_type_ir Rollup merge of #127627 - lcnr:rustc_search_graph, r=compiler-errors 2024-07-12 14:38:00 +02:00
rustc_type_ir_macros
stable_mir Remove extern "wasm" ABI 2024-07-11 12:20:26 +02:00