-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Description
The build of smoltcp on nightly started failing recently with an ICE: https://travis-ci.org/m-labs/smoltcp/jobs/549023810#L789-L804.
I suspect this might be caused by E0713, but it shouldn't be an ICE in any case.
stepancheg
Metadata
Metadata
Assignees
Labels
A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)Area: Constant evaluation, covers all const contexts (static, const fn, ...)C-bugCategory: This is a bug.Category: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
whitequark commentedon Jun 22, 2019
whitequark commentedon Jun 22, 2019
eddyb commentedon Jun 23, 2019
cc @oli-obk @RalfJung (also, such an ICE should say "const checking" or similar - we should maybe even rename the pass itself in the compiler - the "qualify" part isn't as primary for MIR as it is for the AST side).
whitequark commentedon Jun 23, 2019
whitequark commentedon Jun 23, 2019
MCVE:
I'm bisecting it now.
whitequark commentedon Jun 23, 2019
Bisected to 9cb052a / #58351. @RalfJung @oli-obk
oli-obk commentedon Jun 23, 2019
Oh, I forgot about the ZST trickery, sorry, will have a fix tomorrow
whitequark commentedon Jun 23, 2019
What's the ZST here?
[]
in&mut []
?RalfJung commentedon Jun 23, 2019
Yes. That's a
&mut [0; i32]
that gets unsized to&mut []
.Auto merge of #62094 - oli-obk:zst_intern, r=eddyb