{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/50814","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/50814/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/50814/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/50814/events","html_url":"https://github.com/rust-lang/rust/issues/50814","id":323818344,"number":50814,"title":"Segfault or wrong values from `const FOO: u32 = 0 - 1; println!(\"{}\", FOO);`","user":{"login":"ollie27","id":7189418,"avatar_url":"https://avatars2.githubusercontent.com/u/7189418?v=4","gravatar_id":"","url":"https://api.github.com/users/ollie27","html_url":"https://github.com/ollie27","followers_url":"https://api.github.com/users/ollie27/followers","following_url":"https://api.github.com/users/ollie27/following{/other_user}","gists_url":"https://api.github.com/users/ollie27/gists{/gist_id}","starred_url":"https://api.github.com/users/ollie27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ollie27/subscriptions","organizations_url":"https://api.github.com/users/ollie27/orgs","repos_url":"https://api.github.com/users/ollie27/repos","events_url":"https://api.github.com/users/ollie27/events{/privacy}","received_events_url":"https://api.github.com/users/ollie27/received_events","type":"User","site_admin":false},"labels":[{"id":900795185,"url":"https://api.github.com/repos/rust-lang/rust/labels/A-const-eval","name":"A-const-eval","color":"d7e102","default":false},{"id":650731663,"url":"https://api.github.com/repos/rust-lang/rust/labels/C-bug","name":"C-bug","color":"f5f1fd","default":false},{"id":100522,"url":"https://api.github.com/repos/rust-lang/rust/labels/I-crash","name":"I-crash","color":"e10c02","default":false},{"id":211668100,"url":"https://api.github.com/repos/rust-lang/rust/labels/T-compiler","name":"T-compiler","color":"bfd4f2","default":false},{"id":262252840,"url":"https://api.github.com/repos/rust-lang/rust/labels/regression-from-stable-to-stable","name":"regression-from-stable-to-stable","color":"e4008a","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-16T23:06:56Z","updated_at":"2018-05-17T04:48:35Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The following programs produce a binary that will either segfault or produce a nonsense value seemingly depending on whether optimizations are enabled or not.\r\n\r\n```rust\r\nfn main() {\r\n    const FOO: u32 = 0 - 1;\r\n    println!(\"{}\", FOO);\r\n}\r\n```\r\n\r\n```rust\r\nfn main() {\r\n    println!(\"{}\", 0u32 - 1);\r\n}\r\n```\r\n\r\nOn 1.25.0 they behave as expected (the first doesn't even compile) but 1.26.0 and newer are broken.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/389743527","html_url":"https://github.com/rust-lang/rust/issues/50814#issuecomment-389743527","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/50814","id":389743527,"user":{"login":"oli-obk","id":332036,"avatar_url":"https://avatars2.githubusercontent.com/u/332036?v=4","gravatar_id":"","url":"https://api.github.com/users/oli-obk","html_url":"https://github.com/oli-obk","followers_url":"https://api.github.com/users/oli-obk/followers","following_url":"https://api.github.com/users/oli-obk/following{/other_user}","gists_url":"https://api.github.com/users/oli-obk/gists{/gist_id}","starred_url":"https://api.github.com/users/oli-obk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oli-obk/subscriptions","organizations_url":"https://api.github.com/users/oli-obk/orgs","repos_url":"https://api.github.com/users/oli-obk/repos","events_url":"https://api.github.com/users/oli-obk/events{/privacy}","received_events_url":"https://api.github.com/users/oli-obk/received_events","type":"User","site_admin":false},"created_at":"2018-05-17T04:48:35Z","updated_at":"2018-05-17T04:48:35Z","author_association":"CONTRIBUTOR","body":"@eddyb the way promotion works we can't back out of promoting in case of const eval failure, can we?\r\n\r\nThe named const case can be fixed. But I'm not sure what do do on the promotion case"}}
{"actor":{"display_login":"oli-obk"}}