diff options
| author | Chris Denton <chris@chrisdenton.dev> | 2025-04-23 00:43:07 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-23 00:43:07 +0000 |
| commit | ed4e167c4a127c4d44a2b434cd479ff8702e2a52 (patch) | |
| tree | 8c846c76e93cfe8b5b6d57e086fb9e00ab2a2cc7 /compiler/rustc_mir_transform/src/coverage/query.rs | |
| parent | b03267fc1164c1e026e55cc960f8ec0a7b805f17 (diff) | |
| parent | 006b7e3a2bb0ea93287704cb2dbc3bb6d35c5876 (diff) | |
| download | rust-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
