Michael Goulet 3013cd83cc
Rollup merge of #133282 - tgross35:maybe-uninit-debug, r=Amanieu
Shorten the `MaybeUninit` `Debug` implementation

Currently the `Debug` implementation for `MaybeUninit` winds up being pretty verbose. This struct:

```rust
#[derive(Debug)]
pub struct Foo {
    pub a: u32,
    pub b: &'static str,
    pub c: MaybeUninit<u32>,
    pub d: MaybeUninit<String>,
}
```

Prints as:

    Foo {
        a: 0,
        b: "hello",
        c: core::mem::maybe_uninit::MaybeUninit<u32>,
        d: core::mem::maybe_uninit::MaybeUninit<alloc::string::String>,
    }

The goal is just to be a standin for content so the path prefix doesn't add any useful information. Change the implementation to trim `MaybeUninit`'s leading path, meaning the new result is now:

    Foo {
        a: 0,
        b: "hello",
        c: MaybeUninit<u32>,
        d: MaybeUninit<alloc::string::String>,
    }
2024-11-26 12:03:42 -05:00
..
2024-02-07 16:46:28 +01:00
2024-07-29 08:26:52 +10:00
2024-10-09 17:17:50 -04:00
2024-10-15 20:30:23 -07:00
2024-11-13 13:42:41 -06:00
2024-07-29 08:26:52 +10:00
2024-05-01 22:19:11 -04:00
2024-10-17 09:33:39 -04:00
2024-11-20 07:54:12 -05:00
2024-09-13 15:18:30 -03:00
2024-09-09 16:17:34 +02:00
2024-06-19 21:44:47 +01:00
2024-10-16 21:24:38 +01:00
2024-11-03 17:00:44 +01:00
2024-07-29 08:26:52 +10:00
2024-04-24 15:27:47 -07:00
2024-01-24 14:24:57 +01:00