Copied host buffers: BaseBytes::read_plain only under the device test cfgs, which alone use it

This commit is contained in:
Anees Iqbal committed 2026-11-11 15:32:25 -08:00
1 parent b605b78f54
commit 93f72260df
1 file changed
+2 -2
+2 -2
View File
@@ -789,12 +789,12 @@ impl BaseBytes {
}
/// [`BaseBytes::read`] with plain loads, whatever the memory: a benchmark's measure of the
/// streaming loads against them.
/// streaming loads against them (`tests/copied_base_device.rs`).
///
/// # Safety
///
/// As [`BaseBytes::read`]'s.
#[cfg(test)]
#[cfg(all(test, any(m2v_gpu, m2v_cpu_icd)))]
pub(crate) unsafe fn read_plain(&self, offset: usize, into: &mut [u8]) {
// SAFETY: the caller's; `into` is the caller's own, apart.
unsafe {