rust/library/std/src
Matthias Krüger 99560a428a
Rollup merge of #118569 - blyxxyz:platform-os-str-slice, r=Mark-Simulacrum
Move `OsStr::slice_encoded_bytes` validation to platform modules

This delegates OS string slicing (`OsStr::slice_encoded_bytes`) validation to the underlying platform implementation. For now that results in increased performance and better error messages on Windows without any changes to semantics. In the future we may want to provide different semantics for different platforms.

The existing implementation is still used on Unix and most other platforms and is now optimized a little better.

Tracking issue: https://github.com/rust-lang/rust/issues/118485

cc `@epage,` `@BurntSushi`
2024-02-18 18:54:32 +01:00
..
backtrace remove redundant imports 2023-12-10 10:56:22 +08:00
collections add missing potential_query_instability for keys and values in hashmap 2024-01-30 12:43:10 +08: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 Move OsStr::slice_encoded_bytes validation to platform modules 2024-01-21 19:51:49 +01: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 Make io::BorrowedCursor::advance safe 2024-02-07 16:46:28 +01: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 By tracking import use types to check whether it is scope uses or the other situations like module-relative uses, we can do more accurate redundant import checking. 2024-02-18 16:38:11 +08: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 Auto merge of #121078 - oli-obk:rollup-p11zsav, r=oli-obk 2024-02-14 12:04:03 +00:00
sys Rollup merge of #118569 - blyxxyz:platform-os-str-slice, r=Mark-Simulacrum 2024-02-18 18:54:32 +01:00
sys_common Rollup merge of #118569 - blyxxyz:platform-os-str-slice, r=Mark-Simulacrum 2024-02-18 18:54:32 +01:00
thread Improve wording of static_mut_ref 2024-02-18 06:01:40 +03:00
time Rollup merge of #103056 - beetrees:timespec-bug-fix, r=thomcc 2023-05-05 18:40:32 +05:30
alloc.rs libs: use assert_unchecked instead of intrinsic 2024-01-13 20:10:00 +01: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 Bump version placeholders 2024-02-08 07:43:38 -05:00
f64.rs Bump version placeholders 2024-02-08 07:43:38 -05:00
fs.rs Auto merge of #120538 - kornelski:read-not-exact, r=m-ou-se 2024-02-16 11:53:05 +00:00
keyword_docs.rs docs: Add example, reference link for type keyword. 2023-08-21 20:00:43 +07:00
lib.rs Auto merge of #120889 - Ayush1325:uefi-instant, r=joshtriplett 2024-02-16 02:24:44 +00:00
macros.rs added column number to dbg!() 2023-12-12 18:12:23 +08:00
num.rs Switch NonZero alias direction. 2024-01-27 16:38:57 +01:00
panic.rs Store SHOULD_CAPTURE as AtomicU8 2024-01-31 13:58:52 +00:00
panicking.rs Improve wording of static_mut_ref 2024-02-18 06:01:40 +03:00
path.rs fix(std): Rename os_str_bytes to encoded_bytes 2023-09-01 19:33:16 -05:00
process.rs Fix incorrect use of compile_fail 2024-02-13 14:03:59 -05: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