mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-04 09:53:04 +03:00
006b7e3a2b
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).