diff options
| author | bors <bors@rust-lang.org> | 2019-08-11 19:19:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-08-11 19:19:33 +0000 |
| commit | 00ee1b47f42129a0a6e33510578fbcf07c1e5382 (patch) | |
| tree | a0e1a3e4c92814f3487c1df5d13af152f1d496dc /src/libstd/sys_common | |
| parent | 8a068699a24de306334a1f66b9a83552766d853c (diff) | |
| parent | 4229dc3538bbf473ab142fd708bc3ebbebb7bc1f (diff) | |
| download | rust-00ee1b47f42129a0a6e33510578fbcf07c1e5382.tar.gz rust-00ee1b47f42129a0a6e33510578fbcf07c1e5382.zip | |
Auto merge of #63471 - Mark-Simulacrum:rollup-m756lnx, r=Mark-Simulacrum
Rollup of 8 pull requests Successful merges: - #61969 (Add #[repr(transparent)] for several types) - #63346 (Lint on some incorrect uses of mem::zeroed / mem::uninitialized) - #63433 (Miri shouldn't look at types) - #63440 (rename RUST_CTFE_BACKTRACE to RUSTC_CTFE_BACKTRACE) - #63441 (Derive Debug for CrateInfo) - #63442 (Add an example to show how to insert item to a sorted vec) - #63453 (rustdoc: general cleanup) - #63464 (Copy ty::Instance instead of passing by reference) Failed merges: r? @ghost
Diffstat (limited to 'src/libstd/sys_common')
| -rw-r--r-- | src/libstd/sys_common/os_str_bytes.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstd/sys_common/os_str_bytes.rs b/src/libstd/sys_common/os_str_bytes.rs index a4961974d89..d734f412bf8 100644 --- a/src/libstd/sys_common/os_str_bytes.rs +++ b/src/libstd/sys_common/os_str_bytes.rs @@ -18,6 +18,12 @@ pub(crate) struct Buf { pub inner: Vec<u8> } +// FIXME: +// `Buf::as_slice` current implementation relies +// on `Slice` being layout-compatible with `[u8]`. +// When attribute privacy is implemented, `Slice` should be annotated as `#[repr(transparent)]`. +// Anyway, `Slice` representation and layout are considered implementation detail, are +// not documented and must not be relied upon. pub(crate) struct Slice { pub inner: [u8] } |
