diff options
| author | bors <bors@rust-lang.org> | 2013-08-09 21:56:17 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-08-09 21:56:17 -0700 |
| commit | 60f5011005eda4f08f0c36fe56e4df07ae9a903f (patch) | |
| tree | 4f3636735525b80b6aa3c6fc37b88a5f9057548c /src/libstd/std.rs | |
| parent | e81e81f234731a31fad9afdc2045bef3fbdf1109 (diff) | |
| parent | ee59aacac490edd619db1c4e2fcd848f793bc3b9 (diff) | |
| download | rust-60f5011005eda4f08f0c36fe56e4df07ae9a903f.tar.gz rust-60f5011005eda4f08f0c36fe56e4df07ae9a903f.zip | |
auto merge of #8296 : erickt/rust/remove-str-trailing-nulls, r=erickt
This PR fixes #7235 and #3371, which removes trailing nulls from `str` types. Instead, it replaces the creation of c strings with a new type, `std::c_str::CString`, which wraps a malloced byte array, and respects: * No interior nulls * Ends with a trailing null
Diffstat (limited to 'src/libstd/std.rs')
| -rw-r--r-- | src/libstd/std.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstd/std.rs b/src/libstd/std.rs index f6946d1e924..aa0bb905e9a 100644 --- a/src/libstd/std.rs +++ b/src/libstd/std.rs @@ -170,6 +170,7 @@ pub mod local_data; /* Runtime and platform support */ pub mod libc; +pub mod c_str; pub mod os; pub mod path; pub mod rand; |
