diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2021-04-15 01:27:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-15 01:27:52 +0200 |
| commit | 80ee7cbb37424bf66a1d05a9028791ba1accb699 (patch) | |
| tree | 3ce1e500806636ccb3ef2a076a5fec00f5d7e4bb /compiler/rustc_llvm/llvm-wrapper/Linker.cpp | |
| parent | 16bf626a31cb5b121d0bca2baa969b4f67eb0dab (diff) | |
| parent | cac0dd63b3514569ce79480b0cdf92335c5cf9f4 (diff) | |
| download | rust-80ee7cbb37424bf66a1d05a9028791ba1accb699.tar.gz rust-80ee7cbb37424bf66a1d05a9028791ba1accb699.zip | |
Rollup merge of #82492 - CDirkx:sys_common_alloc, r=m-ou-se
Move `std::sys_common::alloc` to new module `std::sys::common` https://github.com/rust-lang/rust/blob/6b56603e35b39c9f6cc76782330e5e415f9e43d5/library/std/src/sys_common/mod.rs#L7-L13 It was my impression that the goal for `std::sys` has changed from extracting it into a separate crate to making std work with features. However the fact remains that there is a lot of interdependence between `sys` and `sys_common`, this is because `sys_common` contains two types of code: - abstractions over the different platform implementations in `std::sys` (for example [`std::sys_common::mutex`](https://github.com/rust-lang/rust/blob/master/library/std/src/sys_common/mutex.rs)) - code shared between platforms (for example [`std::sys_common::alloc`](https://github.com/rust-lang/rust/blob/master/library/std/src/sys_common/alloc.rs)) This PR attempts to address this by adding a new module `common` to `std::sys` which will contain code shared between platforms, `alloc.rs` in this case but more can be moved over in the future.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/Linker.cpp')
0 files changed, 0 insertions, 0 deletions
