rust/library/std/src
Matthias Krüger 67d093682c
Rollup merge of #119664 - ChrisDenton:mingw-pty, r=thomcc
Fix tty detection for msys2's `/dev/ptmx`

Our "true negative" detection assumes that if at least one std handle is a Windows console then no other handle will be a msys2 tty pipe. This turns out to be a faulty assumption in the case of redirection to  `/dev/ptmx` in an msys2 shell. Maybe this is an msys2 bug but in any case we should try to make it work.

An alternative to this would be to replace the "true negative" detection with an attempt to detect if we're in an msys environment (e.g. by sniffing environment variables) but that seems like it'd be flaky too.

Fixes #119658
2024-01-22 22:12:06 +01:00
..
backtrace remove redundant imports 2023-12-10 10:56:22 +08:00
collections Auto merge of #117756 - a1phyr:hashmap_fold, r=the8472 2024-01-20 17:53:26 +00:00
env remove redundant imports 2023-12-10 10:56:22 +08:00
error core/any: remove Provider trait 2023-08-13 13:07:53 -06:00
f32 Add gamma and ln_gamma functions to f32 and f64 2023-07-31 07:41:50 -07:00
f64 Add gamma and ln_gamma functions to f32 and f64 2023-07-31 07:41:50 -07:00
ffi remove redundant imports 2023-12-10 10:56:22 +08:00
fs library: Fix a symlink test failing on Windows 2024-01-06 01:40:56 +03:00
hash update version placeholders 2023-12-22 11:01:42 +01:00
io remove redundant imports 2023-12-10 10:56:22 +08:00
net remove redundant imports 2023-12-10 10:56:22 +08:00
num removed nonfunctioning benchmark 2024-01-11 11:30:12 -05:00
os Rollup merge of #119943 - devnexen:listener_update3, r=thomcc 2024-01-22 16:13:27 +01:00
panic review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
path remove redundant imports 2023-12-10 10:56:22 +08:00
prelude correct std::prelude comment 2023-04-27 15:56:57 +02:00
process Rollup merge of #114379 - RalfJung:command-removed-env-vars, r=m-ou-se 2023-09-22 12:15:25 +02:00
sync std: Doc blocking behavior of LazyLock methods 2024-01-14 10:28:13 -08:00
sys Rollup merge of #119664 - ChrisDenton:mingw-pty, r=thomcc 2024-01-22 22:12:06 +01:00
sys_common std: once: use queue implementation on Xous 2024-01-13 09:13:56 -08:00
thread Revert example change from PR 116392 2024-01-20 18:39:48 -08:00
time Rollup merge of #103056 - beetrees:timespec-bug-fix, r=thomcc 2023-05-05 18:40:32 +05:30
alloc.rs Correct and expand documentation of handle_alloc_error and set_alloc_error_hook. 2023-08-19 13:27:03 -07:00
ascii.rs Add the basic ascii::Char type 2023-05-03 22:09:33 -07:00
backtrace.rs Rollup merge of #118798 - GnomedDev:use-atomicu8-backtrace, r=Nilstrieb 2024-01-19 08:15:02 +01:00
env.rs Reformulate std::env::{set,remove}_env as safety note 2023-12-13 12:49:38 +01:00
error.rs Clean dead codes 2023-11-26 09:25:07 +08:00
f32.rs Stabilize round_ties_even 2024-01-19 18:05:53 -05:00
f64.rs Stabilize round_ties_even 2024-01-19 18:05:53 -05:00
fs.rs Rollup merge of #119319 - chfogelman:buffered-file-doc, r=the8472 2024-01-03 16:08:25 +01:00
keyword_docs.rs docs: Add example, reference link for type keyword. 2023-08-21 20:00:43 +07:00
lib.rs Rollup merge of #120150 - Jules-Bertholet:stabilize-round-ties-even, r=cuviper 2024-01-20 09:37:29 +01:00
macros.rs added column number to dbg!() 2023-12-12 18:12:23 +08:00
num.rs removed nonfunctioning benchmark 2024-01-11 11:30:12 -05:00
panic.rs merge core_panic feature into panic_internals 2023-12-09 14:49:00 +01:00
panicking.rs Update test for E0796 and static_mut_ref lint 2024-01-07 17:29:25 +03:00
path.rs fix(std): Rename os_str_bytes to encoded_bytes 2023-09-01 19:33:16 -05:00
process.rs Cfg remove lang items in doctest 2023-12-15 16:17:28 +00:00
rt.rs Cfg remove lang items in doctest 2023-12-15 16:17:28 +00:00
time.rs Auto merge of #116238 - tamird:gettimeofday, r=thomcc 2023-10-24 04:15:39 +00:00