Uh oh!
There was an error while loading. Please reload this page.
Revert revert of constness in #86003 - #86295
Conversation
rust-highfive
commented
Jun 14, 2021
(rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
usbalbin
commented
Jun 14, 2021
Would it make sense to make a tracking issue for |
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Jun 14, 2021
@pnkfelix any objections to this? I am not sure why these were de-constified to begin with, so just making sure I am not missing anything here. :) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Jun 15, 2021
RalfJung
commented
Jun 15, 2021
This comment has been minimized.
This comment has been minimized.
usbalbin
commented
Jun 15, 2021
Sorry but I am not quite sure what to do with the errors (or rather lack of errors) |
usbalbin
commented
Jun 15, 2021
Are those things that are no longer checked? Should I remove those tests or somehow make sure the errors are detected again? |
RalfJung
commented
Jun 15, 2021
Something is strange, it looks like none of the errors showed up -- but the exit status is still 1...? |
Ah, I think I know what happens: the errors now have the wrong span; they are shown with spans in the standard library. To fix this, you should call the intrinsics directly in this test. You will probably need to add a |
RalfJung
commented
Jun 15, 2021
So, something like this. But at least on the playground this doesn't change the spans that are shown... |
usbalbin
commented
Jun 15, 2021
Thanks :) What should I do about ? |
RalfJung
commented
Jun 15, 2021
Ah... well we'll need to add a stability attribute. This should do it: |
usbalbin
commented
Jun 15, 2021
So if you write code which calls unstable code than you have to be explicit about the stabilitiy of your code? Again thanks :) Would you like me to squash the two latest commits (2faa57a and d1ae4e2) onto one? |
A chain of things happens here:
Seems fine to me to keep this separate. |
usbalbin
commented
Jun 15, 2021
Ah, okay |
RalfJung
commented
Jun 27, 2021
This comment has been minimized.
This comment has been minimized.
bors
commented
Jun 27, 2021
💔 Test failed - checks-actions |
RalfJung
commented
Jun 27, 2021
Looks like #86194 changed the output of some tests added here. |
d1ae4e2 to
c012553Compare
This comment has been minimized.
This comment has been minimized.
Uh oh!
There was an error while loading. Please reload this page.
usbalbin
commented
Jun 27, 2021
RalfJung
commented
Jun 27, 2021
@bors r+ |
bors
commented
Jun 27, 2021
📌 Commit 4aa1267 has been approved by |
bors
commented
Jun 27, 2021
bors
commented
Jun 27, 2021
☀️ Test successful - checks-actions |
Re-constify
mem::swap,mem::replace,ptr::writewhich were marked as notconstin #86003Once the checks pass, this should solve #86236