about summary refs log tree commit diff
path: root/tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
diff options
context:
space:
mode:
authorMakai <m4kai410@gmail.com>2025-05-05 15:31:34 +0800
committerMakai <m4kai410@gmail.com>2025-07-04 01:33:17 +0000
commit0f6f68313d6d1b503c695bddd2f41dc09f6c1058 (patch)
treebbbf98cc0a4de2805e2aa21c090e81db6989036b /tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs
parent3b328e111a8b4fc67e7c4e7b39f45b89231d1487 (diff)
downloadrust-0f6f68313d6d1b503c695bddd2f41dc09f6c1058.tar.gz
rust-0f6f68313d6d1b503c695bddd2f41dc09f6c1058.zip
refactor: rewrite the whole `rustc_smir::context`
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`.
Diffstat (limited to 'tests/codegen/patchable-function-entry/patchable-function-entry-no-flag.rs')
0 files changed, 0 insertions, 0 deletions