rust/library/std/src
bors cbeda5cbeb Auto merge of #86467 - ChrisDenton:win-env-clear, r=JohnTitor
Windows: Fix `Command::env_clear` so it works if no variables are set

Previously, it would error unless at least one new environment variable was added. The missing null presumably meant that Windows was reading random memory in that case.

See: [CreateProcessW](https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessw) (scroll down to `lpEnvironment`). Essentially the environment block is a null terminated list of null terminated strings and an empty list is `\0\0` and not `\0`.

EDIT: Oh, [CreateEnvironmentBlock](https://docs.microsoft.com/en-gb/windows/win32/api/userenv/nf-userenv-createenvironmentblock) states this much more explicitly.

Fixes #31259
2021-06-24 17:37:29 +00:00
..
backtrace Add Frames iterator for Backtrace 2021-01-23 11:56:33 -06:00
collections Rollup merge of #84328 - Folyd:stablize_map_into_keys_values, r=m-ou-se 2021-05-06 13:30:54 +02:00
env std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
error std: move "mod tests/benches" to separate files 2020-08-31 02:56:59 +00:00
f32 More lerp tests, altering lerp docs 2021-06-13 14:00:15 -04:00
f64 More lerp tests, altering lerp docs 2021-06-13 14:00:15 -04:00
ffi Add inline attr to private CString::into_inner 2021-05-26 13:12:54 +03:00
fs Fix test metadata_access_times to also check for Unsupported 2021-04-18 09:29:24 +02:00
io Rollup merge of #86037 - soerenmeier:cursor_remaining, r=yaahc 2021-06-22 07:37:46 +09:00
lazy Upgrade wasm32 image to Ubuntu 20.04 2021-02-06 13:05:56 +01:00
net Remove is_unicast_site_local 2021-06-09 09:41:29 +02:00
num rustc_expand: Mark inner #![test] attributes as soft-unstable 2020-11-20 19:35:03 +03:00
os Rollup merge of #85054 - jethrogb:jb/sgx-inline-asm, r=Amanieu 2021-06-22 07:37:42 +09:00
panic review: fix nits and move panic safety tests to the correct place 2020-09-25 23:10:24 +02:00
path Refactor parse_prefix on Windows 2020-11-07 16:15:48 +01:00
prelude Stabilize {std, core}::prelude::rust_*. 2021-06-14 14:44:50 +00:00
process Test that env_clear works on Windows 2021-06-24 09:32:24 +01:00
sync Rollup merge of #80269 - pickfire:patch-4, r=joshtriplett 2021-06-15 17:39:58 +09:00
sys Auto merge of #86467 - ChrisDenton:win-env-clear, r=JohnTitor 2021-06-24 17:37:29 +00:00
sys_common Auto merge of #84967 - CDirkx:os_str_ext, r=m-ou-se 2021-06-20 16:42:13 +00:00
thread Auto merge of #86527 - JohnTitor:rollup-cbu78g4, r=JohnTitor 2021-06-22 01:14:31 +00:00
time Duration::zero() -> Duration::ZERO 2020-10-21 20:44:03 -07:00
alloc.rs Rename rterr to rtprintpanic 2021-05-19 15:52:09 +02:00
ascii.rs Convert many files to intra-doc links 2020-09-02 17:37:40 -04:00
backtrace.rs make both panic display formats collapse frames 2021-06-07 21:18:55 +02:00
env.rs change k to key and v to v in std::env mod 2021-05-10 19:31:09 +08:00
error.rs Rollup merge of #82179 - mbartlett21:patch-5, r=joshtriplett 2021-06-15 17:40:03 +09:00
f32.rs Change tracking issue 2021-06-13 14:04:43 -04:00
f64.rs Change tracking issue 2021-06-13 14:04:43 -04:00
fs.rs no_run and ignore doc attributes 2021-06-18 14:17:21 +03:00
keyword_docs.rs Rollup merge of #86141 - amorison:link-ref-in-doc-dyn-keyword, r=kennytm 2021-06-17 05:54:55 +09:00
lazy.rs Use DebugStruct::finish_non_exhaustive() in std. 2021-03-27 13:29:23 +01:00
lib.rs Auto merge of #84910 - eopb:stabilize_int_error_matching, r=yaahc 2021-06-22 09:30:15 +00:00
macros.rs Change "etc." to "and similar" 2021-05-13 15:02:02 +01:00
num.rs postpone stabilizaton by one release 2021-06-22 10:20:56 +01:00
panic.rs Add #[track_caller] to panic_any 2021-05-27 14:19:47 +03:00
panicking.rs Rollup merge of #84687 - a1phyr:improve_rwlock, r=m-ou-se 2021-06-10 11:02:10 +09:00
path.rs Auto merge of #85747 - maxwase:path-symlinks-methods, r=m-ou-se 2021-06-18 17:13:19 +00:00
primitive_docs.rs remove cfg(bootstrap) 2021-05-24 11:07:48 -04:00
process.rs impl crate::error::Error for ExitStatusError 2021-05-12 11:12:20 +01:00
rt.rs Change entry point to 🛡️ against 💥 💥-payloads 2021-06-19 11:46:56 +03:00
time.rs Fix invalid align attribute generation on <td> elements 2021-06-04 10:10:13 +02:00