about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorWilliam Chargin <wchargin@gmail.com>2019-09-08 14:03:09 -0700
committerWilliam Chargin <wchargin@gmail.com>2019-09-08 14:12:56 -0700
commit9bf577311473aa0accbf0d456cbd26b7530b200f (patch)
tree2428be140327613392a3c29dd00d83fc888efd0e /src/test/incremental/thinlto
parent2b8116dced2c6c5d02e1c4359e89dc0919d6001b (diff)
downloadrust-9bf577311473aa0accbf0d456cbd26b7530b200f.tar.gz
rust-9bf577311473aa0accbf0d456cbd26b7530b200f.zip
Fix `Stdio::piped` example code and lint
Summary:
Invoking `rev` does not add a trailing newline when none is present in
the input (at least on my Debian). Nearby examples use `echo` rather
than `rev`, which probably explains the source of the discrepancy.

Also, a `mut` qualifier is unused.

Test Plan:
Copy the code block into <https://play.rust-lang.org> with a `fn main`
wrapper, and run it. Note that it compiles and runs cleanly; prior to
this commit, it would emit an `unused_mut` warning and then panic.

wchargin-branch: stdio-piped-docs
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions