-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
regression: constants cannot refer to interior mutable data #123281
Comments
Yeah I think this is a duplicate of #121250, which was filed by the author of the affected crate. Cc @sarah-ek |
Sounds good. I'll leave this open in case we decide to include some future-compat release note for it but untag for now. |
I'll preemptively label this breaking change (see prev. comment) for release notes and nominate for T-lang to discuss if these changes should be mentioned in the release notes. @rustbot label +relnotes +I-lang-nominated |
We discussed this in the lang team meeting and agreed that we should mention it in the release notes, since it is a compatibility change that could affect someone. @rustbot label -I-lang-nominated |
I confirm, |
Which versions of stabby are affected? Any idea why did this not show up in crater? |
All of them, but I'm currently trying to find other workarounds, since |
Ah... it's bad practice to automatically use nightly features (Cc #120804), and this is one example why. |
I don't know any work-arounds beyond what was discussed in #121250 (adding indirections to avoid reborrowing unknown data). This used to work by accident (we never wanted code like yours to compile), and we fixed that accident. We used crater to check that the impact is minimal, and it was -- only a single crate failed, and that one did have a work-around. I'm sorry this slipped through our crater checks. I am not sure there's much we could have done here though. |
Yeah, I was a bit overly optimistic about this fix being stabilized in a similar timeframe to |
We don't really have ETAs for nightly features. I currently don't have the capacity to try and push for this feature. No blocking concerns are listed but also this wasn't really widely discussed, so it's possible that there should be an RFC first. |
Doesn't |
I don't know how the beta crater runs are done, but stabby doesn't show up in https://crater-reports.s3.amazonaws.com/beta-1.78-1/index.html. |
I did find this though: https://crater-reports.s3.amazonaws.com/beta-1.78-1/1.77.0/reg/stabby-abi-2.0.1/log.txt. stabby-abi failed to build even with 1.77 so when it also fails with the beta that's not a regression. The beta build seemes to have failed for yet another reason: https://crater-reports.s3.amazonaws.com/beta-1.78-1/beta-2024-03-24/reg/stabby-abi-2.0.1/log.txt. (Confusingly the 2nd build log starts with "testing stabby-abi-2.0.1 against 1.77.0 for beta-1.78-1" even though it is supposed to be building against beta-2024-03-24... I guess we should ignore everything above "testing stabby-abi-2.0.1 against beta-2024-03-24 for beta-1.78-1"? @Mark-Simulacrum is it expected that the beta-XXX build log starts with a full copy of the stable build log?) |
I was just gonna report that So |
Yeah no idea why crater picked up stabby-abi 2.0.1. I can't even find stabby itself. |
Could be because The issue around version does make me sad, because |
Looks like it. |
Well, I'm gonna work around it with a static map of vtables. It's not ideal because it'll make any construction of a new trait object search/insert the corresponding vtable in a set, but it'll do until |
* Fixed stabby ( rust-lang/rust#123281 ) * temp: use fixed stabby from branch --------- Co-authored-by: OlivierHecart <[email protected]>
* Fixed stabby ( rust-lang/rust#123281 ) * temp: use fixed stabby from branch * fixed stabby package
Closing since regression is mentioned in the release notes |
The text was updated successfully, but these errors were encountered: