Files
rust/library/std/src
Jacob Pratt 8e30df7f26 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)...
2025-03-23 20:44:11 -04:00
..
2025-03-18 16:46:56 +00:00
2025-02-13 13:10:28 -08:00
2025-03-08 16:22:37 -08:00
2025-03-11 09:46:34 -07:00
2025-02-25 09:08:22 +05:30
2025-03-13 20:09:07 +00:00
2025-03-10 21:23:32 +08:00
2025-02-07 16:54:07 +01:00