Skip to content

ICE: translating unsupported cast: alloc::rc::Rc<[i32]> in beta #26352

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
bluss opened this issue Jun 16, 2015 · 5 comments
Closed

ICE: translating unsupported cast: alloc::rc::Rc<[i32]> in beta #26352

bluss opened this issue Jun 16, 2015 · 5 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@bluss
Copy link
Member

bluss commented Jun 16, 2015

Current beta release ICE's on trying to create a Rc<[i32]>.

Compile error in 1.0, works fine in nightly, so only beta channel.

use std::rc::Rc;

fn main() {
    let r = Rc::new([1, 2]) as Rc<[i32]>;
}

error: internal compiler error: translating unsupported cast: alloc::rc::Rc<[i32]> (cast_other) -> alloc::rc::Rc<[i32]> (cast_other)
@bluss bluss added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Jun 16, 2015
@bluss
Copy link
Member Author

bluss commented Jun 16, 2015

cc @nrc

@nrc
Copy link
Member

nrc commented Jun 16, 2015

Given that this works on nightly, the question is whether we want to push the fix to beta (and I guess identifying the fix). I'd be happy not to - doesn't seem like enough pain to warrant jumping trains. But I could be swayed.

@bluss
Copy link
Member Author

bluss commented Jun 17, 2015

It's unfortunate that the feature is only halfway introduced in Rust 1.1 in that case. I understand this is not clearly tracked for the release at all.

@eddyb
Copy link
Member

eddyb commented Jun 17, 2015

@nrc if the fix is backported, then #26038 should probably be included with it, as it allows Rc<RefCell<Unsized>> and friends.

@arielb1
Copy link
Contributor

arielb1 commented Jun 25, 2015

Closed as 1.1 was released.

@arielb1 arielb1 closed this as completed Jun 25, 2015
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

4 participants