Add an intrinsic for `ptr::metadata` The follow-up to #123840, so we can remove `PtrComponents` and `PtrRepr` from libcore entirely (well, after a bootstrap update). As discussed in <https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/.60ptr_metadata.60.20in.20MIR/near/435637808>, this introduces `UnOp::PtrMetadata` taking a raw pointer and returning the associated metadata value. By no longer going through a `union`, this should also help future PRs better optimize pointer operations. r? ``@oli-obk`` |
||
|---|---|---|
| .. | ||
| analyze.rs | ||
| block.rs | ||
| constant.rs | ||
| coverageinfo.rs | ||
| debuginfo.rs | ||
| intrinsic.rs | ||
| locals.rs | ||
| mod.rs | ||
| operand.rs | ||
| place.rs | ||
| rvalue.rs | ||
| statement.rs | ||