rust/compiler
Jubilee 0d68e416a5
Rollup merge of #116400 - estebank:issue-78585, r=WaffleLapkin
Detect missing `=>` after match guard during parsing

```
error: expected one of `,`, `:`, or `}`, found `.`
  --> $DIR/missing-fat-arrow.rs:25:14
   |
LL |         Some(a) if a.value == b {
   |                               - while parsing this struct
LL |             a.value = 1;
   |             -^ expected one of `,`, `:`, or `}`
   |             |
   |             while parsing this struct field
   |
help: try naming a field
   |
LL |             a: a.value = 1;
   |             ++
help: you might have meant to start a match arm after the match guard
   |
LL |         Some(a) if a.value == b => {
   |                                 ++
```

Fix #78585.
2023-10-06 16:37:47 -07:00
..
rustc
rustc_abi
rustc_arena
rustc_ast
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_baked_icu_data
rustc_borrowck Auto merge of #114811 - estebank:impl-ambiguity, r=wesleywiser 2023-10-06 18:44:32 +00:00
rustc_builtin_macros
rustc_codegen_cranelift Rollup merge of #116277 - RalfJung:post-mono, r=oli-obk 2023-10-06 16:37:46 -07:00
rustc_codegen_gcc
rustc_codegen_llvm
rustc_codegen_ssa Rollup merge of #116277 - RalfJung:post-mono, r=oli-obk 2023-10-06 16:37:46 -07:00
rustc_const_eval Rollup merge of #116277 - RalfJung:post-mono, r=oli-obk 2023-10-06 16:37:46 -07:00
rustc_data_structures
rustc_driver
rustc_driver_impl
rustc_error_codes Auto merge of #114811 - estebank:impl-ambiguity, r=wesleywiser 2023-10-06 18:44:32 +00:00
rustc_error_messages
rustc_errors
rustc_expand
rustc_feature
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_analysis Auto merge of #114811 - estebank:impl-ambiguity, r=wesleywiser 2023-10-06 18:44:32 +00:00
rustc_hir_pretty
rustc_hir_typeck Auto merge of #114811 - estebank:impl-ambiguity, r=wesleywiser 2023-10-06 18:44:32 +00:00
rustc_incremental
rustc_index
rustc_infer Auto merge of #114811 - estebank:impl-ambiguity, r=wesleywiser 2023-10-06 18:44:32 +00:00
rustc_interface
rustc_lexer
rustc_lint
rustc_lint_defs
rustc_llvm
rustc_log
rustc_macros
rustc_metadata
rustc_middle Rollup merge of #116277 - RalfJung:post-mono, r=oli-obk 2023-10-06 16:37:46 -07:00
rustc_mir_build
rustc_mir_dataflow
rustc_mir_transform
rustc_monomorphize Rollup merge of #116277 - RalfJung:post-mono, r=oli-obk 2023-10-06 16:37:46 -07:00
rustc_parse Rollup merge of #116400 - estebank:issue-78585, r=WaffleLapkin 2023-10-06 16:37:47 -07:00
rustc_parse_format
rustc_passes Auto merge of #114811 - estebank:impl-ambiguity, r=wesleywiser 2023-10-06 18:44:32 +00:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve
rustc_serialize
rustc_session
rustc_smir
rustc_span Rollup merge of #116474 - nnethercote:rustc_assorted, r=spastorino 2023-10-06 21:17:50 +02:00
rustc_symbol_mangling
rustc_target
rustc_trait_selection Auto merge of #114811 - estebank:impl-ambiguity, r=wesleywiser 2023-10-06 18:44:32 +00:00
rustc_traits
rustc_transmute
rustc_ty_utils
rustc_type_ir
stable_mir