rust/compiler
Dylan DPC 91e5384fc0
Rollup merge of #81869 - mark-i-m:leading-vert, r=petrochenkov
Simplify pattern grammar, improve or-pattern diagnostics

This implements the change under FCP in https://github.com/rust-lang/rust/issues/81415. It allows nested or-patterns to contain a leading `|`, simplifying the [grammar for patterns](https://github.com/rust-lang/reference/pull/957/files?short_path=cc629f1#diff-cc629f15712821139bc706c63b3845ab59a008e2a998e08ffad42e3aebcbcbe2).

Along the way, we also improve the diagnostics around a few specially-handled cases, such as using `||` instead of `|`, using or-patterns in fn params, including the leading `|` in the pattern span, etc.

r? `@petrochenkov`
2021-02-17 23:51:16 +01:00
..
rustc
rustc_apfloat bumped smallvec deps 2021-02-14 18:03:11 +03:00
rustc_arena Rollup merge of #82077 - pierwill:edit-droparena, r=lcnr 2021-02-15 16:07:00 +01:00
rustc_ast Auto merge of #82103 - Dylan-DPC:rollup-5wv8rid, r=Dylan-DPC 2021-02-14 22:26:21 +00:00
rustc_ast_lowering Auto merge of #81611 - cjgillot:meowner, r=estebank 2021-02-16 22:14:32 +00:00
rustc_ast_passes
rustc_ast_pretty avoid full-slicing slices 2021-02-16 00:31:11 +01:00
rustc_attr
rustc_builtin_macros avoid full-slicing slices 2021-02-16 00:31:11 +01:00
rustc_codegen_cranelift Use an ItemId inside mir::GlobalAsm. 2021-02-15 19:24:58 +01:00
rustc_codegen_llvm Rollup merge of #82105 - nagisa:nagisa/ensure-removed, r=petrochenkov 2021-02-17 20:37:57 +01:00
rustc_codegen_ssa Rollup merge of #82105 - nagisa:nagisa/ensure-removed, r=petrochenkov 2021-02-17 20:37:57 +01:00
rustc_data_structures Auto merge of #81855 - cjgillot:ensure-cache, r=oli-obk 2021-02-15 12:11:59 +00:00
rustc_driver Rollup merge of #82174 - est31:master, r=oli-obk 2021-02-17 20:38:01 +01:00
rustc_error_codes Add long explanation for E0543 2021-02-17 18:08:30 +01:00
rustc_errors
rustc_expand Rollup merge of #81869 - mark-i-m:leading-vert, r=petrochenkov 2021-02-17 23:51:16 +01:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir Trait impls are Items, therefore HIR owners. 2021-02-15 19:36:13 +01:00
rustc_hir_pretty Auto merge of #81611 - cjgillot:meowner, r=estebank 2021-02-16 22:14:32 +00:00
rustc_incremental Use less HirId when referring to items. 2021-02-15 19:36:12 +01:00
rustc_index
rustc_infer Auto merge of #81611 - cjgillot:meowner, r=estebank 2021-02-16 22:14:32 +00:00
rustc_interface Index Modules using their LocalDefId. 2021-02-15 19:32:30 +01:00
rustc_lexer
rustc_lint Rollup merge of #79981 - camelid:overflowing_literals-inference-error, r=lcnr 2021-02-17 20:37:48 +01:00
rustc_lint_defs
rustc_llvm
rustc_macros
rustc_metadata Auto merge of #81611 - cjgillot:meowner, r=estebank 2021-02-16 22:14:32 +00:00
rustc_middle Reduce size of InterpErrorInfo to 8 bytes 2021-02-17 08:57:06 +01:00
rustc_mir Auto merge of #82235 - GuillaumeGomez:rollup-oflxc08, r=GuillaumeGomez 2021-02-17 19:39:58 +00:00
rustc_mir_build Rollup merge of #82029 - tmiasko:debug, r=matthewjasper 2021-02-14 16:54:52 +01:00
rustc_parse Simplify pattern grammar by allowing nested leading vert 2021-02-15 12:07:54 -06:00
rustc_parse_format
rustc_passes Use less HirId when referring to items. 2021-02-15 19:36:12 +01:00
rustc_plugin_impl Only store a LocalDefId in hir::Item. 2021-02-15 19:32:10 +01:00
rustc_privacy Only store a LocalDefId in hir::MacroDef. 2021-02-15 19:35:55 +01:00
rustc_query_system Inline try_get_cached 2021-02-16 00:00:00 +00:00
rustc_resolve Auto merge of #81611 - cjgillot:meowner, r=estebank 2021-02-16 22:14:32 +00:00
rustc_save_analysis Only store a LocalDefId in hir::ForeignItem. 2021-02-15 19:32:29 +01:00
rustc_serialize bumped smallvec deps 2021-02-14 18:03:11 +03:00
rustc_session rustdoc: treat edition 2021 as unstable 2021-02-16 19:17:01 -08:00
rustc_span Rollup merge of #81860 - osa1:issue81800, r=estebank 2021-02-17 23:51:14 +01:00
rustc_symbol_mangling Use less HirId when referring to items. 2021-02-15 19:36:12 +01:00
rustc_target avoid full-slicing slices 2021-02-16 00:31:11 +01:00
rustc_trait_selection Rollup merge of #81503 - henryboisdequin:fix-const-fn-arr-err-msg, r=estebank 2021-02-15 16:06:47 +01:00
rustc_traits Rollup merge of #82029 - tmiasko:debug, r=matthewjasper 2021-02-14 16:54:52 +01:00
rustc_ty_utils Auto merge of #81611 - cjgillot:meowner, r=estebank 2021-02-16 22:14:32 +00:00
rustc_type_ir
rustc_typeck Auto merge of #81611 - cjgillot:meowner, r=estebank 2021-02-16 22:14:32 +00:00