]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #61056 - euclio:custom-discriminant-error, r=estebank
authorMazdak Farrokhzad <twingoow@gmail.com>
Thu, 23 May 2019 23:30:21 +0000 (01:30 +0200)
committerGitHub <noreply@github.com>
Thu, 23 May 2019 23:30:21 +0000 (01:30 +0200)
commit26f3528434cad89e5bd9fdb4b35ac260c472b740
tree3dadab5b9914bde5b788629ccba3cfc7c1258303
parentb9459e7e4d0c5e1022959c4dab4999f862f1fdda
parent3cbf5864a6b7088eb28da30b9ccf61ba8d90054f
Rollup merge of #61056 - euclio:custom-discriminant-error, r=estebank

tweak discriminant on non-nullary enum diagnostic

Adds notes pointing at the non-nullary variants, and uses "custom
discriminant" language to be consistent with the Reference.

Fixes #61039.

r? @estebank
src/libsyntax/parse/parser.rs