diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2025-03-23 20:44:11 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-23 20:44:11 -0400 |
| commit | 8e30df7f26e3a637f0bb41f877871a240bcbbe06 (patch) | |
| tree | 68af7fc2d40dcf8227657af39e2cd62119981a08 /compiler/rustc_codegen_llvm/src | |
| parent | 0fc6279ce9775005f60eeef8440f3a2bcce74ce3 (diff) | |
| parent | 6b2fa32f142f341ba227b5ea784ea2a1a5e79fe8 (diff) | |
| download | rust-8e30df7f26e3a637f0bb41f877871a240bcbbe06.tar.gz rust-8e30df7f26e3a637f0bb41f877871a240bcbbe06.zip | |
Rollup merge of #138671 - ChrisDenton:filetype, r=joshtriplett
Fix `FileType` `PartialEq` implementation on Windows Fixes #138668 On Windows the [`FileType`](https://doc.rust-lang.org/stable/std/fs/struct.FileType.html) struct was deriving `PartialEq` which in turn means it was doing a bit-for-bit comparison on the file attributes and reparse point. This is wrong because `attributes` may contain many things unrelated to file type. `FileType` on Windows allows for four possible combinations (see also [`FileTypeExt`](https://doc.rust-lang.org/stable/std/os/windows/fs/trait.FileTypeExt.html)): `file`, `dir`, `symlink_file` and `symlink_dir`. So the new implementation makes sure both symlink and directory information match (and only those things). This could be considered just a bug fix but it is a behaviour change so someone from libs-api might want to FCP this (or might not)...
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
