Skip to content

Commit

Permalink
Don't suggest explicitly cfg-gating trace! calls in bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
moxian authored Mar 5, 2025
1 parent 49ff258 commit 2ac8a56
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/building/bootstrapping/debugging-bootstrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ impl Step for Foo {

#[cfg_attr(feature = "tracing", instrument(level = "trace", name = "Foo::should_run", skip_all))]
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
#[cfg(feature = "tracing")]
trace!(?run, "entered Foo::should_run");

todo!()
Expand All @@ -154,7 +153,6 @@ impl Step for Foo {
),
)]
fn run(self, builder: &Builder<'_>) -> Self::Output {
#[cfg(feature = "tracing")]
trace!(?run, "entered Foo::run");

todo!()
Expand Down

0 comments on commit 2ac8a56

Please sign in to comment.