{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rust/issues/43017","repository_url":"https://api.github.com/repos/rust-lang/rust","labels_url":"https://api.github.com/repos/rust-lang/rust/issues/43017/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rust/issues/43017/comments","events_url":"https://api.github.com/repos/rust-lang/rust/issues/43017/events","html_url":"https://github.com/rust-lang/rust/pull/43017","id":240032146,"number":43017,"title":"Individualize feature gates for const fn invocation","user":{"login":"durka","id":47007,"avatar_url":"https://avatars3.githubusercontent.com/u/47007?v=4","gravatar_id":"","url":"https://api.github.com/users/durka","html_url":"https://github.com/durka","followers_url":"https://api.github.com/users/durka/followers","following_url":"https://api.github.com/users/durka/following{/other_user}","gists_url":"https://api.github.com/users/durka/gists{/gist_id}","starred_url":"https://api.github.com/users/durka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durka/subscriptions","organizations_url":"https://api.github.com/users/durka/orgs","repos_url":"https://api.github.com/users/durka/repos","events_url":"https://api.github.com/users/durka/events{/privacy}","received_events_url":"https://api.github.com/users/durka/received_events","type":"User","site_admin":false},"labels":[{"id":219670472,"url":"https://api.github.com/repos/rust-lang/rust/labels/final-comment-period","name":"final-comment-period","color":"207de5","default":false},{"id":223796632,"url":"https://api.github.com/repos/rust-lang/rust/labels/relnotes","name":"relnotes","color":"fad8c7","default":false},{"id":583426710,"url":"https://api.github.com/repos/rust-lang/rust/labels/S-waiting-on-review","name":"S-waiting-on-review","color":"d3dddd","default":false},{"id":211668019,"url":"https://api.github.com/repos/rust-lang/rust/labels/T-lang","name":"T-lang","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":{"login":"eddyb","id":77424,"avatar_url":"https://avatars2.githubusercontent.com/u/77424?v=4","gravatar_id":"","url":"https://api.github.com/users/eddyb","html_url":"https://github.com/eddyb","followers_url":"https://api.github.com/users/eddyb/followers","following_url":"https://api.github.com/users/eddyb/following{/other_user}","gists_url":"https://api.github.com/users/eddyb/gists{/gist_id}","starred_url":"https://api.github.com/users/eddyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddyb/subscriptions","organizations_url":"https://api.github.com/users/eddyb/orgs","repos_url":"https://api.github.com/users/eddyb/repos","events_url":"https://api.github.com/users/eddyb/events{/privacy}","received_events_url":"https://api.github.com/users/eddyb/received_events","type":"User","site_admin":false},"assignees":[{"login":"eddyb","id":77424,"avatar_url":"https://avatars2.githubusercontent.com/u/77424?v=4","gravatar_id":"","url":"https://api.github.com/users/eddyb","html_url":"https://github.com/eddyb","followers_url":"https://api.github.com/users/eddyb/followers","following_url":"https://api.github.com/users/eddyb/following{/other_user}","gists_url":"https://api.github.com/users/eddyb/gists{/gist_id}","starred_url":"https://api.github.com/users/eddyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddyb/subscriptions","organizations_url":"https://api.github.com/users/eddyb/orgs","repos_url":"https://api.github.com/users/eddyb/repos","events_url":"https://api.github.com/users/eddyb/events{/privacy}","received_events_url":"https://api.github.com/users/eddyb/received_events","type":"User","site_admin":false}],"milestone":null,"comments":108,"created_at":"2017-07-02T20:20:03Z","updated_at":"2017-09-14T18:43:24Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/rust-lang/rust/pulls/43017","html_url":"https://github.com/rust-lang/rust/pull/43017","diff_url":"https://github.com/rust-lang/rust/pull/43017.diff","patch_url":"https://github.com/rust-lang/rust/pull/43017.patch"},"body":"This PR changes the meaning of `#![feature(const_fn)]` so it is only required to declare a const fn but not to call one. Based on discussion at #24111. I was hoping we could have an FCP here in order to move that conversation forward.\r\n\r\nThis sets the stage for future stabilization of the constness of several functions in the standard library (listed below), so could someone please tag the lang team for review.\r\n\r\n- `std::cell`\r\n    - `Cell::new`\r\n    - `RefCell::new`\r\n    - `UnsafeCell::new`\r\n- `std::mem`\r\n    - `size_of`\r\n    - `align_of`\r\n- `std::ptr`\r\n    - `null`\r\n    - `null_mut`\r\n- `std::sync`\r\n    - `atomic`\r\n        - `Atomic{Bool,Ptr,Isize,Usize}::new`\r\n    - `once`\r\n        - `Once::new`\r\n- primitives\r\n    - `{integer}::min_value`\r\n    - `{integer}::max_value`\r\n\r\nSome other functions are const but they are also unstable or hidden, e.g. `Unique::new` so they don't have to be considered at this time.\r\n\r\nAfter this stabilization, the following `*_INIT` constants in the standard library can be deprecated. I wasn't sure whether to include those deprecations in the current PR.\r\n\r\n- `std::sync`\r\n    - `atomic`\r\n        - `ATOMIC_{BOOL,ISIZE,USIZE}_INIT`\r\n    - `once`\r\n        - `ONCE_INIT`"},"comment":{"url":"https://api.github.com/repos/rust-lang/rust/issues/comments/329573552","html_url":"https://github.com/rust-lang/rust/pull/43017#issuecomment-329573552","issue_url":"https://api.github.com/repos/rust-lang/rust/issues/43017","id":329573552,"user":{"login":"durka","id":47007,"avatar_url":"https://avatars3.githubusercontent.com/u/47007?v=4","gravatar_id":"","url":"https://api.github.com/users/durka","html_url":"https://github.com/durka","followers_url":"https://api.github.com/users/durka/followers","following_url":"https://api.github.com/users/durka/following{/other_user}","gists_url":"https://api.github.com/users/durka/gists{/gist_id}","starred_url":"https://api.github.com/users/durka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durka/subscriptions","organizations_url":"https://api.github.com/users/durka/orgs","repos_url":"https://api.github.com/users/durka/repos","events_url":"https://api.github.com/users/durka/events{/privacy}","received_events_url":"https://api.github.com/users/durka/received_events","type":"User","site_admin":false},"created_at":"2017-09-14T18:43:24Z","updated_at":"2017-09-14T18:43:24Z","author_association":"CONTRIBUTOR","body":"Updated."}}
{"actor":{"display_login":"durka"}}