Skip to content

Commit

Permalink
Correctly import core::ffi::c_void
Browse files Browse the repository at this point in the history
  • Loading branch information
denzp authored and gnzlbg committed Feb 27, 2019
1 parent fb33e66 commit 8319afe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/core_arch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ mod core_arch;
pub use self::core_arch::arch::*;

#[allow(unused_imports)]
use core::{intrinsics, marker, mem, ptr, sync};
use core::{ffi, intrinsics, marker, mem, ptr, sync};
2 changes: 1 addition & 1 deletion crates/core_arch/src/nvptx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//! [llvm_docs]:
//! https://llvm.org/docs/NVPTXUsage.html
use core::ffi::c_void;
use crate::ffi::c_void;

#[allow(improper_ctypes)]
extern "C" {
Expand Down

0 comments on commit 8319afe

Please sign in to comment.