{"action":"closed","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/48764","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/48764/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/48764/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/48764/events","html_url":"https://github.com/rust-lang/rust/issues/48764","id":302558741,"node_id":"MDU6SXNzdWUzMDI1NTg3NDE=","number":48764,"title":"Using same label name in seemingly non-shadowing context generates warning","user":{"login":"milesand","id":14255227,"node_id":"MDQ6VXNlcjE0MjU1MjI3","avatar_url":"https://avatars1.githubusercontent.com/u/14255227?v=4","gravatar_id":"","url":"https://api.github.com/users/milesand","html_url":"https://github.com/milesand","followers_url":"https://api.github.com/users/milesand/followers","following_url":"https://api.github.com/users/milesand/following{/other_user}","gists_url":"https://api.github.com/users/milesand/gists{/gist_id}","starred_url":"https://api.github.com/users/milesand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/milesand/subscriptions","organizations_url":"https://api.github.com/users/milesand/orgs","repos_url":"https://api.github.com/users/milesand/repos","events_url":"https://api.github.com/users/milesand/events{/privacy}","received_events_url":"https://api.github.com/users/milesand/received_events","type":"User","site_admin":false},"labels":[{"id":235791,"node_id":"MDU6TGFiZWwyMzU3OTE=","url":"https://api.github.com/repos/rust-lang/rust/labels/A-diagnostics","name":"A-diagnostics","color":"d7e102","default":false},{"id":235137,"node_id":"MDU6TGFiZWwyMzUxMzc=","url":"https://api.github.com/repos/rust-lang/rust/labels/A-lint","name":"A-lint","color":"d7e102","default":false},{"id":234902,"node_id":"MDU6TGFiZWwyMzQ5MDI=","url":"https://api.github.com/repos/rust-lang/rust/labels/C-enhancement","name":"C-enhancement","color":"f5f1fd","default":false},{"id":211668100,"node_id":"MDU6TGFiZWwyMTE2NjgxMDA=","url":"https://api.github.com/repos/rust-lang/rust/labels/T-compiler","name":"T-compiler","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-06T04:19:00Z","updated_at":"2018-08-07T14:43:33Z","closed_at":"2018-08-07T14:43:33Z","author_association":"CONTRIBUTOR","body":"The following code:\r\n```\r\nfn main() {\r\n    'a: loop {break;}\r\n    'a: loop {break;}\r\n}\r\n```\r\n\r\ngenerates the following warning:\r\n```\r\nwarning: label name `'a` shadows a label name that is already in scope\r\n --> file_name.rs:3:5\r\n  |\r\n2 |     'a: loop {break;}\r\n  |     -- first declared here\r\n3 |     'a: loop {break;}\r\n  |     ^^ lifetime 'a already in scope\r\n```\r\n\r\nAs it is impossible to meaningfully use (as in `break 'a`) the `'a` of the first loop from the second loop, the warning seems rather redundant."}}
{"actor":{"display_login":"milesand"}}