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

Amanieu opened this Issue Feb 6, 2019 · 1 comment


None yet
2 participants
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/ Got a fat pointer where a scalar was expected

This comment has been minimized.

Copy link

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.