Remove #[macro_use] extern crate tracing from rustc_mir_dataflow.

This commit is contained in:
Nicholas Nethercote 2024-05-22 14:45:14 +10:00
parent bb364fe950
commit 9287aede31
8 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,7 @@
use crate::elaborate_drops::DropFlagState;
use rustc_middle::mir::{self, Body, Location, Terminator, TerminatorKind};
use rustc_target::abi::VariantIdx;
use tracing::debug;
use super::move_paths::{InitKind, LookupResult, MoveData, MovePathIndex};
use super::MoveDataParamEnv;

View file

@ -11,6 +11,7 @@
use rustc_span::DUMMY_SP;
use rustc_target::abi::{FieldIdx, VariantIdx, FIRST_VARIANT};
use std::{fmt, iter};
use tracing::{debug, instrument};
/// The value of an inserted drop flag.
#[derive(Debug, PartialEq, Eq, Copy, Clone)]

View file

@ -19,6 +19,7 @@
use rustc_middle::ty::print::with_no_trimmed_paths;
use rustc_middle::ty::TyCtxt;
use rustc_span::symbol::{sym, Symbol};
use tracing::{debug, error};
use super::fmt::DebugWithContext;
use super::graphviz;

View file

@ -3,6 +3,7 @@
use rustc_middle::bug;
use rustc_middle::mir::{self, Body, CallReturnPlaces, Location, TerminatorEdges};
use rustc_middle::ty::{self, TyCtxt};
use tracing::{debug, instrument};
use crate::drop_flag_effects_for_function_entry;
use crate::drop_flag_effects_for_location;

View file

@ -4,9 +4,6 @@
#![feature(let_chains)]
#![feature(try_blocks)]
#[macro_use]
extern crate tracing;
use rustc_middle::ty;
// Please change the public `use` directives cautiously, as they might be used by external tools.

View file

@ -4,6 +4,7 @@
use rustc_middle::ty::{self, Ty, TyCtxt, TypeVisitableExt};
use rustc_middle::{bug, span_bug};
use smallvec::{smallvec, SmallVec};
use tracing::debug;
use std::mem;

View file

@ -18,6 +18,7 @@
use rustc_middle::ty::{self, Ty, TyCtxt};
use rustc_span::symbol::{sym, Symbol};
use rustc_span::Span;
use tracing::{debug, info};
pub struct SanityCheck;

View file

@ -45,6 +45,7 @@
use rustc_middle::mir::*;
use rustc_middle::ty::{self, Ty, TyCtxt};
use rustc_target::abi::{FieldIdx, VariantIdx};
use tracing::debug;
use crate::lattice::{HasBottom, HasTop};
use crate::{