Skip to content

ICE when promoting @[] to slice #2797

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
msullivan opened this issue Jul 3, 2012 · 1 comment
Closed

ICE when promoting @[] to slice #2797

msullivan opened this issue Jul 3, 2012 · 1 comment
Assignees
Labels
A-lifetimes Area: Lifetimes / regions I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone

Comments

@msullivan
Copy link
Contributor

The following code fails with an ICE

fn foo(_x: &[int]) {}
fn main() {
    let x = @[1,2,3];
    foo(x);
}

The output:

nubs/box-borrow-ice.rs:4:8: 4:9 error: internal compiler error: aliased ptr with a non-none lp
nubs/box-borrow-ice.rs:4     foo(x);
@nikomatsakis
Copy link
Contributor

should be fixed now.

celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
Updated via `cargo update`. No further (manual) updates were suggested
by `cargo outdated --workspace`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lifetimes Area: Lifetimes / regions I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Projects
None yet
Development

No branches or pull requests

2 participants