Commit 82e4c7c
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 2d3d7df commit 82e4c7c
File tree
4 files changed
+919
-964
lines changed- compiler/rustc_smir/src/rustc_smir
- context
4 files changed
+919
-964
lines changed
0 commit comments