Commit 85ea492
committed
refactor: rewrite the whole
This commit removes the `Tables` field from `SmirCtxt`, since borrows of `tables` should only be managed by `SmirInterface`.
This change prevents `SmirCtxt` from holding separate borrows and requires passing `tables` explicitly when needed.
We use the `traits.rs` file to define traits that are used for encapsulating the associated functions in the rustc's internals. This is much easier to use and maintain than directly cramming everything into `SmirCtxt`.rustc_smir::context
1 parent 133460c commit 85ea492
File tree
4 files changed
+901
-996
lines changed- compiler/rustc_smir/src/rustc_smir
- context
4 files changed
+901
-996
lines changed
0 commit comments