Remove `#[macro_use] extern crate tracing` from `rustc_ty_utils`.

This commit is contained in:
Nicholas Nethercote 2024-05-22 13:16:49 +10:00
parent 5293c6adb7
commit bbe4efdb47
9 changed files with 8 additions and 3 deletions

View File

@ -14,6 +14,7 @@ use rustc_target::abi::call::{
};
use rustc_target::abi::*;
use rustc_target::spec::abi::Abi as SpecAbi;
use tracing::debug;
use std::iter;

View File

@ -11,6 +11,7 @@ use rustc_middle::ty::{self, Expr, TyCtxt, TypeVisitableExt};
use rustc_middle::{mir, thir};
use rustc_span::Span;
use rustc_target::abi::{VariantIdx, FIRST_VARIANT};
use tracing::{debug, instrument};
use std::iter;

View File

@ -9,6 +9,7 @@ use rustc_middle::ty::{self, Instance, TyCtxt, TypeVisitableExt};
use rustc_span::sym;
use rustc_trait_selection::traits;
use rustc_type_ir::ClosureKind;
use tracing::debug;
use traits::{translate_args, Reveal};
use crate::errors::UnexpectedFnPtrAssociatedItem;

View File

@ -16,6 +16,7 @@ use rustc_session::{DataTypeKind, FieldInfo, FieldKind, SizeKind, VariantInfo};
use rustc_span::sym;
use rustc_span::symbol::Symbol;
use rustc_target::abi::*;
use tracing::{debug, instrument, trace};
use std::fmt::Debug;
use std::iter;

View File

@ -16,9 +16,6 @@
#![feature(let_chains)]
#![feature(never_type)]
#[macro_use]
extern crate tracing;
use rustc_middle::query::Providers;
mod abi;

View File

@ -9,6 +9,7 @@ use rustc_middle::ty::GenericArgsRef;
use rustc_middle::ty::{self, EarlyBinder, Ty, TyCtxt};
use rustc_session::Limit;
use rustc_span::sym;
use tracing::debug;
use crate::errors::NeedsDropOverflow;

View File

@ -8,6 +8,7 @@ use rustc_middle::ty::util::{CheckRegions, NotUniqueParam};
use rustc_middle::ty::{self, Ty, TyCtxt};
use rustc_middle::ty::{TypeSuperVisitable, TypeVisitable, TypeVisitor};
use rustc_span::Span;
use tracing::{instrument, trace};
use crate::errors::{DuplicateArg, NotParam};

View File

@ -8,6 +8,7 @@ use rustc_middle::span_bug;
use rustc_middle::ty::{self, TyCtxt};
use rustc_span::Span;
use rustc_type_ir::visit::TypeVisitable;
use tracing::{instrument, trace};
pub trait SpannedTypeVisitor<'tcx> {
type Result: VisitorResult = ();

View File

@ -10,6 +10,7 @@ use rustc_middle::ty::{TypeSuperVisitable, TypeVisitable, Upcast};
use rustc_span::def_id::{DefId, LocalDefId, CRATE_DEF_ID};
use rustc_span::DUMMY_SP;
use rustc_trait_selection::traits;
use tracing::{debug, instrument};
#[instrument(level = "debug", skip(tcx), ret)]
fn sized_constraint_for_ty<'tcx>(tcx: TyCtxt<'tcx>, ty: Ty<'tcx>) -> Option<Ty<'tcx>> {