]> git.lizzy.rs Git - rust.git/commit
Auto merge of #75611 - JulianKnodt:cg_enum_err, r=lcnr
authorbors <bors@rust-lang.org>
Fri, 11 Sep 2020 08:40:07 +0000 (08:40 +0000)
committerbors <bors@rust-lang.org>
Fri, 11 Sep 2020 08:40:07 +0000 (08:40 +0000)
commita7425476e81207c7ff3d229b69172e78a732da5d
tree0053bf3715f0713478883312afe5a65dcef0bff8
parentf5b7dd8181b0f483a890f8f3c19d08d6de03a444
parent96bb2c86f2cfe03ad870d12b3b838e8b75eb1978
Auto merge of #75611 - JulianKnodt:cg_enum_err, r=lcnr

Add help note when using type in place of const

This adds a small help note when it might be possible that wrapping a parameter in braces might resolve the issue of having a type where a const was expected.

Currently, I am displaying the `HirId`, and I'm not particularly sure where to get the currently displayed path(?).

r? `@lcnr`
compiler/rustc_typeck/src/astconv/generics.rs