Skip to content

Commit 04e7b61

Browse files
CoAlloc: Vec (NOT String): Working around ICE rust-lang/rust issue rust-lang#106473 ICE. WIP
1 parent 30f2fdb commit 04e7b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/ffi/c_str.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ impl fmt::Debug for CString {
723723
}
724724

725725
#[stable(feature = "cstring_into", since = "1.7.0")]
726-
impl From<CString> for Vec<u8> {
726+
impl From<CString> for Vec<u8, Global, DEFAULT_COOP_PREFERRED> {
727727
/// Converts a [`CString`] into a <code>[Vec]<[u8]></code>.
728728
///
729729
/// The conversion consumes the [`CString`], and removes the terminating NUL byte.

0 commit comments

Comments
 (0)