-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
failed to evaluate constant #67612
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
P-high
High priority
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
Mark-Simulacrum
added
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
labels
Dec 25, 2019
jonas-schievink
added
the
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
label
Dec 25, 2019
Minimal repro: extern "C" {
static X: i32;
}
static mut FOO: *const &'static i32 = [unsafe { &X }].as_ptr(); the MIR is
The I guess we used to promote this array but due to the deref (since statics are now |
triage: P-high. (Has PR, yay.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-const-eval
Area: Constant evaluation, covers all const contexts (static, const fn, ...)
P-high
High priority
regression-from-stable-to-beta
Performance or correctness regression from stable to beta.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
root: window - 2 (0 gh, 2 crates.io) detected crates which regressed due to this
cc @oli-obk @wesleywiser
The text was updated successfully, but these errors were encountered: