Skip to content

rustc does not clear temporary files after unconditional_panic error #107001

Open
@buyukakyuz

Description

@buyukakyuz

This is a simple code to check Rust's bound checking:

fn main() {
    let a = [1, 2, 3, 4, 5];
    let _x = a[9];
}

If we try to compile it with rustc (not cargo), rustc produces a bunch of object files

If we fix the code and recompile it, rust clears the produced files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.C-bugCategory: This is a bug.I-monomorphizationIssue: An error at monomorphization time.L-unconditional_panicLint: unconditional_panicT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions