{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/23973","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/23973/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/23973/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/23973/events","html_url":"https://github.com/rust-lang/rust/issues/23973","id":65947637,"number":23973,"title":"Don’t suggest 'help: add #![feature(…)]' when it’s forbidden","user":{"login":"SimonSapin","id":291359,"avatar_url":"https://avatars.githubusercontent.com/u/291359?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonSapin","html_url":"https://github.com/SimonSapin","followers_url":"https://api.github.com/users/SimonSapin/followers","following_url":"https://api.github.com/users/SimonSapin/following{/other_user}","gists_url":"https://api.github.com/users/SimonSapin/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonSapin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonSapin/subscriptions","organizations_url":"https://api.github.com/users/SimonSapin/orgs","repos_url":"https://api.github.com/users/SimonSapin/repos","events_url":"https://api.github.com/users/SimonSapin/events{/privacy}","received_events_url":"https://api.github.com/users/SimonSapin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/rust-lang/rust/milestones/22","html_url":"https://github.com/rust-lang/rust/milestones/1.0%20beta","labels_url":"https://api.github.com/repos/rust-lang/rust/milestones/22/labels","id":924511,"number":22,"title":"1.0 beta","description":"","creator":{"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},"open_issues":1,"closed_issues":80,"state":"open","created_at":"2015-01-06T21:40:55Z","updated_at":"2015-04-02T15:17:23Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-04-02T15:12:05Z","updated_at":"2015-04-02T15:25:32Z","closed_at":null,"body":"Steps to reproduce:\r\n\r\n```sh\r\nmkdir foo\r\ncd foo\r\nmultirust override beta  # Or obtain Rust beta in some other way\r\necho 'extern crate core; fn main(){}' > a.rs\r\necho '#![feature(core)] extern crate core; fn main(){}' > b.rs\r\n```\r\n\r\nThe output of `rustc a.rs` is:\r\n```rust\r\na.rs:1:1: 1:19 error: use of unstable library feature 'core'\r\na.rs:1 extern crate core; fn main(){}\r\n       ^~~~~~~~~~~~~~~~~~\r\na.rs:1:19: 1:19 help: add #![feature(core)] to the crate attributes to enable\r\n```\r\n\r\n`b.rs` does as suggested by the `help` message, but that fails too (as expected):\r\n```rust\r\nb.rs:1:1: 1:18 error: unstable feature\r\nb.rs:1 #![feature(core)] extern crate core; fn main(){}\r\n       ^~~~~~~~~~~~~~~~~\r\nnote: this feature may not be used in the beta release channel\r\nerror: aborting due to previous error\r\n```\r\n\r\nProposed fix: in the beta and stable channels (i.e. whenever `#![feature(…)]` is forbidden), the `help` message that suggests adding `#![feature(…)]` should not be shown.\r\n\r\n(Clean up the test case with `multirust remove-override; cd ..; rm -r foo`.)\r\n\r\nCC @brson"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/88946181","html_url":"https://github.com/rust-lang/rust/issues/23973#issuecomment-88946181","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/23973","id":88946181,"user":{"login":"steveklabnik","id":27786,"avatar_url":"https://avatars.githubusercontent.com/u/27786?v=3","gravatar_id":"","url":"https://api.github.com/users/steveklabnik","html_url":"https://github.com/steveklabnik","followers_url":"https://api.github.com/users/steveklabnik/followers","following_url":"https://api.github.com/users/steveklabnik/following{/other_user}","gists_url":"https://api.github.com/users/steveklabnik/gists{/gist_id}","starred_url":"https://api.github.com/users/steveklabnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveklabnik/subscriptions","organizations_url":"https://api.github.com/users/steveklabnik/orgs","repos_url":"https://api.github.com/users/steveklabnik/repos","events_url":"https://api.github.com/users/steveklabnik/events{/privacy}","received_events_url":"https://api.github.com/users/steveklabnik/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T15:25:32Z","updated_at":"2015-04-02T15:25:32Z","body":"gonna leave @pnkfelix to it"}}