From f44ec6439b31caa92ee394f65aae7d4a1a5341dd Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 16 Jun 2018 16:46:03 +0200 Subject: [PATCH] Undo unnecessary change --- src/librustc_codegen_llvm/base.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/librustc_codegen_llvm/base.rs b/src/librustc_codegen_llvm/base.rs index 53c70eb42ce..f9d84319433 100644 --- a/src/librustc_codegen_llvm/base.rs +++ b/src/librustc_codegen_llvm/base.rs @@ -93,6 +93,8 @@ use syntax::ast; use mir::operand::OperandValue; +use rustc_codegen_utils::check_for_rustc_errors_attr; + pub struct StatRecorder<'a, 'tcx: 'a> { cx: &'a CodegenCx<'a, 'tcx>, name: Option, @@ -714,7 +716,7 @@ pub fn codegen_crate<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, rx: mpsc::Receiver>) -> OngoingCodegen { - ::rustc_codegen_utils::check_for_rustc_errors_attr(tcx); + check_for_rustc_errors_attr(tcx); if let Some(true) = tcx.sess.opts.debugging_opts.thinlto { if unsafe { !llvm::LLVMRustThinLTOAvailable() } {