{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/21744","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/21744/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/21744/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/21744/events","html_url":"https://github.com/rust-lang/rust/pull/21744","id":55891581,"number":21744,"title":"Qualify constness in rvalue expressions for promotion to globals.","user":{"login":"eddyb","id":77424,"avatar_url":"https://avatars.githubusercontent.com/u/77424?v=3","gravatar_id":"","url":"https://api.github.com/users/eddyb","html_url":"https://github.com/eddyb","followers_url":"https://api.github.com/users/eddyb/followers","following_url":"https://api.github.com/users/eddyb/following{/other_user}","gists_url":"https://api.github.com/users/eddyb/gists{/gist_id}","starred_url":"https://api.github.com/users/eddyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddyb/subscriptions","organizations_url":"https://api.github.com/users/eddyb/orgs","repos_url":"https://api.github.com/users/eddyb/repos","events_url":"https://api.github.com/users/eddyb/events{/privacy}","received_events_url":"https://api.github.com/users/eddyb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"nikomatsakis","id":155238,"avatar_url":"https://avatars.githubusercontent.com/u/155238?v=3","gravatar_id":"","url":"https://api.github.com/users/nikomatsakis","html_url":"https://github.com/nikomatsakis","followers_url":"https://api.github.com/users/nikomatsakis/followers","following_url":"https://api.github.com/users/nikomatsakis/following{/other_user}","gists_url":"https://api.github.com/users/nikomatsakis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikomatsakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikomatsakis/subscriptions","organizations_url":"https://api.github.com/users/nikomatsakis/orgs","repos_url":"https://api.github.com/users/nikomatsakis/repos","events_url":"https://api.github.com/users/nikomatsakis/events{/privacy}","received_events_url":"https://api.github.com/users/nikomatsakis/received_events","type":"User","site_admin":false},"milestone":null,"comments":35,"created_at":"2015-01-29T12:12:59Z","updated_at":"2015-02-15T16:37:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/21744","html_url":"https://github.com/rust-lang/rust/pull/21744","diff_url":"https://github.com/rust-lang/rust/pull/21744.diff","patch_url":"https://github.com/rust-lang/rust/pull/21744.patch"},"body":"This includes everything necessary for promoting borrows of constant rvalues to `'static`.\r\nThat is, `&expr` will have the type `&'static T` if `const T: &'static T = &expr;` is valid.\r\nThere is a small exception, dereferences of raw pointers, as they misbehave.\r\nThey still \"work\" in constants as I didn't want to break legitimate uses (are there any?).\r\n\r\nThe qualification done here can be expanded to allow simple CTFE via `const fn`."},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/74424590","html_url":"https://github.com/rust-lang/rust/pull/21744#issuecomment-74424590","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/21744","id":74424590,"user":{"login":"bors","id":3372342,"avatar_url":"https://avatars.githubusercontent.com/u/3372342?v=3","gravatar_id":"","url":"https://api.github.com/users/bors","html_url":"https://github.com/bors","followers_url":"https://api.github.com/users/bors/followers","following_url":"https://api.github.com/users/bors/following{/other_user}","gists_url":"https://api.github.com/users/bors/gists{/gist_id}","starred_url":"https://api.github.com/users/bors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bors/subscriptions","organizations_url":"https://api.github.com/users/bors/orgs","repos_url":"https://api.github.com/users/bors/repos","events_url":"https://api.github.com/users/bors/events{/privacy}","received_events_url":"https://api.github.com/users/bors/received_events","type":"User","site_admin":false},"created_at":"2015-02-15T16:37:52Z","updated_at":"2015-02-15T16:37:52Z","body":":broken_heart: Test failed - [auto-win-32-opt](http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/3287)"}}