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

Compiler panics when generating documentation on full disk #41813

Closed
Kixunil opened this issue May 7, 2017 · 1 comment
Closed

Compiler panics when generating documentation on full disk #41813

Kixunil opened this issue May 7, 2017 · 1 comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@Kixunil
Copy link
Contributor

Kixunil commented May 7, 2017

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)
@nagisa nagisa added I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ I-papercut labels May 8, 2017
@Mark-Simulacrum Mark-Simulacrum added C-bug Category: This is a bug. and removed I-papercut labels Jul 22, 2017
@ishanjain28
Copy link

This also happened with me today.
The compiler starts panicing if you try to, Generate Documentation, Run, Compile or run cargo check.

Maybe It should print a clear message and exit instead of panicing like that.

Rust Version: 1.21.0

euclio added a commit to euclio/rust that referenced this issue Dec 5, 2018
bors added a commit that referenced this issue Dec 5, 2018
emit error when doc generation fails

Fixes #41813.

The diagnostic looks something like this:

```
error: couldn't generate documentation: No space left on device (os error 28)
  |
  = note: failed to create or modify "/path/to/crate/target/doc/src/lazycell"
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants