{"action":"closed","issue":{"url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/2779","repository_url":"https://api.github.com/repos/intellij-rust/intellij-rust","labels_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/2779/labels{/name}","comments_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/2779/comments","events_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/2779/events","html_url":"https://github.com/intellij-rust/intellij-rust/issues/2779","id":351928062,"node_id":"MDU6SXNzdWUzNTE5MjgwNjI=","number":2779,"title":"#[cfg_attr(rustfmt, rustfmt_skip)] on macro results in parse error","user":{"login":"YaLTeR","id":1794388,"node_id":"MDQ6VXNlcjE3OTQzODg=","avatar_url":"https://avatars2.githubusercontent.com/u/1794388?v=4","gravatar_id":"","url":"https://api.github.com/users/YaLTeR","html_url":"https://github.com/YaLTeR","followers_url":"https://api.github.com/users/YaLTeR/followers","following_url":"https://api.github.com/users/YaLTeR/following{/other_user}","gists_url":"https://api.github.com/users/YaLTeR/gists{/gist_id}","starred_url":"https://api.github.com/users/YaLTeR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaLTeR/subscriptions","organizations_url":"https://api.github.com/users/YaLTeR/orgs","repos_url":"https://api.github.com/users/YaLTeR/repos","events_url":"https://api.github.com/users/YaLTeR/events{/privacy}","received_events_url":"https://api.github.com/users/YaLTeR/received_events","type":"User","site_admin":false},"labels":[{"id":785988080,"node_id":"MDU6TGFiZWw3ODU5ODgwODA=","url":"https://api.github.com/repos/intellij-rust/intellij-rust/labels/bug","name":"bug","color":"F91A16","default":true},{"id":785989550,"node_id":"MDU6TGFiZWw3ODU5ODk1NTA=","url":"https://api.github.com/repos/intellij-rust/intellij-rust/labels/macros","name":"macros","color":"9F1A14","default":false}],"state":"closed","locked":false,"assignee":{"login":"vlad20012","id":3221931,"node_id":"MDQ6VXNlcjMyMjE5MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/3221931?v=4","gravatar_id":"","url":"https://api.github.com/users/vlad20012","html_url":"https://github.com/vlad20012","followers_url":"https://api.github.com/users/vlad20012/followers","following_url":"https://api.github.com/users/vlad20012/following{/other_user}","gists_url":"https://api.github.com/users/vlad20012/gists{/gist_id}","starred_url":"https://api.github.com/users/vlad20012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlad20012/subscriptions","organizations_url":"https://api.github.com/users/vlad20012/orgs","repos_url":"https://api.github.com/users/vlad20012/repos","events_url":"https://api.github.com/users/vlad20012/events{/privacy}","received_events_url":"https://api.github.com/users/vlad20012/received_events","type":"User","site_admin":false},"assignees":[{"login":"vlad20012","id":3221931,"node_id":"MDQ6VXNlcjMyMjE5MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/3221931?v=4","gravatar_id":"","url":"https://api.github.com/users/vlad20012","html_url":"https://github.com/vlad20012","followers_url":"https://api.github.com/users/vlad20012/followers","following_url":"https://api.github.com/users/vlad20012/following{/other_user}","gists_url":"https://api.github.com/users/vlad20012/gists{/gist_id}","starred_url":"https://api.github.com/users/vlad20012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlad20012/subscriptions","organizations_url":"https://api.github.com/users/vlad20012/orgs","repos_url":"https://api.github.com/users/vlad20012/repos","events_url":"https://api.github.com/users/vlad20012/events{/privacy}","received_events_url":"https://api.github.com/users/vlad20012/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-08-19T19:31:49Z","updated_at":"2018-11-29T16:03:18Z","closed_at":"2018-11-29T16:03:18Z","author_association":"NONE","body":"<!--\r\nHello and thank you for the issue!\r\nIf you would like to report a bug, we have added some points below that you can fill out.\r\nFeel free to remove all the irrelevant text to request a new feature.\r\n-->\r\n\r\n## Environment\r\n\r\n* **Intellij-Rust plugin version:** 0.2.0.2103-182\r\n* **Rust toolchain version:** 1.28.0\r\n* **IDE name and version:** CLion 2018.2\r\n* **Operating system:** Arch Linux\r\n\r\n## Problem description\r\nAdding an attribute to a macro declaration results in a parse error: `'&', '(', ';', <add bin op>, <assign bin op>, <comp bin op>, <mul bin op>, <rel comp bin op>, '[', '^', '|' or '}' expected, got 'let'`\r\n\r\n## Steps to reproduce\r\nCreate a new project with the following code:\r\n```rust\r\nfn main() {\r\n    #[cfg_attr(rustfmt, rustfmt_skip)]\r\n    macro_rules! test {\r\n        () => {};\r\n    } // Parse error right here.\r\n\r\n    let _ = 5;\r\n}\r\n```\r\nObserve the parse error. Remove `#[cfg_attr(rustfmt, rustfmt_skip)]` and observe how the error is gone.\r\n<!--\r\nPlease include as much of your codebase as needed to reproduce the error.\r\nIf the relevant files are large, please provide a link to a public repository or a [Gist](https://gist.github.com/).\r\n-->\r\n"}}
{"actor":{"display_login":"bors"}}