Files
Parker Loflin f070c7ff6c settings: Make SettingsFile::Global compare equal to itself (#67121)
## Summary

`Ord for SettingsFile` had no `(Global, Global)` arm, so
`Global.cmp(&Global)` returned `Less`. Each global settings parse added
a duplicate `file_errors` entry, and lookups of `Global` returned
`None`. Nothing reads `Global` errors, so there is no user-visible
change.

## Testing

- `test_file_ord` now includes `Global` and checks `cmp` on every pair.
It fails without the fix.
- `cargo test -p settings` and `./script/clippy -p settings` pass.

## Self-review

- [x] I've reviewed my diff for quality, security, reliability, and
performance.
- [x] UI changes follow the
[checklist](https://zed.dev/docs/development/ui-checklist).
- [x] Tests cover the new or changed behavior.

Release Notes:

- N/A
2026-11-18 09:50:35 +00:00
..