about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-01-18 10:34:17 +0100
committerGitHub <noreply@github.com>2024-01-18 10:34:17 +0100
commitc3e237c3acb3f344d135b9ad20a1849ab0d34134 (patch)
tree64f8208f5a94e1879d419e36e7070bd18dfda157 /compiler/rustc_codegen_llvm/src/errors.rs
parentff8c7a7816fa1ca3507bf708efece6222b7b48b0 (diff)
parent6a573cbc60af8319e11cf0f0a578f8a12caa932d (diff)
downloadrust-c3e237c3acb3f344d135b9ad20a1849ab0d34134.tar.gz
rust-c3e237c3acb3f344d135b9ad20a1849ab0d34134.zip
Rollup merge of #119833 - celinval:smir-accept-closures, r=oli-obk
Make tcx optional from StableMIR run macro and extend it to accept closures

Change `run` macro to avoid sometimes unnecessary dependency on `TyCtxt`, and introduce `run_with_tcx` to capture use cases where `tcx` is required. Additionally, extend both macros to accept closures that may capture variables.

I've also modified the `internal()` method to make it safer, by accepting the type context to force the `'tcx` lifetime to match the context lifetime.

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 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions