Skip to content
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

internal compiler error: Got a fat pointer where a scalar was expected #614

Closed
Amanieu opened this Issue Feb 6, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@Amanieu
Copy link

Amanieu commented Feb 6, 2019

The following code causes an internal error in miri:

use std::rc::Rc;
use std::fmt::Debug;

fn main() {
    let p = Rc::new(1) as Rc<Debug>;
    let a: *const Debug = &*p;
    let r = Rc::into_raw(p);
    a == r;
}
error: internal compiler error: src/librustc_mir/interpret/operand.rs:73: Got a fat pointer where a scalar was expected
@RalfJung

This comment has been minimized.

Copy link
Member

RalfJung commented Feb 11, 2019

This will be fixed by #623

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.