{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/33458","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/33458/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/33458/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/33458/events","html_url":"https://github.com/rust-lang/rust/issues/33458","id":153440858,"number":33458,"title":"Name resolution has changed between 1.7.0 and 1.8.0","user":{"login":"matklad","id":1711539,"avatar_url":"https://avatars.githubusercontent.com/u/1711539?v=3","gravatar_id":"","url":"https://api.github.com/users/matklad","html_url":"https://github.com/matklad","followers_url":"https://api.github.com/users/matklad/followers","following_url":"https://api.github.com/users/matklad/following{/other_user}","gists_url":"https://api.github.com/users/matklad/gists{/gist_id}","starred_url":"https://api.github.com/users/matklad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matklad/subscriptions","organizations_url":"https://api.github.com/users/matklad/orgs","repos_url":"https://api.github.com/users/matklad/repos","events_url":"https://api.github.com/users/matklad/events{/privacy}","received_events_url":"https://api.github.com/users/matklad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rust-lang/rust/labels/I-nominated","name":"I-nominated","color":"e10c02"},{"url":"https://api.github.com/repos/rust-lang/rust/labels/T-lang","name":"T-lang","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-06T12:29:12Z","updated_at":"2016-05-06T22:31:36Z","closed_at":null,"body":"The following program:\r\n\r\n```Rust\r\nfn main() {\r\n    let x: i32 = 92;\r\n    {\r\n        const x: i32  = 62;\r\n        println!(\"{}\", x);\r\n    }\r\n}\r\n```\r\n\r\nprints `92` with rustc 1.7.0 and `62` with rustc 1.8.0. Is this intentional? I have not found a mention in the release notes. Also [the reference](https://doc.rust-lang.org/reference.html#item-declarations) could be a bit more clear on the scoping rules :)"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/217579465","html_url":"https://github.com/rust-lang/rust/issues/33458#issuecomment-217579465","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/33458","id":217579465,"user":{"login":"jseyfried","id":8652869,"avatar_url":"https://avatars.githubusercontent.com/u/8652869?v=3","gravatar_id":"","url":"https://api.github.com/users/jseyfried","html_url":"https://github.com/jseyfried","followers_url":"https://api.github.com/users/jseyfried/followers","following_url":"https://api.github.com/users/jseyfried/following{/other_user}","gists_url":"https://api.github.com/users/jseyfried/gists{/gist_id}","starred_url":"https://api.github.com/users/jseyfried/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jseyfried/subscriptions","organizations_url":"https://api.github.com/users/jseyfried/orgs","repos_url":"https://api.github.com/users/jseyfried/repos","events_url":"https://api.github.com/users/jseyfried/events{/privacy}","received_events_url":"https://api.github.com/users/jseyfried/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T22:31:36Z","updated_at":"2016-05-06T22:31:36Z","body":"This was intentional, see #31105."}}