diff options
| author | Makai <m4kai410@gmail.com> | 2025-06-09 08:13:27 +0000 |
|---|---|---|
| committer | Makai <m4kai410@gmail.com> | 2025-07-04 01:57:38 +0000 |
| commit | efa26e1d64c374fa9960e5bf8709937fc251816b (patch) | |
| tree | da58b00d3661f13f84df5fcd1282b22f05527212 /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | b5a2e7d08057bc04c823ab1611e60cccb2d2cce4 (diff) | |
| download | rust-efa26e1d64c374fa9960e5bf8709937fc251816b.tar.gz rust-efa26e1d64c374fa9960e5bf8709937fc251816b.zip | |
fix: resolve the unsoundness
add a new trait `InternalCx`, which defines the methods that are fine to call from `RustcInternal`. `RustcInternal::internal()` then takes a `impl InternalCx<'tcx>` instead of `TyCtxt<'tcx>`. make `tcx` in `SmirCtxt` public, since we need to pass it to `RustcInternal::internal()` in `SmirInterface`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
