]> git.lizzy.rs Git - rust.git/commit - src/tools/rust-analyzer
Rollup merge of #76719 - hameerabbasi:min-const-generics-ty, r=lcnr
authorTyler Mandry <tmandry@gmail.com>
Wed, 16 Sep 2020 19:24:06 +0000 (12:24 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Sep 2020 19:24:06 +0000 (12:24 -0700)
commita63f8c1cac77a7b69e1aa3f25cb37f5b8299d1fc
treef5881dd41de65149e52f027441949651d1db2572
parentece688bae9cbbd82fc6c8010b263f66aaab92f57
parent5f0b77539011a5a5297beda420d70f6ab22b2e7e
Rollup merge of #76719 - hameerabbasi:min-const-generics-ty, r=lcnr

Change error message for ty param in const

This PR introduces the following changes:

* Change error message for type param in a const expression when using
`min_const_generics`
* Change `ParamInNonTrivialAnonConst` to contain an extra `bool` used for
distinguishing whether the passed-in symbol is a type or a value.

Fixes #76701