Skip to content

Compiler panics when generating documentation on full disk #41813

Closed
@Kixunil

Description

@Kixunil

When running cargo doc, rustc panics if disk is full. Not a huge issue, just an invalid call of .unwrap() and since the message says it's a bug, I'm filling a report.

Error message (with removed file path):

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

thread 'rustc' panicked at 'failed to generate documentation: Error { file: <path removed>", error: Error { repr: Os { code: 28, message: "No space left on device" } } }', /checkout/src/libcore/result.rs:859
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Might be related to #20438 somehow?

$ rustc --version
rustc 1.17.0 (56124baa9 2017-04-24)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions