-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
ICE in traits using lifetime elision #56729
Labels
A-lifetimes
Area: Lifetimes / regions
A-NLL
Area: Non-lexical lifetimes (NLL)
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
QuietMisdreavus
added
A-lifetimes
Area: Lifetimes / regions
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
A-NLL
Area: Non-lexical lifetimes (NLL)
labels
Dec 11, 2018
According to the playground link, it looks like this has been fixed in beta and nightly. |
I should add that this code triggers the correct behavior on stable: pub struct TriggerICE<'a>(&'a str);
impl<'a> From<String> for TriggerICE<'a> {
fn from(s: String) -> Self {
TriggerICE(&s)
}
} -->
Also, as Q noted above, it has been fixed altogether on beta and nightly channels indeed. |
pnkfelix
added
the
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
label
Dec 12, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-lifetimes
Area: Lifetimes / regions
A-NLL
Area: Non-lexical lifetimes (NLL)
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Hello,
The compiler panics when using this code:
You can check it out on the playground here: https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&gist=75ef6a4515e975e3ffafcd17373aa8b4
Thanks,
Have a good day
Meta
rustc --version --verbose
:Backtrace:
The text was updated successfully, but these errors were encountered: