-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid converting bytes to UTF-8 strings to print, just pass bytes to stdout/err #55754
Conversation
I don't know this part of the code well, but makes sense to me -- r? @alexcrichton for reassignment |
@bors: r+ |
📌 Commit 683106b8c758dd89e4210d25c574b090aed9a57a has been approved by |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
@bors: r- |
683106b
to
e55e5c7
Compare
@alexcrichton doh, force pushed with the thing fixed |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
e55e5c7
to
3b3b60c
Compare
@bors: r+ |
📌 Commit 3b3b60c has been approved by |
@bors rollup |
… r=alexcrichton Avoid converting bytes to UTF-8 strings to print, just pass bytes to stdout/err r? @nikomatsakis
… r=alexcrichton Avoid converting bytes to UTF-8 strings to print, just pass bytes to stdout/err r? @nikomatsakis
Rollup of 20 pull requests Successful merges: - #55136 (Remove short doc where it starts with a codeblock) - #55711 (Format BtreeMap::range_mut example) - #55722 (impl_stable_hash_for: support enums and tuple structs with generic parameters) - #55754 (Avoid converting bytes to UTF-8 strings to print, just pass bytes to stdout/err) - #55804 (rustdoc: don't inline `pub use some_crate` unless directly asked to) - #55805 (Move `static_assert!` into librustc_data_structures) - #55837 (Make PhantomData #[structural_match]) - #55840 (Fix TLS errors when downloading stage0) - #55843 (add FromIterator<A> to Box<[A]>) - #55858 (Small fixes on code blocks in rustdoc) - #55863 (Fix a typo in std::panic) - #55870 (Fix typos.) - #55874 (string: Add documentation for `From` impls) - #55879 (save-analysis: Don't panic for macro-generated use globs) - #55882 (Reference count `crate_inherent_impls`s return value.) - #55888 (miri: for uniformity, also move memory_deallocated to AllocationExtra) - #55889 (global allocators: add a few comments) - #55896 (Document optimizations enabled by FusedIterator) - #55905 (Change `Lit::short_name` to `Lit::literal_name`.) - #55908 (Fix their/there grammar nit)
/// | ||
/// let output = Command::new("rev") | ||
/// .stdin(Stdio::inherit()) | ||
/// .stdout(Stdio::piped()) | ||
/// .output() | ||
/// .expect("Failed to execute command"); | ||
/// | ||
/// println!("You piped in the reverse of: {}", String::from_utf8_lossy(&output.stdout)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems wrong, doesn't it? This was previously an atomic write, and now is not?
r? @nikomatsakis