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
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
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
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer
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
rustc_plugin_impl
rustc_privacy
rustc_query_system
rustc_resolve
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
rustc_traits
rustc_ty
rustc_typeck Auto merge of #77317 - varkor:break-diverging-value, r=nikomatsakis 2020-10-27 07:10:55 +00:00