Skip to content

Logging glue dumps core on classes w/ destructors and boxes #3207

Closed
@msullivan

Description

@msullivan
struct thing {
    x: {a: @int};
    new (x: {a: @int}) { self.x = x; }
    drop { }
}

fn main() {
    let x = thing({a: @10});
    log(error, x);
}

will dump core.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions