diff options
| author | Jacob Pratt <jacob@jhpratt.dev> | 2024-04-26 19:25:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-26 19:25:57 -0400 |
| commit | 7cbba53396610b7f0d98b6bacb6ee03838077e5d (patch) | |
| tree | c175dea9a0ae688f57fcca0aa134002740de9589 /tests/rustdoc-ui/coverage/enum-tuple.rs | |
| parent | 7cb7337c1b59c5cbb9f09d3175736f5051f4b5bf (diff) | |
| parent | c47978a241ac1dd512b2ed7d146c1e1a71326dec (diff) | |
| download | rust-7cbba53396610b7f0d98b6bacb6ee03838077e5d.tar.gz rust-7cbba53396610b7f0d98b6bacb6ee03838077e5d.zip | |
Rollup merge of #124410 - RalfJung:path-buf-transmute, r=Nilstrieb
PathBuf: replace transmuting by accessor functions The existing `repr(transparent)` was anyway insufficient as `OsString` was not `repr(transparent)`. And furthermore, on Windows it was blatantly wrong as `OsString` wraps `Wtf8Buf` which is a `repr(Rust)` type with 2 fields: https://github.com/rust-lang/rust/blob/51a7396ad3d78d9326ee1537b9ff29ab3919556f/library/std/src/sys_common/wtf8.rs#L131-L146 So let's just be honest about what happens and add accessor methods that make this abstraction-breaking act of PathBuf visible on the APIs that it pierces through. Fixes https://github.com/rust-lang/rust/issues/124409
Diffstat (limited to 'tests/rustdoc-ui/coverage/enum-tuple.rs')
0 files changed, 0 insertions, 0 deletions
