about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-29 20:50:03 +0100
committerGitHub <noreply@github.com>2024-02-29 20:50:03 +0100
commit419f7aeed60c7f9204ec123ddf508206f37fc89d (patch)
tree8622f8e1914a2bffaa50a25531da4e21603f9a42 /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent509972089b1365fefc6fe0512b3cc0f9d661adc5 (diff)
parent23ab1bda92b127b18f32fe7593298842fd25e05b (diff)
downloadrust-419f7aeed60c7f9204ec123ddf508206f37fc89d.tar.gz
rust-419f7aeed60c7f9204ec123ddf508206f37fc89d.zip
Rollup merge of #121681 - jswrenn:nix-visibility-analysis, r=compiler-errors
Safe Transmute: Revise safety analysis

This PR migrates `BikeshedIntrinsicFrom` to a simplified safety analysis (described [here](https://github.com/rust-lang/project-safe-transmute/issues/15)) that does not rely on analyzing the visibility of types and fields.

The revised analysis treats primitive types as safe, and user-defined types as potentially carrying safety invariants. If Rust gains explicit (un)safe fields, this PR is structured so that it will be fairly easy to thread support for those annotations into the analysis.

Notably, this PR removes the `Context` type parameter from `BikeshedIntrinsicFrom`. Most of the files changed by this PR are just UI tests tweaked to accommodate the removed parameter.

r? `@compiler-errors`
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions