-
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
Rustc beta/nightly appears to ignore unsafe
blocks inside closure in some cases
#85435
Labels
C-bug
Category: This is a bug.
P-critical
Critical priority
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
Milestone
Comments
jonas-schievink
added
the
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
label
May 18, 2021
rustbot
added
the
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
label
May 18, 2021
Assigning a priority as discussed in WG-prioritization discussion on Zulip and removing @rustbot modify labels -I-prioritize +P-high |
rustbot
added
P-high
High priority
and removed
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
labels
May 18, 2021
LeSeulArtichaut
added
the
E-needs-bisection
Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
label
May 18, 2021
discussed in compiler triage. Heightening priority and self-assigning. |
pnkfelix
added a commit
to pnkfelix/rust
that referenced
this issue
May 21, 2021
(and thus exposed underlying issue rust-lang#85561).
pnkfelix
removed
the
E-needs-bisection
Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc
label
May 21, 2021
some discussion in zulip. I have confirmed this was injected by PR #83521. I have filed issue #85561 for the root cause, and put up PR #85564 as a targeted fix suitable for a beta-backport. |
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
May 26, 2021
…disjoint-fields-gate, r=nikomatsakis readd capture disjoint fields gate This readds a feature gate guard that was added in PR rust-lang#83521. (Basically, there were unintended consequences to the code exposed by removing the feature gate guard.) The root bug still remains to be resolved, as discussed in issue rust-lang#85561. This is just a band-aid suitable for a beta backport. Cc issue rust-lang#85435 Note that the latter issue is unfixed until we backport this (or another fix) to 1.53 beta
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
May 27, 2021
…disjoint-fields-gate, r=nikomatsakis readd capture disjoint fields gate This readds a feature gate guard that was added in PR rust-lang#83521. (Basically, there were unintended consequences to the code exposed by removing the feature gate guard.) The root bug still remains to be resolved, as discussed in issue rust-lang#85561. This is just a band-aid suitable for a beta backport. Cc issue rust-lang#85435 Note that the latter issue is unfixed until we backport this (or another fix) to 1.53 beta
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
May 27, 2021
…disjoint-fields-gate, r=nikomatsakis readd capture disjoint fields gate This readds a feature gate guard that was added in PR rust-lang#83521. (Basically, there were unintended consequences to the code exposed by removing the feature gate guard.) The root bug still remains to be resolved, as discussed in issue rust-lang#85561. This is just a band-aid suitable for a beta backport. Cc issue rust-lang#85435 Note that the latter issue is unfixed until we backport this (or another fix) to 1.53 beta
pnkfelix
added a commit
to pnkfelix/rust
that referenced
this issue
Jun 1, 2021
(and thus exposed underlying issue rust-lang#85561).
Dylan-DPC-zz
pushed a commit
to Dylan-DPC-zz/rust
that referenced
this issue
Jun 3, 2021
…nikomatsakis Fix issue 85435 by restricting Fake Read precision This PR fixes the root bug of issue rust-lang#85435 by restricting Fake Read precision in closures and removing the feature gate introduced in PR rust-lang#85564. More info [here](rust-lang#85561 (comment)) and [here](rust-lang#85561 (comment)). Closes rust-lang#85561 r? `@nikomatsakis`
JohnTitor
added a commit
to JohnTitor/rust
that referenced
this issue
Jun 3, 2021
…nikomatsakis Fix issue 85435 by restricting Fake Read precision This PR fixes the root bug of issue rust-lang#85435 by restricting Fake Read precision in closures and removing the feature gate introduced in PR rust-lang#85564. More info [here](rust-lang#85561 (comment)) and [here](rust-lang#85561 (comment)). Closes rust-lang#85561 r? ``@nikomatsakis``
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 8, 2021
…acrum [beta] backport of readd capture disjoint fields gate Beta backport of "readd capture disjoint fields gate", PR rust-lang#85564 Fix issue rust-lang#85435
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
P-critical
Critical priority
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
The code below compiles with stable rustc (1.52.1), but fails to compile on beta (1.53) and nightly (1.54):
On beta and nightly, there is a compilation error due to a missing
unsafe
block, even though there clearly is one in the code:Meta
Compilation error:
rustup run beta rustc --version --verbose
:Compilation error:
rustup run nightly rustc --version --verbose
:Successful compilation:
rustup run stable rustc --version --verbose
:The text was updated successfully, but these errors were encountered: