rust-analyzer/crates
Chayim Refael Friedman 6bcfbbe8f9 Remove SolverDefId::ForeignId
Replace it with normal `SolverDefId::TypeAliasId`.

The split caused a very funny bug where code was getting `TypeAliasId` where it expected `ForeignId`, because `TypeAliasId` had a `From` impl from `hir_def::TypeAliasId` and `ForeignId` had not, plus a careless `into()`.

I could've fixed this specific bug but opted to remove the split instead; currently, it just provides more room for bugs, as we don't have typed IDs for the solver anyway, and even when we'll have (hopefully), that doesn't seem like a very useful distinction, for example in hir-def foreign types are just `TypeAliasId` with some flags.

Constructing a test for this isn't trivial; the trivial test (creating a foreign type, even proving a trait bound for it) fails to fail before the change, probably because we don't use the new solver everywhere yet so we don't trigger this specific code path.
2025-08-26 19:33:46 +03:00
..
base-db fix: Make lang items query properly filter out overwritten/excluded sysroots 2025-08-17 22:28:04 +09:00
cfg cargo clippy --fix 2025-07-31 10:55:10 +02:00
edition
hir Merge pull request #20442 from ChayimFriedman2/unqualify 2025-08-18 06:24:35 +00:00
hir-def fix: Make lang items query properly filter out overwritten/excluded sysroots 2025-08-17 22:28:04 +09:00
hir-expand When renaming a parameter to self, change callers to use method call syntax 2025-08-02 21:39:22 +03:00
hir-ty Remove SolverDefId::ForeignId 2025-08-26 19:33:46 +03:00
ide Add an option to remove reborrows from adjustment inlay hints 2025-08-24 02:26:37 +03:00
ide-assists Merge pull request #20534 from A4-Tacks/tog-macro-delim-semicolon 2025-08-26 05:55:08 +00:00
ide-completion Merge pull request #20423 from ShoyuVanilla/import-2024 2025-08-25 19:19:31 +00:00
ide-db Merge pull request #20423 from ShoyuVanilla/import-2024 2025-08-25 19:19:31 +00:00
ide-diagnostics Auto-attach database in Analysis calls 2025-08-18 09:52:23 +02:00
ide-ssr Implement next trait solver 2025-08-09 16:08:58 +00:00
intern Implement next trait solver 2025-08-09 16:08:58 +00:00
load-cargo cargo clippy --fix 2025-07-31 10:55:10 +02:00
mbe cargo clippy --fix 2025-07-31 10:55:10 +02:00
parser Auto-attach database in Analysis calls 2025-08-18 09:52:23 +02:00
paths Don't run doctests 2025-06-23 00:50:22 +03:00
proc-macro-api Add version command to proc-macro-srv 2025-07-31 10:10:50 +02:00
proc-macro-srv Reorganize proc-macro-srv 2025-07-31 09:55:07 +02:00
proc-macro-srv-cli Add version command to proc-macro-srv 2025-07-31 10:10:50 +02:00
profile Implement next trait solver 2025-08-09 16:08:58 +00:00
project-model remove duplicate field in Debug 2025-08-08 23:46:28 +02:00
query-group-macro Implement next trait solver 2025-08-09 16:08:58 +00:00
rust-analyzer Merge pull request #20399 from rust-lang/veykril/push-klrwvmzokqwu 2025-08-26 05:56:22 +00:00
span Merge Trait and TraitAlias handling 2025-08-13 15:28:08 +08:00
stdx Don't run doctests 2025-06-23 00:50:22 +03:00
syntax Merge Trait and TraitAlias handling 2025-08-13 15:28:08 +08:00
syntax-bridge remove P 2025-08-09 15:47:01 +08:00
test-fixture fix: Make lang items query properly filter out overwritten/excluded sysroots 2025-08-17 22:28:04 +09:00
test-utils Merge pull request #20329 from jackh726/next-trait-solver-querify 2025-08-13 06:10:45 +00:00
toolchain Don't run doctests 2025-06-23 00:50:22 +03:00
tt cargo clippy --fix 2025-07-31 10:55:10 +02:00
vfs Bump salsa 2025-07-03 10:05:16 +02:00
vfs-notify cargo clippy --fix 2025-07-31 10:55:10 +02:00