about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-10-15 01:42:28 +0000
committerbors <bors@rust-lang.org>2022-10-15 01:42:28 +0000
commit81549553212075fe737b88546203a3f8150154cc (patch)
treee2a6421428b03074ca74b8a3d765741d99d827bf /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent8147e6e427a1b3c4aedcd9fd85bd457888f80972 (diff)
parent97d438cd314d33c976cc0bb7fbfa08150270cbe2 (diff)
downloadrust-81549553212075fe737b88546203a3f8150154cc.tar.gz
rust-81549553212075fe737b88546203a3f8150154cc.zip
Auto merge of #98033 - joshtriplett:is-terminal-fd-handle, r=thomcc
Add `IsTerminal` trait to determine if a descriptor or handle is a terminal

The UNIX implementation uses `isatty`. The Windows implementation uses
the same logic the `atty` crate uses, including the hack needed to
detect msys terminals.

Implement this trait for `Stdin`/`Stdout`/`Stderr`/`File` on all
platforms. On Unix, implement it for `BorrowedFd`/`OwnedFd`. On Windows,
implement it for `BorrowedHandle`/`OwnedHandle`.

Based on https://github.com/rust-lang/rust/pull/91121

Co-authored-by: Matt Wilkinson <mattwilki17@gmail.com>
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions