{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/1559","repository_url":"https://api.github.com/repos/rust-lang/rfcs","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1559/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1559/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1559/events","html_url":"https://github.com/rust-lang/rfcs/pull/1559","id":144121440,"number":1559,"title":"RFC: Allow all literals in attributes","user":{"login":"SergioBenitez","id":1480321,"avatar_url":"https://avatars.githubusercontent.com/u/1480321?v=3","gravatar_id":"","url":"https://api.github.com/users/SergioBenitez","html_url":"https://github.com/SergioBenitez","followers_url":"https://api.github.com/users/SergioBenitez/followers","following_url":"https://api.github.com/users/SergioBenitez/following{/other_user}","gists_url":"https://api.github.com/users/SergioBenitez/gists{/gist_id}","starred_url":"https://api.github.com/users/SergioBenitez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergioBenitez/subscriptions","organizations_url":"https://api.github.com/users/SergioBenitez/orgs","repos_url":"https://api.github.com/users/SergioBenitez/repos","events_url":"https://api.github.com/users/SergioBenitez/events{/privacy}","received_events_url":"https://api.github.com/users/SergioBenitez/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rfcs/labels/T-lang","name":"T-lang","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-03-29T00:37:27Z","updated_at":"2016-03-29T23:25:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1559","html_url":"https://github.com/rust-lang/rfcs/pull/1559","diff_url":"https://github.com/rust-lang/rfcs/pull/1559.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/1559.patch"},"body":"I'd like to allow all types of literals to appear in attributes at both top-level positions in lists and as values in k/v pairs. This would, for example, make the following syntax valid:\r\n\r\n```rust\r\n#[attr(ident, ident = 100, \"hi\", ident = \"hello\", ident(100))]\r\n#[attr(100)]\r\n#[attr(\"hello\")]\r\n#[repr(C, align = 4)]\r\n#[repr(C, align(4))]\r\n```\r\n\r\n[Rendered](https://github.com/SergioBenitez/rfcs/blob/master/text/0000-attributes-with-literals.md)"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/203155548","html_url":"https://github.com/rust-lang/rfcs/pull/1559#issuecomment-203155548","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1559","id":203155548,"user":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"created_at":"2016-03-29T23:25:00Z","updated_at":"2016-03-29T23:25:00Z","body":"I would prefer that attributes just take token trees, rather than have this key: value stuff going on."}}