Always import all tracing macros for the entire crate instead of piecemeal by module
This commit is contained in:
parent
d3b22c7267
commit
ee3c835018
88 changed files with 76 additions and 119 deletions
|
@ -19,7 +19,6 @@ use rustc_target::asm::*;
|
|||
|
||||
use libc::{c_char, c_uint};
|
||||
use smallvec::SmallVec;
|
||||
use tracing::debug;
|
||||
|
||||
impl<'ll, 'tcx> AsmBuilderMethods<'tcx> for Builder<'_, 'll, 'tcx> {
|
||||
fn codegen_inline_asm(
|
||||
|
|
|
@ -190,10 +190,10 @@ impl ArchiveBuilderBuilder for LlvmArchiveBuilderBuilder {
|
|||
|
||||
let output_path_z = rustc_fs_util::path_to_c_string(&output_path);
|
||||
|
||||
tracing::trace!("invoking LLVMRustWriteImportLibrary");
|
||||
tracing::trace!(" dll_name {:#?}", dll_name_z);
|
||||
tracing::trace!(" output_path {}", output_path.display());
|
||||
tracing::trace!(
|
||||
trace!("invoking LLVMRustWriteImportLibrary");
|
||||
trace!(" dll_name {:#?}", dll_name_z);
|
||||
trace!(" output_path {}", output_path.display());
|
||||
trace!(
|
||||
" import names: {}",
|
||||
dll_imports
|
||||
.iter()
|
||||
|
|
|
@ -18,7 +18,6 @@ use rustc_middle::dep_graph::WorkProduct;
|
|||
use rustc_middle::middle::exported_symbols::{SymbolExportInfo, SymbolExportLevel};
|
||||
use rustc_session::cgu_reuse_tracker::CguReuse;
|
||||
use rustc_session::config::{self, CrateType, Lto};
|
||||
use tracing::{debug, info};
|
||||
|
||||
use std::ffi::{CStr, CString};
|
||||
use std::fs::File;
|
||||
|
|
|
@ -28,7 +28,6 @@ use rustc_session::Session;
|
|||
use rustc_span::symbol::sym;
|
||||
use rustc_span::InnerSpan;
|
||||
use rustc_target::spec::{CodeModel, RelocModel, SanitizerSet, SplitDebuginfo};
|
||||
use tracing::debug;
|
||||
|
||||
use libc::{c_char, c_int, c_uint, c_void, size_t};
|
||||
use std::ffi::CString;
|
||||
|
|
|
@ -27,7 +27,6 @@ use std::ffi::CStr;
|
|||
use std::iter;
|
||||
use std::ops::Deref;
|
||||
use std::ptr;
|
||||
use tracing::{debug, instrument};
|
||||
|
||||
// All Builders must have an llfn associated with them
|
||||
#[must_use]
|
||||
|
|
|
@ -11,7 +11,6 @@ use crate::context::CodegenCx;
|
|||
use crate::llvm;
|
||||
use crate::value::Value;
|
||||
use rustc_codegen_ssa::traits::*;
|
||||
use tracing::debug;
|
||||
|
||||
use rustc_middle::ty::layout::{FnAbiOf, HasTyCtxt};
|
||||
use rustc_middle::ty::{self, Instance, TypeVisitable};
|
||||
|
|
|
@ -21,7 +21,6 @@ use rustc_target::spec::Target;
|
|||
|
||||
use libc::{c_char, c_uint};
|
||||
use std::fmt::Write;
|
||||
use tracing::debug;
|
||||
|
||||
/*
|
||||
* A note on nomenclature of linking: "extern", "foreign", and "upcall".
|
||||
|
|
|
@ -23,7 +23,6 @@ use rustc_target::abi::{
|
|||
AddressSpace, Align, HasDataLayout, Primitive, Scalar, Size, WrappingRange,
|
||||
};
|
||||
use std::ops::Range;
|
||||
use tracing::debug;
|
||||
|
||||
pub fn const_alloc_to_llvm<'ll>(cx: &CodegenCx<'ll, '_>, alloc: ConstAllocation<'_>) -> &'ll Value {
|
||||
let alloc = alloc.inner();
|
||||
|
|
|
@ -16,8 +16,6 @@ use rustc_middle::ty::TyCtxt;
|
|||
|
||||
use std::ffi::CString;
|
||||
|
||||
use tracing::debug;
|
||||
|
||||
/// Generates and exports the Coverage Map.
|
||||
///
|
||||
/// Rust Coverage Map generation supports LLVM Coverage Mapping Format versions
|
||||
|
|
|
@ -28,7 +28,6 @@ use std::cell::RefCell;
|
|||
use std::ffi::CString;
|
||||
|
||||
use std::iter;
|
||||
use tracing::debug;
|
||||
|
||||
pub mod mapgen;
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ use smallvec::SmallVec;
|
|||
use std::cell::OnceCell;
|
||||
use std::cell::RefCell;
|
||||
use std::iter;
|
||||
use tracing::debug;
|
||||
|
||||
mod create_scope_map;
|
||||
pub mod gdb;
|
||||
|
|
|
@ -6,7 +6,7 @@ use super::CodegenUnitDebugContext;
|
|||
use rustc_hir::def_id::DefId;
|
||||
use rustc_middle::ty::layout::{HasParamEnv, LayoutOf};
|
||||
use rustc_middle::ty::{self, DefIdTree, Ty};
|
||||
use tracing::trace;
|
||||
use trace;
|
||||
|
||||
use crate::common::CodegenCx;
|
||||
use crate::llvm;
|
||||
|
|
|
@ -22,7 +22,6 @@ use rustc_codegen_ssa::traits::TypeMembershipMethods;
|
|||
use rustc_middle::ty::Ty;
|
||||
use rustc_symbol_mangling::typeid::typeid_for_fnabi;
|
||||
use smallvec::SmallVec;
|
||||
use tracing::debug;
|
||||
|
||||
/// Declare a function.
|
||||
///
|
||||
|
|
|
@ -15,7 +15,6 @@ use rustc_span::symbol::Symbol;
|
|||
use rustc_target::spec::{MergeFunctions, PanicStrategy};
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
use std::ffi::{CStr, CString};
|
||||
use tracing::debug;
|
||||
|
||||
use std::mem;
|
||||
use std::path::Path;
|
||||
|
|
|
@ -11,7 +11,6 @@ use rustc_middle::ty::layout::{FnAbiOf, LayoutOf};
|
|||
use rustc_middle::ty::{self, Instance, TypeVisitable};
|
||||
use rustc_session::config::CrateType;
|
||||
use rustc_target::spec::RelocModel;
|
||||
use tracing::debug;
|
||||
|
||||
impl<'tcx> PreDefineMethods<'tcx> for CodegenCx<'_, 'tcx> {
|
||||
fn predefine_static(
|
||||
|
|
|
@ -11,7 +11,6 @@ use rustc_target::abi::{Abi, AddressSpace, Align, FieldsShape};
|
|||
use rustc_target::abi::{Int, Pointer, F32, F64};
|
||||
use rustc_target::abi::{PointeeInfo, Scalar, Size, TyAbiInterface, Variants};
|
||||
use smallvec::{smallvec, SmallVec};
|
||||
use tracing::debug;
|
||||
|
||||
use std::fmt::Write;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue