bors c86d6230fe Auto merge of #17381 - roife:fix-issue-17378, r=Veykril
fix: ensure that the parent of a SourceRoot cannot be itself

fix #17378.

In `FileSetConfig.map`, different roots might be mapped to the same `root_id` due to deduplication in `ProjectFolders::new`:

```rust
// Example from rustup
/Users/roife/code/rustup/target/debug/build/rustup-863a063426b56c51/out
/Users/roife/code/rustup
```

In `source_root_parent_map`, r-a might encounter paths where their SourceRootId (i.e. `root_id`) is identical, yet one the them is the parent of the another. This situation can cause the `root_id` to be its own parent, potentially leading to an infinite loop.

This PR resolves such cases by adding a check.
2024-06-10 17:43:06 +00:00
..
2024-04-01 17:55:56 +02:00
2024-04-06 13:12:07 +02:00
2024-06-04 12:38:20 +02:00
2024-06-05 10:45:22 +02:00
2024-05-15 18:55:27 +02:00
2024-06-09 13:03:01 +02:00
2024-04-01 17:55:56 +02:00
2024-05-30 16:18:49 -07:00
2024-05-14 11:21:04 +02:00
2024-03-19 15:39:00 +01:00
2024-06-04 12:38:20 +02:00