diff options
| author | Thalia Archibald <thalia@archibald.dev> | 2025-04-22 05:10:45 -0700 |
|---|---|---|
| committer | Thalia Archibald <thalia@archibald.dev> | 2025-04-22 05:34:25 -0700 |
| commit | 006b7e3a2bb0ea93287704cb2dbc3bb6d35c5876 (patch) | |
| tree | 9ad244812eb9f2c416d795d6e223d707707c11d5 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 8bf5a8d12feea10dfada53fb2d119283b0e0107c (diff) | |
| download | rust-006b7e3a2bb0ea93287704cb2dbc3bb6d35c5876.tar.gz rust-006b7e3a2bb0ea93287704cb2dbc3bb6d35c5876.zip | |
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).
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
