Skip to content

Commit 7a5d814

Browse files
committed
Remove #[macro_use] extern crate tracing from rustc_const_eval.
1 parent c7da1a5 commit 7a5d814

27 files changed

+29
-3
lines changed

compiler/rustc_const_eval/src/const_eval/eval_queries.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use std::sync::atomic::Ordering::Relaxed;
22

33
use either::{Left, Right};
4+
use tracing::{debug, instrument, trace};
45

56
use rustc_hir::def::DefKind;
67
use rustc_middle::bug;

compiler/rustc_const_eval/src/const_eval/machine.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ use rustc_span::symbol::{sym, Symbol};
2121
use rustc_span::Span;
2222
use rustc_target::abi::{Align, Size};
2323
use rustc_target::spec::abi::Abi as CallAbi;
24+
use tracing::debug;
2425

2526
use crate::errors::{LongRunning, LongRunningWarn};
2627
use crate::fluent_generated as fluent;

compiler/rustc_const_eval/src/const_eval/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use rustc_middle::mir::interpret::InterpErrorInfo;
66
use rustc_middle::query::{Key, TyCtxtAt};
77
use rustc_middle::ty::{self, Ty, TyCtxt};
88
use rustc_target::abi::VariantIdx;
9+
use tracing::instrument;
910

1011
use crate::interpret::{format_interp_error, InterpCx};
1112

compiler/rustc_const_eval/src/const_eval/valtrees.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use rustc_middle::ty::layout::{LayoutCx, LayoutOf, TyAndLayout};
66
use rustc_middle::ty::{self, ScalarInt, Ty, TyCtxt};
77
use rustc_span::DUMMY_SP;
88
use rustc_target::abi::{Abi, VariantIdx};
9+
use tracing::{debug, instrument, trace};
910

1011
use super::eval_queries::{mk_eval_cx_to_read_const_val, op_to_const};
1112
use super::machine::CompileTimeEvalContext;

compiler/rustc_const_eval/src/interpret/cast.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use rustc_middle::ty::{self, FloatTy, Ty};
1010
use rustc_middle::{bug, span_bug};
1111
use rustc_target::abi::Integer;
1212
use rustc_type_ir::TyKind::*;
13+
use tracing::trace;
1314

1415
use super::{
1516
err_inval, throw_ub, throw_ub_custom, util::ensure_monomorphic_enough, FnVal, ImmTy, Immediate,

compiler/rustc_const_eval/src/interpret/discriminant.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use rustc_middle::ty::layout::{LayoutOf, PrimitiveExt};
66
use rustc_middle::ty::{self, ScalarInt, Ty};
77
use rustc_target::abi::{self, TagEncoding};
88
use rustc_target::abi::{VariantIdx, Variants};
9+
use tracing::{instrument, trace};
910

1011
use super::{
1112
err_ub, throw_ub, ImmTy, InterpCx, InterpResult, Machine, Readable, Scalar, Writeable,

compiler/rustc_const_eval/src/interpret/eval_context.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use std::cell::Cell;
22
use std::{fmt, mem};
33

44
use either::{Either, Left, Right};
5+
use tracing::{debug, info, info_span, instrument, trace};
56

67
use hir::CRATE_HIR_ID;
78
use rustc_errors::DiagCtxt;

compiler/rustc_const_eval/src/interpret/intern.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ use rustc_middle::query::TyCtxtAt;
2323
use rustc_middle::ty::layout::TyAndLayout;
2424
use rustc_span::def_id::LocalDefId;
2525
use rustc_span::sym;
26+
use tracing::{instrument, trace};
2627

2728
use super::{err_ub, AllocId, Allocation, InterpCx, MPlaceTy, Machine, MemoryKind, PlaceTy};
2829
use crate::const_eval;

compiler/rustc_const_eval/src/interpret/intrinsics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use rustc_middle::{
1414
};
1515
use rustc_span::symbol::{sym, Symbol};
1616
use rustc_target::abi::Size;
17+
use tracing::trace;
1718

1819
use super::{
1920
err_inval, err_ub_custom, err_unsup_format, memory::MemoryKind, throw_inval, throw_ub_custom,

compiler/rustc_const_eval/src/interpret/memory.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ use rustc_middle::mir::display_allocation;
2121
use rustc_middle::ty::{self, Instance, ParamEnv, Ty, TyCtxt};
2222
use rustc_target::abi::{Align, HasDataLayout, Size};
2323

24+
use tracing::{debug, instrument, trace};
25+
2426
use crate::fluent_generated as fluent;
2527

2628
use super::{

0 commit comments

Comments
 (0)