We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c14e14e commit cab6d46Copy full SHA for cab6d46
src/librustpkg/util.rs
@@ -9,7 +9,6 @@
9
// except according to those terms.
10
11
use std::{os, result};
12
-use std::c_str::ToCStr;
13
use rustc::driver::{driver, session};
14
use rustc::metadata::filesearch;
15
use extra::getopts::groups::getopts;
@@ -373,7 +372,9 @@ pub fn link_exe(_src: &Path, _dest: &Path) -> bool {
373
372
#[cfg(target_os = "freebsd")]
374
#[cfg(target_os = "macos")]
375
pub fn link_exe(src: &Path, dest: &Path) -> bool {
+ use std::c_str::ToCStr;
376
use std::libc;
377
+
378
unsafe {
379
do src.to_c_str().with_ref |src_buf| {
380
do dest.to_c_str().with_ref |dest_buf| {
0 commit comments