about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src/coverage/query.rs
diff options
context:
space:
mode:
authorChris Denton <chris@chrisdenton.dev>2025-04-23 00:43:07 +0000
committerGitHub <noreply@github.com>2025-04-23 00:43:07 +0000
commited4e167c4a127c4d44a2b434cd479ff8702e2a52 (patch)
tree8c846c76e93cfe8b5b6d57e086fb9e00ab2a2cc7 /compiler/rustc_mir_transform/src/coverage/query.rs
parentb03267fc1164c1e026e55cc960f8ec0a7b805f17 (diff)
parent006b7e3a2bb0ea93287704cb2dbc3bb6d35c5876 (diff)
downloadrust-ed4e167c4a127c4d44a2b434cd479ff8702e2a52.tar.gz
rust-ed4e167c4a127c4d44a2b434cd479ff8702e2a52.zip
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`
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/query.rs')
0 files changed, 0 insertions, 0 deletions