rust/tests
bors 41ff460889 Auto merge of #127003 - GrigorenkoPV:107975, r=SparrowLii
Add a test for #107975

The int is zero. But also not zero. This is so much fun.

This is a part of #105107.

Initially I was going to just rebase #108445, but quite a few things changed since then:
* The [mcve](https://github.com/rust-lang/rust/issues/105787#issuecomment-1750112388) used for #105787 got fixed.[^upd2]
* You can't just `a ?= b` for #107975 anymore. Now you have to `a-b ?= 0`. This is what this PR does. As an additional flex, it show that three ways of converting a pointer to its address have this issue:
  1. `as usize`
  2. `.expose_provenance()`
  3. `.addr()`
* #108425 simply got fixed. Yay.

As an aside, the naming for `addr_of!` is quite unfortunate in context of provenance APIs. Because `addr_of!` gives you a pointer, but what provenance APIs refer to as "address" is the `usize` value. Oh well.

UPD1: GitHub is incapable of parsing #107975 in the PR name, so let's add it here.

[^upd2]: UPD2: [The other mcve](https://github.com/rust-lang/rust/issues/105787#issue-1500501670) does not work anymore either, saying "this behavior recently changed as a result of a bug fix; see rust-lang/rust#56105 for details."
2024-07-20 06:05:18 +00:00
..
assembly Auto merge of #123351 - beetrees:x86-ret-snan-rust, r=nikic,workingjubilee 2024-07-12 20:36:43 +00:00
auxiliary
codegen Use Option's discriminant as its size hint 2024-07-15 00:34:03 -07:00
codegen-units Avoid MIR bloat in inlining 2024-07-01 05:17:13 -07:00
coverage Bless coverage. 2024-07-13 12:02:12 +00:00
coverage-run-rustdoc coverage: Extract hole spans from HIR instead of MIR 2024-07-08 21:22:56 +10:00
crashes Auto merge of #125915 - camelid:const-arg-refactor, r=BoxyUwU 2024-07-19 08:44:51 +00:00
debuginfo Add Natvis visualiser and debuginfo tests for f16 2024-07-09 03:47:50 +01:00
incremental
mir-opt Rollup merge of #127337 - celinval:intrinsics-fallback, r=oli-obk 2024-07-17 16:22:28 +02:00
pretty Mark format! with must_use hint 2024-07-06 14:24:20 +02:00
run-make Auto merge of #127969 - matthiaskrgr:rollup-nhxmwhn, r=matthiaskrgr 2024-07-19 16:13:37 +00:00
run-pass-valgrind
rustdoc Rollup merge of #127671 - notriddle:notriddle/issue-d, r=Mark-Simulacrum 2024-07-13 20:19:48 -07:00
rustdoc-gui Rollup merge of #127932 - notriddle:notriddle/current, r=GuillaumeGomez 2024-07-19 10:48:06 +02:00
rustdoc-js
rustdoc-js-std
rustdoc-json Update all rustdoc-json/ tests to use the new style 2024-07-19 16:54:42 +02:00
rustdoc-ui Rollup merge of #127878 - estebank:assoc-item-removal, r=fmease 2024-07-18 08:09:01 +02:00
ui Auto merge of #127003 - GrigorenkoPV:107975, r=SparrowLii 2024-07-20 06:05:18 +00:00
ui-fulldeps Auto merge of #125915 - camelid:const-arg-refactor, r=BoxyUwU 2024-07-19 08:44:51 +00:00
COMPILER_TESTS.md