Skip to content

Commit aee5f31

Browse files
committed
safe transmute: lowercase tracing levels
ref: #92268 (comment)
1 parent 2268603 commit aee5f31

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

compiler/rustc_transmute/src/layout/dfa.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ where
103103
Self { transitions, start, accepting }
104104
}
105105

106-
#[instrument(level = "DEBUG")]
106+
#[instrument(level = "debug")]
107107
#[cfg_attr(feature = "rustc", allow(rustc::potential_query_instability))]
108108
pub(crate) fn from_nfa(nfa: Nfa<R>) -> Self {
109109
let Nfa { transitions: nfa_transitions, start: nfa_start, accepting: nfa_accepting } = nfa;

compiler/rustc_transmute/src/maybe_transmutable/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ mod rustc {
6464
impl<'tcx> MaybeTransmutableQuery<Ty<'tcx>, TyCtxt<'tcx>> {
6565
/// This method begins by converting `src` and `dst` from `Ty`s to `Tree`s,
6666
/// then computes an answer using those trees.
67-
#[instrument(level = "DEBUG", skip(self), fields(src = ?self.src, dst = ?self.dst))]
67+
#[instrument(level = "debug", skip(self), fields(src = ?self.src, dst = ?self.dst))]
6868
pub fn answer(self) -> Answer<<TyCtxt<'tcx> as QueryContext>::Ref> {
6969
let query_or_answer = self.map_layouts(|src, dst, scope, &context| {
7070
// Convert `src` and `dst` from their rustc representations, to `Tree`-based
@@ -103,7 +103,7 @@ where
103103
/// This method begins by de-def'ing `src` and `dst`, and prunes private paths from `dst`,
104104
/// then converts `src` and `dst` to `Nfa`s, and computes an answer using those NFAs.
105105
#[inline(always)]
106-
#[instrument(level = "DEBUG", skip(self), fields(src = ?self.src, dst = ?self.dst))]
106+
#[instrument(level = "debug", skip(self), fields(src = ?self.src, dst = ?self.dst))]
107107
pub(crate) fn answer(self) -> Answer<<C as QueryContext>::Ref> {
108108
let assume_visibility = self.assume.visibility;
109109
let query_or_answer = self.map_layouts(|src, dst, scope, context| {
@@ -152,7 +152,7 @@ where
152152
///
153153
/// This method converts `src` and `dst` to DFAs, then computes an answer using those DFAs.
154154
#[inline(always)]
155-
#[instrument(level = "DEBUG", skip(self), fields(src = ?self.src, dst = ?self.dst))]
155+
#[instrument(level = "debug", skip(self), fields(src = ?self.src, dst = ?self.dst))]
156156
pub(crate) fn answer(self) -> Answer<<C as QueryContext>::Ref> {
157157
let query_or_answer = self
158158
.map_layouts(|src, dst, scope, context| Ok((Dfa::from_nfa(src), Dfa::from_nfa(dst))));
@@ -192,7 +192,7 @@ where
192192
}
193193

194194
#[inline(always)]
195-
#[instrument(level = "DEBUG", skip(self))]
195+
#[instrument(level = "debug", skip(self))]
196196
fn answer_memo(
197197
&self,
198198
cache: &mut Map<(dfa::State, dfa::State), Answer<<C as QueryContext>::Ref>>,

compiler/rustc_transmute/src/maybe_transmutable/query_context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ mod rustc {
5252

5353
type Scope = Ty<'tcx>;
5454

55-
#[instrument(level = "DEBUG", skip(self))]
55+
#[instrument(level = "debug", skip(self))]
5656
fn is_accessible_from(&self, def: Self::Def, scope: Self::Scope) -> bool {
5757
use layout::rustc::Def;
5858
use rustc_middle::ty;

0 commit comments

Comments
 (0)