Rollup merge of #59734 - GuillaumeGomez:improve-rustdoc-failure, r=ollie27
Rollup merge of #59734 - GuillaumeGomez:improve-rustdoc-failure, r=ollie27

Prevent failure in case no space left on device in rustdoc

Fixes #59703.

r? @QuietMisdreavus

aidancully/rust,graydon/rust,graydon/rust,graydon/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,aidancully/rust,graydon/rust,graydon/rust,graydon/rust