Skip to content

Add TryFrom<Output> for SanitizedOutput #4201

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

Merged
merged 1 commit into from
Mar 2, 2025

Conversation

smoelius
Copy link
Contributor

@smoelius smoelius commented Mar 1, 2025

SanitizedOutputs have String stdout and stderr fields. This makes SanitizedOutputs easier to display than Outputs.

This commit adds a TryFrom<Output> implementation for SanitizedOutput. In this way, a test can run a command to produce an Output, and from that Output produce a SanitizedOutput.

Extracted from #4175

`SanitizedOutput`s have `String` `stdout` and `stderr` fields. This
makes `SanitizedOutput`s easier to display than `Output`s.

This commit adds a `TryFrom<Output>` implementation for
`SanitizedOutput`. In this way, a test can run a command to produce an
`Output`, and from that `Output` produce a `SanitizedOutput`.

Extracted from rust-lang#4175
Copy link
Member

@rami3l rami3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot :)

@rami3l rami3l added this pull request to the merge queue Mar 2, 2025
Merged via the queue into rust-lang:master with commit fa44b9b Mar 2, 2025
29 checks passed
@djc djc mentioned this pull request Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants