about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/example/alloc_example.rs
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2022-12-31 01:43:54 +0100
committerTobias Bucher <tobiasbucher5991@gmail.com>2023-06-23 14:55:43 +0200
commit11fecf619aabd1f3d9a015b925bf0deedc7092e9 (patch)
tree09037fc6eea140a1d4e94ce060a6571cdec8d6f2 /compiler/rustc_codegen_cranelift/example/alloc_example.rs
parent9fc2da1b5438728e9f6469db227a7de2b345203e (diff)
downloadrust-11fecf619aabd1f3d9a015b925bf0deedc7092e9.tar.gz
rust-11fecf619aabd1f3d9a015b925bf0deedc7092e9.zip
Add `Read`, `Write` and `Seek` impls for `Arc<File>` where appropriate
If `&T` implements these traits, `Arc<T>` has no reason not to do so
either. This is useful for operating system handles like `File` or
`TcpStream` which don't need a mutable reference to implement these
traits.

CC #53835.
CC #94744.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions