about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-10-27 09:25:54 +0000
committerbors <bors@rust-lang.org>2020-10-27 09:25:54 +0000
commit20b1e05a8d0e1773dc840a3286aa37916e87d84b (patch)
treeeab6e728ec3e7f34021c2fb4b4ca69998392711a /compiler/rustc_codegen_llvm/src
parent824f900a96d752da2d882863c65f9736e5f2b347 (diff)
parentac1454001cee3f344a1104fd0cf4012b93443b0b (diff)
downloadrust-20b1e05a8d0e1773dc840a3286aa37916e87d84b.tar.gz
rust-20b1e05a8d0e1773dc840a3286aa37916e87d84b.zip
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`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions