Skip to content

ICE: drop_ty_immediate: non-box ty #8051

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

Closed
mstewartgallus opened this issue Jul 26, 2013 · 7 comments
Closed

ICE: drop_ty_immediate: non-box ty #8051

mstewartgallus opened this issue Jul 26, 2013 · 7 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@mstewartgallus
Copy link
Contributor

The following code (as of commit 0012b50) gives an internal compiler error drop_ty_immediate: non-box ty.

use std::rt::rtio::RtioTimer;
use std::rt::io::Timer;

fn main() {
    let maybe_timer = Timer::new();
    maybe_timer.expect("Expected a timer").sleep(1);
}
@metajack
Copy link
Contributor

metajack commented Aug 9, 2013

I hit this this weekend on this exact case.

But i also hit it a few other times when I wasn't using Timer.

nominating production ready. this really sucks because the error is bad an you have no idea what you did wrong.

@chris-morgan
Copy link
Member

I presume this is the same problem as #7672.

@flaper87
Copy link
Contributor

flaper87 commented Sep 9, 2013

I hit this bug as well when using Timer.

@flaper87
Copy link
Contributor

Code bellow works. I wonder wether this worth's ICEing ?

After some more digging, .sleep expects a mutable self which may be the cause of this issue. Still, the error message doesn't say much (at least to me).

use std::rt::rtio::RtioTimer;
use std::rt::io::Timer;

fn main() {
    let maybe_timer = Timer::new();
    let mut t = maybe_timer.expect("Expected a timer");
    t.sleep(1000);
}

@catamorphism
Copy link
Contributor

Accepted for production-ready

@thestinger
Copy link
Contributor

Closing as duplicate of #7672. I can confirm that my fix for that bug fixes this.

@thestinger
Copy link
Contributor

Also a duplicate of #9446. The fix in the queue is #9643.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

6 participants