about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/Linker.cpp
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2021-04-15 01:27:52 +0200
committerGitHub <noreply@github.com>2021-04-15 01:27:52 +0200
commit80ee7cbb37424bf66a1d05a9028791ba1accb699 (patch)
tree3ce1e500806636ccb3ef2a076a5fec00f5d7e4bb /compiler/rustc_llvm/llvm-wrapper/Linker.cpp
parent16bf626a31cb5b121d0bca2baa969b4f67eb0dab (diff)
parentcac0dd63b3514569ce79480b0cdf92335c5cf9f4 (diff)
downloadrust-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