]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #45644 - zackmdavis:edit_disallowed_inner_attr_note, r=estebank
authorkennytm <kennytm@gmail.com>
Wed, 1 Nov 2017 05:32:13 +0000 (13:32 +0800)
committerGitHub <noreply@github.com>
Wed, 1 Nov 2017 05:32:13 +0000 (13:32 +0800)
commit26af3e1c4ec460703da391af037bf8c2999ea61f
tree4c41df55053d62a46037197106b869ce3e915c3f
parent28b18790f7dc37c83f67f3974d9e25e176b66bf4
parent42ef3f17841b9de7c6a405645c3c4ad8eded9ca5
Rollup merge of #45644 - zackmdavis:edit_disallowed_inner_attr_note, r=estebank

edit and fix bad spacing of inner-attribute-not-allowed note

This multiline string literal was missing a backslash, leaving an awkward
newline and 35 spaces in the middle of the message.

But while we're here, the existing message seems kind of long in comparison to
similar notes: to cut it down, we excise the mentions of doc comments, which
seems sensible because we know that this erroneous attribute is not a doc
comment (notice the `is_sugared_doc: false` at the end of the function; if it
had been a doc comment, that error would get set in the `token::DocComment`
match branch of `parse_outer_attributes`).