]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Auto merge of #61140 - estebank:attr-diagnostics, r=michaelwoerister
authorbors <bors@rust-lang.org>
Mon, 27 May 2019 20:12:14 +0000 (20:12 +0000)
committerbors <bors@rust-lang.org>
Mon, 27 May 2019 20:12:14 +0000 (20:12 +0000)
commite70d5386d7abcf39adf54feb43a655c4f8a1bcb6
tree78f07aa416883894265d017c06e0dd6adb7d1d30
parentfa40a111ff56c38590e83242e444e294093add07
parent609ffa1a890fd6b8b0364cd7b35bf1d45abf82d0
Auto merge of #61140 - estebank:attr-diagnostics, r=michaelwoerister

Reword malformed attribute input diagnostics

- Handle empty `cfg_attr` attribute
- Reword empty `derive` attribute error
- Use consistend error message: "malformed `attrname` attribute input"
- Provide suggestions when possible
- Move note/help to label/suggestion
- Use consistent wording "ill-formed" -> "malformed"
- Move diagnostic logic out of parser

Split up from https://github.com/rust-lang/rust/pull/61026, where there's prior conversation.
src/libsyntax/ext/derive.rs