rust-analyzer/crates
bors bd59dc8e4c Auto merge of #18139 - ShoyuVanilla:issue-18109, r=Veykril
fix: Extend `type_variable_table` when modifying index is larger than the table size

Fixes #18109

Whenever we create an inference variable in r-a, we extend `type_variable_table` to matching size here;

f4aca78c92/crates/hir-ty/src/infer/unify.rs (L378-L381)

But sometimes, an inference variable is [created from chalk](ab710e0c9b/chalk-solve/src/infer/unify.rs (L743)) and passed to r-a as a type of an expression or a pattern.
If r-a set diverging flag to this before the table is extended to a sufficient size, it panics here;

f4aca78c92/crates/hir-ty/src/infer/unify.rs (L275-L277)

I think that extending table when setting diverging flag is reasonable becase we are already doing such extending to a size that covers the inference vars created from chalk and this change only covers the order-dependent random cases that this might fail
2024-09-18 20:01:38 +00:00
..
base-db Lift out workspace related data into a separate query to preserve crategraph deduplication 2024-09-11 12:16:41 +02:00
cfg Remove unnecessary CfgFlag definition in project-model 2024-08-07 14:27:59 +02:00
hir Auto merge of #18117 - ChayimFriedman2:issue-18089, r=Veykril 2024-09-18 09:19:30 +00:00
hir-def Auto merge of #18099 - ChayimFriedman2:diag-only-necessary, r=Veykril 2024-09-12 12:39:27 +00:00
hir-expand Always cache macro expansions' root node in Semantics 2024-09-17 00:19:39 +03:00
hir-ty Auto merge of #18139 - ShoyuVanilla:issue-18109, r=Veykril 2024-09-18 20:01:38 +00:00
ide Always cache macro expansions' root node in Semantics 2024-09-17 00:19:39 +03:00
ide-assists Use SyntaxEditor in extract_type_alias 2024-09-17 18:25:32 -04:00
ide-completion Auto merge of #18038 - roife:fix-issue-18034, r=Veykril 2024-09-12 08:21:37 +00:00
ide-db internal: Extend SourceChangeBuilder to make make working with SyntaxEditors easier 2024-09-17 18:24:27 -04:00
ide-diagnostics Auto merge of #18128 - ChayimFriedman2:external-macros-lint, r=Veykril 2024-09-18 09:04:53 +00:00
ide-ssr Properly account for editions in names 2024-08-16 16:46:24 +03:00
intern chore: fix some comments 2024-09-02 18:33:23 +08:00
limit Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true 2024-08-06 00:26:42 +02:00
load-cargo Properly set the working directory for proc-macro execution 2024-09-11 12:23:12 +02:00
mbe feat: Implement expr_2021 2024-09-18 15:58:03 +09:00
parser fix: Fix parser panicking on invalid asm options 2024-09-05 17:07:10 +02:00
paths Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true 2024-08-06 00:26:42 +02:00
proc-macro-api Properly set the working directory for proc-macro execution 2024-09-11 12:23:12 +02:00
proc-macro-srv fix: Fix TokenStream::to_string implementation dropping quotation marks 2024-08-29 08:45:35 +02:00
proc-macro-srv-cli Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true 2024-08-06 00:26:42 +02:00
profile Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true 2024-08-06 00:26:42 +02:00
project-model Remove crate graph deduplication logic 2024-09-11 11:38:42 +02:00
rust-analyzer Auto merge of #18105 - Veykril:push-rquxwznuuwpu, r=Veykril 2024-09-12 06:06:14 +00:00
salsa Drop Apache license appendices 2024-08-27 14:52:34 +03:00
span chore: fix some comments 2024-09-02 18:33:23 +08:00
stdx Use crossbeam-channel from the workspace 2024-08-09 23:48:03 +02:00
syntax Auto merge of #18099 - ChayimFriedman2:diag-only-necessary, r=Veykril 2024-09-12 12:39:27 +00:00
syntax-bridge internal: Lay basic ground work for standalone mbe tests 2024-09-01 12:42:44 +02:00
test-fixture Always cache macro expansions' root node in Semantics 2024-09-17 00:19:39 +03:00
test-utils fix: Always explicitly set trait ref self types when lowering 2024-09-06 14:06:41 +02:00
text-edit Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true 2024-08-06 00:26:42 +02:00
toolchain Replace [package.repository] = "…" of published crates with [package.repository.workspace] = true 2024-08-06 00:26:42 +02:00
tt fix: Fix TokenStream::to_string implementation dropping quotation marks 2024-08-29 08:45:35 +02:00
vfs internal: Lay basic ground work for standalone mbe tests 2024-09-01 12:42:44 +02:00
vfs-notify Auto merge of #17843 - mo8it:flycheck, r=Veykril 2024-08-12 09:27:47 +00:00