{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/47388","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/47388/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/47388/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/47388/events","html_url":"https://github.com/rust-lang/rust/issues/47388","id":288181215,"number":47388,"title":"[NLL] E0389 error message uses the term `immutable item` inappropriately","user":{"login":"nikomatsakis","id":155238,"avatar_url":"https://avatars0.githubusercontent.com/u/155238?v=4","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},"labels":[{"id":235791,"url":"https://api.github.com/repos/rust-lang/rust/labels/A-diagnostics","name":"A-diagnostics","color":"d7e102","default":false},{"id":67766349,"url":"https://api.github.com/repos/rust-lang/rust/labels/E-mentor","name":"E-mentor","color":"02E10C","default":false},{"id":211668100,"url":"https://api.github.com/repos/rust-lang/rust/labels/T-compiler","name":"T-compiler","color":"bfd4f2","default":false},{"id":693557751,"url":"https://api.github.com/repos/rust-lang/rust/labels/WG-compiler-nll","name":"WG-compiler-nll","color":"c2e0c6","default":false}],"state":"open","locked":false,"assignee":{"login":"gaurikholkar","id":9420877,"avatar_url":"https://avatars1.githubusercontent.com/u/9420877?v=4","gravatar_id":"","url":"https://api.github.com/users/gaurikholkar","html_url":"https://github.com/gaurikholkar","followers_url":"https://api.github.com/users/gaurikholkar/followers","following_url":"https://api.github.com/users/gaurikholkar/following{/other_user}","gists_url":"https://api.github.com/users/gaurikholkar/gists{/gist_id}","starred_url":"https://api.github.com/users/gaurikholkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaurikholkar/subscriptions","organizations_url":"https://api.github.com/users/gaurikholkar/orgs","repos_url":"https://api.github.com/users/gaurikholkar/repos","events_url":"https://api.github.com/users/gaurikholkar/events{/privacy}","received_events_url":"https://api.github.com/users/gaurikholkar/received_events","type":"User","site_admin":false},"assignees":[{"login":"gaurikholkar","id":9420877,"avatar_url":"https://avatars1.githubusercontent.com/u/9420877?v=4","gravatar_id":"","url":"https://api.github.com/users/gaurikholkar","html_url":"https://github.com/gaurikholkar","followers_url":"https://api.github.com/users/gaurikholkar/followers","following_url":"https://api.github.com/users/gaurikholkar/following{/other_user}","gists_url":"https://api.github.com/users/gaurikholkar/gists{/gist_id}","starred_url":"https://api.github.com/users/gaurikholkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaurikholkar/subscriptions","organizations_url":"https://api.github.com/users/gaurikholkar/orgs","repos_url":"https://api.github.com/users/gaurikholkar/repos","events_url":"https://api.github.com/users/gaurikholkar/events{/privacy}","received_events_url":"https://api.github.com/users/gaurikholkar/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/rust-lang/rust/milestones/46","html_url":"https://github.com/rust-lang/rust/milestone/46","labels_url":"https://api.github.com/repos/rust-lang/rust/milestones/46/labels","id":3049042,"number":46,"title":"NLL: diagnostic parity","description":"Error messages when using the new, MIR-based borrow checker should be as good or better than the old ones.","creator":{"login":"nikomatsakis","id":155238,"avatar_url":"https://avatars0.githubusercontent.com/u/155238?v=4","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},"open_issues":5,"closed_issues":3,"state":"open","created_at":"2018-01-19T16:48:35Z","updated_at":"2018-03-04T21:13:57Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2018-01-12T16:51:55Z","updated_at":"2018-03-09T14:56:34Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The test compile-fail/E0389.rs gives the error message \"cannot assign to immutable item `fancy_ref.num`\". This is not particularly good because:\r\n\r\n(a) \"item\" is probably not a very clear term for end-users but also\r\n(b) even if it were, I would expect it to refer to \"global things\" like functions or statics, not fields of a local variable.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/371835561","html_url":"https://github.com/rust-lang/rust/issues/47388#issuecomment-371835561","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/47388","id":371835561,"user":{"login":"gaurikholkar","id":9420877,"avatar_url":"https://avatars1.githubusercontent.com/u/9420877?v=4","gravatar_id":"","url":"https://api.github.com/users/gaurikholkar","html_url":"https://github.com/gaurikholkar","followers_url":"https://api.github.com/users/gaurikholkar/followers","following_url":"https://api.github.com/users/gaurikholkar/following{/other_user}","gists_url":"https://api.github.com/users/gaurikholkar/gists{/gist_id}","starred_url":"https://api.github.com/users/gaurikholkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaurikholkar/subscriptions","organizations_url":"https://api.github.com/users/gaurikholkar/orgs","repos_url":"https://api.github.com/users/gaurikholkar/repos","events_url":"https://api.github.com/users/gaurikholkar/events{/privacy}","received_events_url":"https://api.github.com/users/gaurikholkar/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T14:56:34Z","updated_at":"2018-03-09T14:56:34Z","author_association":"CONTRIBUTOR","body":"```\r\nerror[E0594]: cannot assign through `&`-reference fancy_ref\r\n  --> src/test/compile-fail/E0389.rs:18:5\r\n   |\r\n17 |     let fancy_ref = &(&mut fancy);\r\n   |                     ------------- help: consider changing this to be a mutable reference: `&mut`\r\n18 |     fancy_ref.num = 6; //~ ERROR E0389\r\n   |     ^^^^^^^^^^^^^^^^^ cannot assign to field of `&`-reference\r\n\r\n```\r\n@nikomatsakis the suggestion is inline now"}}
{"actor":{"display_login":"gaurikholkar"}}