Skip to content

Commit 2ac8a56

Browse files
authored
Don't suggest explicitly cfg-gating trace! calls in bootstrap
1 parent 49ff258 commit 2ac8a56

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Diff for: src/building/bootstrapping/debugging-bootstrap.md

-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ impl Step for Foo {
138138

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

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

160158
todo!()

0 commit comments

Comments
 (0)