about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorMakai <m4kai410@gmail.com>2025-06-09 08:13:27 +0000
committerMakai <m4kai410@gmail.com>2025-07-04 01:57:38 +0000
commitefa26e1d64c374fa9960e5bf8709937fc251816b (patch)
treeda58b00d3661f13f84df5fcd1282b22f05527212 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parentb5a2e7d08057bc04c823ab1611e60cccb2d2cce4 (diff)
downloadrust-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_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions