rust/library/std/src
Dylan DPC b4536943e3
Rollup merge of #103360 - ChrisDenton:isterm-filetype, r=thomcc
Reduce false positives in msys2 detection

Currently msys2 will be detected by getting the file path and looking to see if it contains the substrings "msys-" and "-ptr" (or "cygwin-" and "-pty"). This risks false positives, especially with filesystem files and if `GetFileInformationByHandleEx` returns a [full path](https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntifs/nf-ntifs-ntqueryinformationfile#remarks).

This PR adds a check to see if the handle is a pipe before doing the substring search. Additionally, for "msys2-" or "cygwin-" it only checks if the file name starts with the substring rather than looking at the whole path.
2022-10-22 16:28:09 +05:30
..
backtrace Use implicit capture syntax in format_args 2022-03-10 10:23:40 -05:00
collections Make Hash{Set,Map}::with_hasher unstably const 2022-10-02 13:07:13 +01:00
env
error remove fn backtrace 2022-08-01 20:10:40 +00:00
f32 Semicolon after macro_rules definition. 2022-08-15 12:33:00 +02:00
f64 Semicolon after macro_rules definition. 2022-08-15 12:33:00 +02:00
ffi Guarantee try_reserve preserves the contents on error 2022-08-10 01:51:38 +09:00
fs Ignore hiberfil_sys test in CI 2022-07-18 15:06:07 +01:00
io Auto merge of #98033 - joshtriplett:is-terminal-fd-handle, r=thomcc 2022-10-15 01:42:28 +00:00
net Simplify clippy fix. 2022-09-12 19:46:51 +02:00
num
os Make the whole std::os::wasi::io module stable. 2022-10-20 14:31:11 -07:00
panic
path make many std tests work in Miri 2022-08-18 18:07:39 -04:00
personality Interpret EH actions properly 2022-10-05 03:09:43 +01:00
prelude Finish bumping stage0 2022-05-27 07:36:17 -04:00
process Add test for issue #95178 2022-03-23 05:33:44 +00:00
sync Rollup merge of #102277 - mgeisler:rwlock, r=m-ou-se 2022-10-11 18:37:52 +09:00
sys Rollup merge of #103360 - ChrisDenton:isterm-filetype, r=thomcc 2022-10-22 16:28:09 +05:30
sys_common std: use sync::Mutex for internal statics 2022-10-13 12:55:14 +02:00
thread Auto merge of #100579 - joboet:sync_mutex_everywhere, r=thomcc 2022-10-15 22:49:30 +00:00
time make many std tests work in Miri 2022-08-18 18:07:39 -04:00
alloc.rs Forbid mixing System with sytem allocator calls 2022-09-03 16:47:12 -05:00
ascii.rs Remove use of #[rustc_deprecated] 2022-04-14 01:33:13 -04:00
backtrace.rs std: use sync::Mutex for internal statics 2022-10-13 12:55:14 +02:00
env.rs env::temp_dir: fix a typo 2022-09-28 21:51:09 +02:00
error.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
f32.rs Improve primitive/std docs separation and headers 2022-08-20 16:50:29 -05:00
f64.rs Improve primitive/std docs separation and headers 2022-08-20 16:50:29 -05:00
fs.rs Do not alias for fs 2022-10-10 17:05:59 -07:00
keyword_docs.rs review feedback 2022-10-07 15:21:47 +02:00
lib.rs Add IsTerminal trait to determine if a descriptor or handle is a terminal 2022-10-15 00:35:38 +01:00
macros.rs stdio: Document no support for writing to non-blocking stdio/stderr 2022-09-07 14:22:57 +01:00
num.rs Add Saturating type (based on Wrapping type) 2021-08-10 19:27:01 +02:00
panic.rs Adding backtrace off option for fuchsia targets 2022-09-14 23:54:40 +00:00
panicking.rs Fix whitespace 2022-10-06 09:55:32 +02:00
path.rs Add basename and dirname aliases 2022-10-09 21:44:44 -07:00
personality.rs Move personality functions to std 2022-08-23 16:12:58 +08:00
primitive_docs.rs array docs - advertise how to get array from slice 2022-09-10 19:37:07 -07:00
process.rs Make diagnostic for unsatisfied Termination bounds more precise 2022-10-17 12:08:46 +02:00
rt.rs Change process spawning to inherit the parent's signal mask by default 2022-10-20 14:53:38 -07:00
time.rs Fixed docs typo in library/std/src/time.rs 2022-10-19 21:49:29 -07:00