Uh oh!
There was an error while loading. Please reload this page.
Require stable/unstable annotations for the constness of all stable fns with a const modifier - #67136
Conversation
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
The function this is in is called is_min_const_fn, but the body comments make it sounds more like "is the fn required to conform to min_const_fn restrictions", which is not reflected in the function name. Maybe must_be_min_const_fn?
There was a problem hiding this comment.
well... it's both :D We call is_min_const_fn to check whether a function can be called from other min const fn. When checking a function we call is_min_const_fn to check if we are callable from other min const fn and thus must conform.
There was a problem hiding this comment.
So internal unannounced functions are more restricted than stable functions with #[rustc_const_unstable]? That seems odd.
There was a problem hiding this comment.
Ah I see @Centril asked for this. Well I think this is somewhat silly and would prefer to treat functions without staging attributes the same as unstable functions, but I won't fight over this.^^
RalfJung
commented
Dec 8, 2019
I'm strongly in favor of the general approach! However, I am unfamiliar with how stability checking is implemented, so I'll have to pass on the review. r? @Centril |
This comment has been minimized.
This comment has been minimized.
Centril
left a comment
There was a problem hiding this comment.
r=me with comments addressed
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
I have a feeling this function is doing way too much but let's not overhaul it here; making a note-to-self for now tho. I think the right structure would be to look for each attribute form independently and then do a post-processing step to merge information.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
0dacbac to
50bc0d2Compareoli-obk
commented
Dec 12, 2019
@bors r=Centril |
bors
commented
Dec 12, 2019
📌 Commit 50bc0d2f72babab9d9038274a0ba1e93ebcca85c has been approved by |
bors
commented
Dec 12, 2019
⌛ Testing commit 50bc0d2f72babab9d9038274a0ba1e93ebcca85c with merge 49c221ca4e14ea4210101b3be94ee74be1e6b444... |
rust-highfive
commented
Dec 12, 2019
The job Click to expand the log.I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
bors
commented
Dec 12, 2019
💔 Test failed - checks-azure |
50bc0d2 to
f12affeCompareoli-obk
commented
Dec 13, 2019
@bors r=Centril |
bors
commented
Dec 13, 2019
📌 Commit f12affe has been approved by |
oli-obk
commented
Dec 13, 2019
@bors r- |
oli-obk
commented
Dec 13, 2019
@bors r=Centril |
bors
commented
Dec 13, 2019
📌 Commit 0b47ba7 has been approved by |
Require stable/unstable annotations for the constness of all stable fns with a const modifier r? @RalfJung@Centril Every `#[stable]` const fn now needs either a `#[rustc_const_unstable]` attribute or a `#[rustc_const_stable]` attribute. You can't silently stabilize the constness of a function anymore.
bors
commented
Dec 14, 2019
Require stable/unstable annotations for the constness of all stable fns with a const modifier r? @RalfJung@Centril Every `#[stable]` const fn now needs either a `#[rustc_const_unstable]` attribute or a `#[rustc_const_stable]` attribute. You can't silently stabilize the constness of a function anymore.
bors
commented
Dec 14, 2019
☀️ Test successful - checks-azure |
r? @RalfJung@Centril
Every
#[stable]const fn now needs either a#[rustc_const_unstable]attribute or a#[rustc_const_stable]attribute. You can't silently stabilize the constness of a function anymore.