f1f7560598
make retagging work even with 'unstable' places This is based on top of https://github.com/rust-lang/rust/pull/105301. Only the last two commits are new. While investigating https://github.com/rust-lang/unsafe-code-guidelines/issues/381 I realized that we would have caught this issue much earlier if the add_retag pass wouldn't bail out on assignments of the form `*ptr = ...`. So this PR changes our retag strategy: - When a new reference is created via `Rvalue::Ref` (or a raw ptr via `Rvalue::AddressOf`), we do the retagging as part of just executing that address-taking operation. - For everything else, we still insert retags -- these retags basically serve to ensure that references stored in local variables (and their fields) are always freshly tagged, so skipping this for assignments like `*ptr = ...` is less egregious. r? ```@oli-obk``` |
||
---|---|---|
.. | ||
coverage | ||
inline | ||
abort_unwinding_calls.rs | ||
add_call_guards.rs | ||
add_moves_for_packed_drops.rs | ||
add_retag.rs | ||
check_const_item_mutation.rs | ||
check_packed_ref.rs | ||
check_unsafety.rs | ||
cleanup_post_borrowck.rs | ||
const_debuginfo.rs | ||
const_goto.rs | ||
const_prop_lint.rs | ||
const_prop.rs | ||
dataflow_const_prop.rs | ||
dead_store_elimination.rs | ||
deaggregator.rs | ||
deduce_param_attrs.rs | ||
deduplicate_blocks.rs | ||
deref_separator.rs | ||
dest_prop.rs | ||
dump_mir.rs | ||
early_otherwise_branch.rs | ||
elaborate_box_derefs.rs | ||
elaborate_drops.rs | ||
ffi_unwind_calls.rs | ||
function_item_references.rs | ||
generator.rs | ||
inline.rs | ||
instcombine.rs | ||
lib.rs | ||
lower_intrinsics.rs | ||
lower_slice_len.rs | ||
match_branches.rs | ||
multiple_return_terminators.rs | ||
normalize_array_len.rs | ||
nrvo.rs | ||
pass_manager.rs | ||
remove_false_edges.rs | ||
remove_noop_landing_pads.rs | ||
remove_storage_markers.rs | ||
remove_uninit_drops.rs | ||
remove_unneeded_drops.rs | ||
remove_zsts.rs | ||
required_consts.rs | ||
reveal_all.rs | ||
separate_const_switch.rs | ||
shim.rs | ||
simplify_branches.rs | ||
simplify_comparison_integral.rs | ||
simplify_try.rs | ||
simplify.rs | ||
sroa.rs | ||
uninhabited_enum_branching.rs | ||
unreachable_prop.rs |