mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-25 22:41:58 +00:00
Add `File` constructors that return files wrapped with a buffer In addition to the light convenience, these are intended to raise visibility that buffering is something you should consider when opening a file, since unbuffered I/O is a common performance footgun to Rust newcomers. ACP: https://github.com/rust-lang/libs-team/issues/446 Tracking Issue: #130804
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.