Remove #[macro_use] extern crate tracing from rustc_monomorphize.

This commit is contained in:
Nicholas Nethercote 2024-05-22 14:22:37 +10:00
parent 7a5d814a04
commit 70e964afe3
5 changed files with 4 additions and 3 deletions

View file

@ -236,6 +236,7 @@ use rustc_span::symbol::{sym, Ident};
use rustc_span::{Span, DUMMY_SP};
use rustc_target::abi::Size;
use std::path::PathBuf;
use tracing::{debug, instrument, trace};
use crate::errors::{
self, EncounteredErrorWhileInstantiating, NoOptimizedMir, RecursionLimit, TypeLengthLimit,

View file

@ -1,4 +1,5 @@
use rustc_session::lint::builtin::LARGE_ASSIGNMENTS;
use tracing::debug;
use super::*;
use crate::errors::LargeAssignmentsLint;

View file

@ -2,9 +2,6 @@
#![feature(is_sorted)]
#![allow(rustc::potential_query_instability)]
#[macro_use]
extern crate tracing;
use rustc_hir::lang_items::LangItem;
use rustc_middle::bug;
use rustc_middle::query::{Providers, TyCtxtAt};

View file

@ -116,6 +116,7 @@ use rustc_middle::ty::{self, visit::TypeVisitableExt, InstanceDef, TyCtxt};
use rustc_session::config::{DumpMonoStatsFormat, SwitchWithOptPath};
use rustc_session::CodegenUnits;
use rustc_span::symbol::Symbol;
use tracing::debug;
use crate::collector::UsageMap;
use crate::collector::{self, MonoItemCollectionStrategy};

View file

@ -18,6 +18,7 @@ use rustc_middle::ty::{
GenericArgsRef, Ty, TyCtxt, UnusedGenericParams,
};
use rustc_span::symbol::sym;
use tracing::{debug, instrument};
use crate::errors::UnusedGenericParamsHint;