Files
rust/library/core/src
Matthias Krüger c4d0c08925 Rollup merge of #126956 - joboet:fmt_no_extern_ty, r=RalfJung
core: avoid `extern type`s in formatting infrastructure

```@RalfJung``` [said](https://rust-lang.zulipchat.com/#narrow/stream/219381-t-libs/topic/Use.20of.20.60extern.20type.60.20in.20formatting.20machinery/near/446552837):

>How attached are y'all to using `extern type` in the formatting machinery?
Seems like this was introduced a [long time ago](34ef8f5441). However, it's also [not really compatible with Stacked Borrows](https://github.com/rust-lang/unsafe-code-guidelines/issues/256), and only works currently because we effectively treat references-to-extern-type almost like raw pointers in Stacked Borrows -- which of course is unsound, it's not how LLVM works. I was planning to make Miri emit a warning when this happens to avoid cases like [this](https://github.com/rust-lang/rust/issues/126814#issuecomment-2183816373) where people use extern type specifically to silence Miri without realizing what happens. but with the formatting machinery using  extern type, this warning would just show up everywhere...
>
> The "proper" way to do this in Stacked Borrows is to use raw pointers (or `NonNull`).

This PR does just that.

r? ```@RalfJung```
2024-06-28 08:34:08 +02:00
..
2024-02-13 12:04:44 +01:00
2024-06-11 16:52:02 +02:00
2024-05-09 17:04:30 +02:00
2024-05-04 22:56:35 +01:00
2024-06-24 20:40:33 -07:00
2024-06-27 12:16:46 +02:00
2024-03-29 17:10:17 +01:00
2024-06-11 16:52:02 +02:00
2024-03-29 10:10:52 -07:00
2024-03-07 07:49:22 +01:00
2024-05-09 17:04:30 +02:00
2024-06-11 16:52:02 +02:00
2024-06-22 08:08:00 -07:00
2024-06-11 15:47:00 +02:00
2024-06-16 06:31:37 +08:00
2024-06-24 03:03:34 +08:00
2024-06-19 21:44:47 +01:00
2024-04-08 11:57:17 +00:00
2024-06-07 12:18:43 -07:00
2024-06-11 16:52:02 +02:00