We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a32ee7 commit 0d6cd23Copy full SHA for 0d6cd23
crates/cust/src/memory/device/device_buffer.rs
@@ -5,7 +5,7 @@ use crate::memory::{cuda_free_async, DevicePointer};
5
use crate::memory::{cuda_malloc_async, DeviceCopy};
6
use crate::stream::Stream;
7
use crate::sys as cuda;
8
-#[cfg_attr(docsrs, doc(cfg(feature = "bytemuck")))]
+#[cfg(feature = "bytemuck")]
9
pub use bytemuck;
10
#[cfg(feature = "bytemuck")]
11
use bytemuck::{Pod, PodCastError, Zeroable};
@@ -282,6 +282,7 @@ impl<T: DeviceCopy + Zeroable> DeviceBuffer<T> {
282
}
283
284
285
286
fn casting_went_wrong(src: &str, err: PodCastError) -> ! {
287
panic!("{}>{:?}", src, err);
288
0 commit comments