]> git.lizzy.rs Git - rust.git/commit
clarify why we're suggesting removing semicolon after braced items
authorZack M. Davis <code@zackmdavis.net>
Sat, 30 Jun 2018 20:18:39 +0000 (13:18 -0700)
committerZack M. Davis <code@zackmdavis.net>
Sat, 30 Jun 2018 21:11:44 +0000 (14:11 -0700)
commitdb2f3d7a8827055342b3385622470926d6056fc4
treec497a2e973b6f4d2ea51d1d8318ed0fa7336747d
parent8772747c5f3a5809aea9abdb1586613b751db9ac
clarify why we're suggesting removing semicolon after braced items

Previously (issue #46186, pull-request #46258), a suggestion was added
to remove the semicolon after we fail to parse an item, but issue #51603
complains that it's still insufficiently obvious why. Let's add a note.

Resolves #51603.
src/libsyntax/parse/parser.rs
src/test/ui/issue-46186.stderr