Skip to content

Commit 3528115

Browse files
CoAlloc: Vec + related: cleanup. Now library/alloc compiles, but std/ does NOT.
1 parent bb72710 commit 3528115

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

library/alloc/src/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ where
136136
T: Copy,
137137
B: AsRef<[T]> + ?Sized,
138138
S: Borrow<B>,
139-
[(); alloc::co_alloc_metadata_num_slots_with_preference_global(COOP_PREFERRED)]:,
139+
[(); alloc::co_alloc_metadata_num_slots_with_preference::<Global>(COOP_PREFERRED)]:,
140140
{
141141
let sep_len = sep.len();
142142
let mut iter = slice.iter();

library/std/src/ffi/os_str.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#[cfg(test)]
22
mod tests;
33

4-
use crate::alloc::Global;
54
use crate::borrow::{Borrow, Cow};
65
use crate::cmp;
76
use crate::collections::TryReserveError;

0 commit comments

Comments
 (0)