rust/src
Matthias Krüger 52c365b731
Rollup merge of #128687 - RalfJung:interpret-call-refactor, r=WaffleLapkin
interpret: refactor function call handling to be better-abstracted

Add a new function `init_stack_frame` that pushes a stack frame and passes the arguments, and use that basically everywhere that the raw underlying `push_stack_frame` used to be called. This splits the previous monster function `eval_fn_call` into two parts: figuring out the MIR to call and the arguments to pass, and then actually setting up the stack frame.

Also re-organize the files a bit:
- The previous `terminator.rs` is split into a new `call.rs` with all the argument-passing logic, and the rest goes into `step.rs` where the other main dispatcher functions already live (in particular, `eval_statement`).
- All the stack frame handling from `eval_context.rs` is moved to a new `stack.rs`.
2024-08-07 00:34:13 +02:00
..
bootstrap Rollup merge of #128686 - onur-ozkan:unnecessary-type-cast, r=Kobzol 2024-08-05 18:36:03 +02:00
ci Promote riscv64gc-unknown-linux-musl to tier 2 2024-08-03 23:26:10 +01:00
doc Add platform support document for riscv64gc-unknown-linux-musl 2024-08-03 23:26:10 +01:00
etc Rewrite test-float-parse in Rust 2024-07-20 11:39:34 -05:00
librustdoc Rollup merge of #128385 - its-the-shrimp:fix_114039, r=aDotInTheVoid 2024-08-05 18:36:01 +02:00
llvm-project@57ae1a3474 Update to LLVM 19 2024-07-30 10:22:48 +02:00
rustdoc-json-types rustdoc: Remove OpaqueTy 2024-08-01 15:57:45 +00:00
tools Rollup merge of #128687 - RalfJung:interpret-call-refactor, r=WaffleLapkin 2024-08-07 00:34:13 +02:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0 Bump src/stage0 with determinism 2024-07-30 15:16:35 -07:00
version Bump to 1.82 2024-07-20 10:30:39 -04:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.