diff options
| author | Celina G. Val <celinval@amazon.com> | 2024-01-10 11:46:17 -0800 |
|---|---|---|
| committer | Celina G. Val <celinval@amazon.com> | 2024-01-16 11:17:51 -0800 |
| commit | f91ccf9ace393a681922b145e56e7e3fb0041657 (patch) | |
| tree | 3e7468f9fb7af60b092507cf3fd8f16755bf11d6 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs | |
| parent | bf2637f4e89aab364d7ab28deb09820363bef86d (diff) | |
| download | rust-f91ccf9ace393a681922b145e56e7e3fb0041657.tar.gz rust-f91ccf9ace393a681922b145e56e7e3fb0041657.zip | |
Remove tcx from SMIR run macro and accept closures
Simplify the `run` macro to avoid sometimes unnecessary dependency on `TyCtxt`. Instead, users can use the new internal method `tcx()`. Additionally, extend the macro to accept closures that may capture variables. These are non-backward compatible changes, but they only affect internal APIs which are provided today as helper functions until we have a stable API to start the compiler.
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions
