In Rust's implementation of stdio, this code exists: ``` if let Err(e) = global_s().write_fmt(args) { panic!("failed printing to {}: {}", label, e); } ``` This means that if Rust fails to write to stdout in WebRender (like it does [here](https://searchfox.org/mozilla-central/rev/d4b9c457db637fde655592d9e2048939b7ab2854/gfx/wr/webrender/src/renderer/mod.rs#1337), it will crash with the following error: `failed printing to stdout: Access is denied. (os error 5)`
Bug 1751012 Comment 0 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
In Rust's implementation of stdio, this code exists: ``` if let Err(e) = global_s().write_fmt(args) { panic!("failed printing to {}: {}", label, e); } ``` This means that if Rust fails to write to stdout in WebRender (like it does [here](https://searchfox.org/mozilla-central/rev/d4b9c457db637fde655592d9e2048939b7ab2854/gfx/wr/webrender/src/renderer/mod.rs#1337)), it will crash with the following error: `failed printing to stdout: Access is denied. (os error 5)`