about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorJosh Triplett <josh@joshtriplett.org>2025-04-15 10:54:08 -0700
committerJosh Triplett <josh@joshtriplett.org>2025-04-15 10:54:08 -0700
commit043c5ff98262409a9c338001200c4cf2a66e72c8 (patch)
tree66c40bde44fce51765b5655303301b53b39baa66 /compiler/rustc_codegen_gcc
parent40dacd50b7074783db748d73925ac5c3693a7ec1 (diff)
downloadrust-043c5ff98262409a9c338001200c4cf2a66e72c8.tar.gz
rust-043c5ff98262409a9c338001200c4cf2a66e72c8.zip
Add warning comment to `Take::get_ref` and `Chain::get_ref`
The methods `Take::get_mut` and `Chain::get_mut` include comments
warning about modifying the I/O state of the underlying reader. However,
many readers (e.g. `File`) allow I/O using a shared reference (e.g.
`&File`). So, add the same caveat to the `get_ref` methods.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions