about summary refs log tree commit diff
path: root/library/std/src/sys_common/mod.rs
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-20 17:56:46 +0200
committerGitHub <noreply@github.com>2021-05-20 17:56:46 +0200
commit0d3bee8be03e58cfe0295a775961a4daa2ea2fd1 (patch)
tree7bbf034849d62e31e35417daabc14711e74bff02 /library/std/src/sys_common/mod.rs
parent8a57820bca64a252489790a57cb5ea23db6f9198 (diff)
parent5353c5c3fb7ebc4fb12ca3488c555ee3006c8325 (diff)
downloadrust-0d3bee8be03e58cfe0295a775961a4daa2ea2fd1.tar.gz
rust-0d3bee8be03e58cfe0295a775961a4daa2ea2fd1.zip
Rollup merge of #85275 - CDirkx:memchr, r=m-ou-se
Move `std::memchr` to `sys_common`

`std::memchr` is a thin abstraction over the different `memchr` implementations in `sys`, along with documentation and tests. The module is only used internally by `std`, nothing is exported externally. Code like this is exactly what the `sys_common` module is for, so this PR moves it there.
Diffstat (limited to 'library/std/src/sys_common/mod.rs')
-rw-r--r--library/std/src/sys_common/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sys_common/mod.rs b/library/std/src/sys_common/mod.rs
index 4ef0e72adf0..1a9caa22c92 100644
--- a/library/std/src/sys_common/mod.rs
+++ b/library/std/src/sys_common/mod.rs
@@ -25,6 +25,7 @@ pub mod bytestring;
 pub mod condvar;
 pub mod fs;
 pub mod io;
+pub mod memchr;
 pub mod mutex;
 // `doc` is required because `sys/mod.rs` imports `unix/ext/mod.rs` on Windows
 // when generating documentation.