{"action":"opened","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/31369","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/31369/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/31369/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/31369/events","html_url":"https://github.com/rust-lang/rust/issues/31369","id":130812907,"number":31369,"title":"cfg attributes appear are improperly applied inside of `include!`","user":{"login":"sgrif","id":1529387,"avatar_url":"https://avatars.githubusercontent.com/u/1529387?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrif","html_url":"https://github.com/sgrif","followers_url":"https://api.github.com/users/sgrif/followers","following_url":"https://api.github.com/users/sgrif/following{/other_user}","gists_url":"https://api.github.com/users/sgrif/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrif/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrif/subscriptions","organizations_url":"https://api.github.com/users/sgrif/orgs","repos_url":"https://api.github.com/users/sgrif/repos","events_url":"https://api.github.com/users/sgrif/events{/privacy}","received_events_url":"https://api.github.com/users/sgrif/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-02T20:52:11Z","updated_at":"2016-02-02T20:52:11Z","closed_at":null,"body":"Example to reproduce:\r\n\r\n```rust\r\n// src/lib.rs\r\ninclude!(\"foo.rs\");\r\n\r\n// foo.rs\r\n#[cfg(feature = \"never\")]\r\ninclude!(\"error.rs\");\r\n\r\n// error.rs\r\nomg i'm a syntax error\r\n```\r\n\r\nThis should successfully compile, but instead will have a syntax error. It should behave identically to what would occur if you inlined the first `include!`, (which does compile successfully)\r\n\r\n```rust\r\n// src/lib.rs\r\n#[cfg(feature = \"never\")]\r\ninclude!(\"error.rs\");\r\n\r\n// error.rs\r\nomg i'm a syntax error\r\n```"}}