mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 19:27:30 +03:00
4c62024cd5
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.