rust/compiler
bors 20b1e05a8d Auto merge of #77502 - varkor:const-generics-suggest-enclosing-braces, r=petrochenkov
Suggest that expressions that look like const generic arguments should be enclosed in brackets

I pulled out the changes for const expressions from https://github.com/rust-lang/rust/pull/71592 (without the trait object diagnostic changes) and made some small changes; the implementation is `@estebank's.`

We're also going to want to make some changes separately to account for trait objects (they result in poor diagnostics, as is evident from one of the test cases here), such as an adaption of https://github.com/rust-lang/rust/pull/72273.

Fixes https://github.com/rust-lang/rust/issues/70753.

r? `@petrochenkov`
2020-10-27 09:25:54 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Auto merge of #77502 - varkor:const-generics-suggest-enclosing-braces, r=petrochenkov 2020-10-27 09:25:54 +00:00
rustc_ast_lowering
rustc_ast_passes
rustc_ast_pretty
rustc_attr
rustc_builtin_macros
rustc_codegen_cranelift Add 'compiler/rustc_codegen_cranelift/' from commit '793d26047f994e23415f8f6bb5686ff25d3dda92' 2020-10-26 09:53:27 +01:00
rustc_codegen_llvm Auto merge of #68965 - eddyb:mir-inline-scope, r=nagisa,oli-obk 2020-10-26 18:50:22 +00:00
rustc_codegen_ssa Rollup merge of #78396 - josephlr:ermsb, r=petrochenkov 2020-10-27 08:45:24 +09:00
rustc_data_structures
rustc_driver Auto merge of #77975 - bjorn3:cg_clif_subtree3, r=Mark-Simulacrum 2020-10-26 16:31:38 +00:00
rustc_error_codes Rollup merge of #78332 - PoignardAzur:doc_E0308, r=camelid 2020-10-27 08:44:54 +09:00
rustc_errors
rustc_expand Rollup merge of #78326 - Aaron1011:fix/min-stmt-lints, r=petrochenkov 2020-10-25 18:43:49 +09:00
rustc_feature Rollup merge of #78396 - josephlr:ermsb, r=petrochenkov 2020-10-27 08:45:24 +09:00
rustc_fs_util
rustc_graphviz
rustc_hir Rollup merge of #78326 - Aaron1011:fix/min-stmt-lints, r=petrochenkov 2020-10-25 18:43:49 +09:00
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer Rollup merge of #78268 - JohnTitor:issue-78262, r=estebank 2020-10-26 03:09:11 +01:00
rustc_interface Auto merge of #77975 - bjorn3:cg_clif_subtree3, r=Mark-Simulacrum 2020-10-26 16:31:38 +00:00
rustc_lexer
rustc_lint
rustc_llvm
rustc_macros
rustc_metadata
rustc_middle Auto merge of #77502 - varkor:const-generics-suggest-enclosing-braces, r=petrochenkov 2020-10-27 09:25:54 +00:00
rustc_mir Auto merge of #77876 - tmiasko:simplify-locals, r=wesleywiser 2020-10-26 23:22:39 +00:00
rustc_mir_build Rollup merge of #78377 - LeSeulArtichaut:patch-docs, r=jonas-schievink 2020-10-27 08:45:14 +09:00
rustc_parse Auto merge of #77502 - varkor:const-generics-suggest-enclosing-braces, r=petrochenkov 2020-10-27 09:25:54 +00:00
rustc_parse_format
rustc_passes Rollup merge of #78208 - liketechnik:issue-69399, r=oli-obk 2020-10-25 18:43:40 +09:00
rustc_plugin_impl
rustc_privacy
rustc_query_system
rustc_resolve Rollup merge of #77984 - Aaron1011:fix/macro-mod-weird-parent, r=petrochenkov 2020-10-25 18:43:37 +09:00
rustc_save_analysis Rollup merge of #78349 - JohnTitor:issue-75962, r=davidtwco 2020-10-27 08:45:07 +09:00
rustc_serialize
rustc_session Fix typo in lint description 2020-10-26 11:46:11 -07:00
rustc_span Rollup merge of #78396 - josephlr:ermsb, r=petrochenkov 2020-10-27 08:45:24 +09:00
rustc_symbol_mangling
rustc_target
rustc_trait_selection Rollup merge of #78214 - estebank:match-semicolon, r=oli-obk 2020-10-26 03:09:06 +01:00
rustc_traits
rustc_ty
rustc_typeck Auto merge of #77317 - varkor:break-diverging-value, r=nikomatsakis 2020-10-27 07:10:55 +00:00