diff options
| author | bors <bors@rust-lang.org> | 2022-07-18 01:37:38 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-18 01:37:38 +0000 |
| commit | 8ec3425a8a6ce81dd99083f19bfc3eee6b8155d4 (patch) | |
| tree | e887fefd3a02311b7506df54e26b368fa8be3efe /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff | |
| parent | 36a7a654b080f4b9d714a904f4ffde7e2483b4fc (diff) | |
| parent | eefdeacdb1aa2515359ba3cedfb04c81d74e783a (diff) | |
| download | rust-8ec3425a8a6ce81dd99083f19bfc3eee6b8155d4.tar.gz rust-8ec3425a8a6ce81dd99083f19bfc3eee6b8155d4.zip | |
Auto merge of #2349 - saethlin:isatty, r=RalfJung
Improve isatty support Per https://github.com/rust-lang/miri/issues/2292#issuecomment-1171858283, this is an attempt at > do something more clever with Miri's `isatty` shim Since Unix -> Unix is very simple, I'm starting with a patch that just does that. Happy to augment/rewrite this based on feedback. The linked file in libtest specifically only supports stdout. If we're doing this to support terminal applications, I think it would be strange to support one but not all 3 of the standard streams. The `atty` crate contains a bunch of extra logic that libtest does not contain, in order to support MSYS terminals: https://github.com/softprops/atty/commit/db8d55f88eabfcc22cde39533c2b1d688d1cdfc6 so I think if we're going to do Windows support, we should probably access all that logic somehow. I think it's pretty clear that the implementation is not going to change, so I think if we want to, pasting the contents of the `atty` crate into Miri is on the table, instead of taking a dependency.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions
