Uh oh!
There was an error while loading. Please reload this page.
Stability oddity with const intrinsics - #80707
Conversation
rust-highfive
commented
Jan 4, 2021
(rust-highfive has picked a reviewer for you, use r? to override) |
0626088 to
7da07bfComparepetrochenkov
commented
Jan 5, 2021
r? @RalfJung |
Uh oh!
There was an error while loading. Please reload this page.
rust-log-analyzer
commented
Jan 5, 2021
The job Click to see the possible cause of the failure (guessed by this bot) |
14e2c38 to
074a69bCompareUh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Jan 6, 2021
Oh, that's interesting. For normal intrinsics this makes sense (when declared inside a |
oli-obk
commented
Jan 11, 2021
So... should I try to fix it in this PR? |
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Jan 13, 2021
I think it should be fixed... and that makes the tests added in this PR a bit odd since they test behavior that I consider buggy. But I'd also be okay with opening an issue and having a comment in the test saying that this is testing buggy behavior and should be adjusted once there's a fix. |
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.
Looks like we have another case of this a few lines down, around line 1940, according to CI.
There was a problem hiding this comment.
yea, I had to rebase first ^^
RalfJung
commented
Jan 17, 2021
r=me with CI fixed and the commits squashed a bit. |
84e414c to
2a412aeCompare
This comment has been minimized.
This comment has been minimized.
2a412ae to
5bac1c9Compareoli-obk
commented
Jan 18, 2021
@bors r=RalfJung |
bors
commented
Jan 18, 2021
📌 Commit 5bac1c9 has been approved by |
…sics, r=RalfJung Stability oddity with const intrinsics cc `@RalfJung` In rust-lang#80699 (comment) `@usbalbin` realized we accepted some intrinsics as `const` without a `#[rustc_const_(un)stable]` attribute. I did some digging, and that example works because intrinsics inherit their stability from their parents... including `#[rustc_const_(un)stable]` attributes. While we may want to fix that (not sure, wasn't there just a MCPed PR that caused this on purpose?), we definitely want tests for it, thus this PR adding tests and some fun tracing statements.
bors
commented
Jan 18, 2021
bors
commented
Jan 19, 2021
☀️ Test successful - checks-actions |
cc @RalfJung
In #80699 (comment)@usbalbin realized we accepted some intrinsics as
constwithout a#[rustc_const_(un)stable]attribute. I did some digging, and that example works because intrinsics inherit their stability from their parents... including#[rustc_const_(un)stable]attributes. While we may want to fix that (not sure, wasn't there just a MCPed PR that caused this on purpose?), we definitely want tests for it, thus this PR adding tests and some fun tracing statements.