rust/crates
bors 3dfd4c1f4c Auto merge of #16915 - 6d7a:master, r=HKalbasi
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-24 15:05:14 +00:00
..
base-db Rename ProcMacroKind::FuncLike to Bang 2024-03-22 11:20:56 +01:00
cfg Review Updates and added tests. 2024-03-11 11:05:59 -04:00
flycheck internal: Enforce utf8 paths 2024-03-19 15:39:00 +01:00
hir Rename ProcMacroKind::FuncLike to Bang 2024-03-22 11:20:56 +01:00
hir-def Rename ProcMacroKind::FuncLike to Bang 2024-03-22 11:20:56 +01:00
hir-expand Rename ProcMacroKind::FuncLike to Bang 2024-03-22 11:20:56 +01:00
hir-ty fix: Check stack depth to prevent stack overflows in create_memory_map 2024-03-24 10:19:25 +01:00
ide Rename ProcMacroKind::FuncLike to Bang 2024-03-22 11:20:56 +01:00
ide-assists fix: typo 2024-03-15 21:14:17 +08:00
ide-completion Keep the span for Attr::Literal 2024-03-21 10:28:25 +01:00
ide-db Split SymbolKind::Function into Function and Method 2024-03-17 11:07:22 +01:00
ide-diagnostics Make use of ThinArc in RawAttrs 2024-03-21 11:49:09 +01:00
ide-ssr internal: Improve rooted upmapping 2024-03-12 13:46:58 +01:00
intern
limit
load-cargo Rename ProcMacroKind::FuncLike to Bang 2024-03-22 11:20:56 +01:00
mbe internal: Remove span trait 2024-03-21 20:08:30 +01:00
parser fix: Improve error recovery for match arms 2024-03-19 10:55:47 +01:00
paths fix: Don't assert paths being utf8 when filtering them in the watcher 2024-03-22 08:04:50 +01:00
proc-macro-api fix: Rename func_like to FuncLike 2024-03-22 23:03:44 +01:00
proc-macro-srv Rename ProcMacroKind::FuncLike to Bang 2024-03-22 11:20:56 +01:00
proc-macro-srv-cli
profile Merge commit '574e23ec508064613783cba3d1833a95fd9a5080' into sync-from-ra 2024-03-10 08:47:38 +02:00
project-model Rename ProcMacroKind::FuncLike to Bang 2024-03-22 11:20:56 +01:00
rust-analyzer Rename ProcMacroKind::FuncLike to Bang 2024-03-22 11:20:56 +01:00
salsa Merge commit '574e23ec508064613783cba3d1833a95fd9a5080' into sync-from-ra 2024-03-10 08:47:38 +02:00
sourcegen
span Move Edition into span crate 2024-03-21 10:21:44 +01:00
stdx Remove dead test code 2024-03-14 16:24:51 +01:00
syntax internal: Move grammar codegen into xtask 2024-03-19 10:57:53 +01:00
test-fixture Rename ProcMacroKind::FuncLike to Bang 2024-03-22 11:20:56 +01:00
test-utils
text-edit
toolchain internal: Enforce utf8 paths 2024-03-19 15:39:00 +01:00
tt internal: Remove span trait 2024-03-21 20:08:30 +01:00
vfs fix: Some file watching related vfs fixes 2024-03-21 21:22:19 +01:00
vfs-notify fix: Don't assert paths being utf8 when filtering them in the watcher 2024-03-22 08:04:50 +01:00