Remove #[macro_use] extern crate tracing from rustc_metadata.

This commit is contained in:
Nicholas Nethercote 2024-05-22 14:29:10 +10:00
parent 70e964afe3
commit d787fb062c
7 changed files with 6 additions and 3 deletions

View File

@ -27,6 +27,7 @@ use rustc_span::edition::Edition;
use rustc_span::symbol::{sym, Symbol};
use rustc_span::{Span, DUMMY_SP};
use rustc_target::spec::{PanicStrategy, Target, TargetTriple};
use tracing::{debug, info, trace};
use proc_macro::bridge::client::ProcMacro;
use std::error::Error;

View File

@ -65,6 +65,7 @@ use rustc_middle::ty::TyCtxt;
use rustc_session::config::CrateType;
use rustc_session::cstore::CrateDepKind;
use rustc_session::cstore::LinkagePreference::{self, RequireDynamic, RequireStatic};
use tracing::info;
pub(crate) fn calculate(tcx: TyCtxt<'_>) -> Dependencies {
tcx.crate_types()

View File

@ -20,9 +20,6 @@
extern crate proc_macro;
#[macro_use]
extern crate tracing;
pub use rmeta::provide;
mod dependency_format;

View File

@ -231,6 +231,7 @@ use rustc_session::Session;
use rustc_span::symbol::Symbol;
use rustc_span::Span;
use rustc_target::spec::{Target, TargetTriple};
use tracing::{debug, info};
use snap::read::FrameDecoder;
use std::borrow::Cow;

View File

@ -28,6 +28,7 @@ use rustc_session::cstore::{CrateSource, ExternCrate};
use rustc_session::Session;
use rustc_span::symbol::kw;
use rustc_span::{BytePos, Pos, SpanData, SpanDecoder, SyntaxContext, DUMMY_SP};
use tracing::debug;
use proc_macro::bridge::client::ProcMacro;
use std::iter::TrustedLen;

View File

@ -33,6 +33,7 @@ use std::collections::hash_map::Entry;
use std::fs::File;
use std::io::{Read, Seek, Write};
use std::path::{Path, PathBuf};
use tracing::{debug, instrument, trace};
pub(super) struct EncodeContext<'a, 'tcx> {
opaque: opaque::FileEncoder,

View File

@ -2,6 +2,7 @@ use crate::rmeta::*;
use rustc_hir::def::CtorOf;
use rustc_index::Idx;
use tracing::trace;
pub(super) trait IsDefault: Default {
fn is_default(&self) -> bool;