diff options
| author | bors <bors@rust-lang.org> | 2019-09-02 22:07:40 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-09-02 22:07:40 +0000 |
| commit | b50520835f3b14409797139eca23f401a529e711 (patch) | |
| tree | bd72135671484fb70071b740c444396fa072682c /src/rustllvm/RustWrapper.cpp | |
| parent | 9af17757be1cc3f672928ecf06c40a662c5ec26d (diff) | |
| parent | f3c435eb780dec5c1d390a3b43cdfb4f1528d70d (diff) | |
| download | rust-b50520835f3b14409797139eca23f401a529e711.tar.gz rust-b50520835f3b14409797139eca23f401a529e711.zip | |
Auto merge of #63561 - HeroicKatora:alloc-private-bytes, r=oli-obk
Make Allocation::bytes private Fixes #62931. Direct immutable access to the bytes is still possible but redirected through the new method `raw_bytes_with_undef_and_ptr`, similar to `get_bytes_with_undef_and_ptr` but without requiring an interpretation context and not doing *any* relocation or bounds checks. The `size` of the allocation is stored separately which makes access as `Size` and `usize` more ergonomic. cc: @RalfJung
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
