-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
rustc fails to produce lifetime and closure related compiler error. #29793
Copy link
Copy link
Closed
Labels
A-lifetimesArea: Lifetimes / regionsArea: Lifetimes / regionsI-unsoundIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessP-highHigh priorityHigh priorityT-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.
Metadata
Metadata
Assignees
Labels
A-lifetimesArea: Lifetimes / regionsArea: Lifetimes / regionsI-unsoundIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessP-highHigh priorityHigh priorityT-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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
We ran into this in conrod, where one of the widgets would produce different behaviour depending on whether it was compiled in debug or release.
The related conrod issue is here.
This comment describes the strange behaviour more precisely.
This comment demonstrates the fix used.
@huonw and @Aatch helped to point out that the difference in behaviour seemed to be due to the fact that rustc was failing to produce an error relating to the lifetimes of the
demo,colandrowvalues.@Aatch shared a simplified example of what error we should have received here.
Edit: I should mention, this bug was found in:
rustc 1.4.0 (8ab8581f6 2015-10-27)rustc 1.6.0-nightly (5b4986fa5 2015-11-08)rustc 1.5.0-beta.2 (b0f440163 2015-10-28)on both windows and osx.