rust-analyzer/crates/hir-ty
6d7a 7c1be82cd9 fix: Prevent stack overflow in recursive const types
In the evaluation of const values of recursive types
certain declarations could cause an endless call-loop
within the interpreter (hir-ty’s create_memory_map),
which would lead to a stack overflow.
This commit adds a check that prevents values that contain
an address in their value (such as TyKind::Ref) from being
allocated at the address they contain.
The commit also adds a test for this edge case.
2024-03-21 22:57:21 +01:00
..
src fix: Prevent stack overflow in recursive const types 2024-03-21 22:57:21 +01:00
Cargo.toml Move Edition into span crate 2024-03-21 10:21:44 +01:00