rust/library/std
Chris Denton ed4e167c4a
Rollup merge of #140163 - thaliaarchi:pathbuf-validate-extension, r=ChrisDenton
Validate extension in `PathBuf::add_extension`

The extension is validated in `PathBuf::set_extension`, but not `add_extension`. Fix that. Check for both `/` and `\` path separators on Windows, even when the path is verbatim, since this is logically like `PathBuf::push` which normalizes separators (i.e., keeping the current behavior).

`PathBuf::add_extension` is tracked in #127292.

r? `@ChrisDenton`
2025-04-23 00:43:07 +00:00
..
benches Fix import in bench for wasm 2025-02-12 14:44:30 -08:00
src Validate extension in PathBuf::add_extension 2025-04-22 05:34:25 -07:00
tests Basic tests of MPMC receiver cloning 2025-04-15 02:37:57 +01:00
build.rs Revert "Disable f16 on Aarch64 without neon" 2025-04-02 19:21:10 +00:00
Cargo.toml Rollup merge of #140146 - tgross35:update-builtins, r=tgross35 2025-04-23 00:43:05 +00:00