]> git.lizzy.rs Git - rust.git/commit
Use escaped byte string representation for CString Debug
authorUlrik Sverdrup <bluss@users.noreply.github.com>
Sat, 11 Jul 2015 20:55:52 +0000 (22:55 +0200)
committerUlrik Sverdrup <bluss@users.noreply.github.com>
Sat, 11 Jul 2015 20:55:52 +0000 (22:55 +0200)
commit92c8a9439b82f56aabb2f42e485e8683e663aaff
treebabcfb6aabaf930c6be618e321b7595cf8450814
parent1b28ffa5216c845d1cef6b0cb3e5ac7db12025d0
Use escaped byte string representation for CString Debug

Faithfully represent the contents of the CString and CStr in their Debug
impl, by treating them as byte strings with our default escaping to
ascii representation.

Add impl Debug for Cstr.

Fixes #26964.
src/libstd/ffi/c_str.rs