Skip to content

Commit f454aab

Browse files
committed
Add missing use
1 parent 9f406ce commit f454aab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/rustc_codegen_llvm/src/llvm_util.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ use crate::{llvm, llvm_util};
33
use libc::c_int;
44
use rustc_codegen_ssa::target_features::supported_target_features;
55
use rustc_data_structures::fx::FxHashSet;
6+
use rustc_metadata::dynamic_lib::DynamicLibrary;
67
use rustc_middle::bug;
78
use rustc_session::config::PrintRequest;
89
use rustc_session::Session;
910
use rustc_span::symbol::Symbol;
1011
use rustc_target::spec::{MergeFunctions, PanicStrategy};
1112
use std::ffi::{CStr, CString};
13+
use tracing::debug;
1214

15+
use std::path::Path;
1316
use std::ptr;
1417
use std::slice;
1518
use std::str;
@@ -130,7 +133,7 @@ unsafe fn configure_llvm(sess: &Session) {
130133
llvm::LLVMInitializePasses();
131134

132135
for plugin in &sess.opts.debugging_opts.llvm_plugins {
133-
let path = path::Path::new(plugin);
136+
let path = Path::new(plugin);
134137
let res = DynamicLibrary::open(path);
135138
match res {
136139
Ok(_) => debug!("configure_llvm: {}", plugin),

0 commit comments

Comments
 (0)