diff options
| author | moxian <moxian@users.noreply.github.com> | 2025-03-05 15:28:06 -0800 |
|---|---|---|
| committer | moxian <moxian@users.noreply.github.com> | 2025-03-05 15:34:48 -0800 |
| commit | 243f5699d50477bfa2cab907d6857bd6228f6bf2 (patch) | |
| tree | 64dcc66253ad13fa4875b5f9fd008c60c988d6d6 /src/doc/rustc-dev-guide | |
| parent | 69369a7f1c45c203b347be739cd6a7f7c3b9d5a6 (diff) | |
| download | rust-243f5699d50477bfa2cab907d6857bd6228f6bf2.tar.gz rust-243f5699d50477bfa2cab907d6857bd6228f6bf2.zip | |
Don't suggest explicitly `cfg`-gating `trace!` calls in bootstrap
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/building/bootstrapping/debugging-bootstrap.md | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/doc/rustc-dev-guide/src/building/bootstrapping/debugging-bootstrap.md b/src/doc/rustc-dev-guide/src/building/bootstrapping/debugging-bootstrap.md index 24b9783ddf0..35d33ebdb0e 100644 --- a/src/doc/rustc-dev-guide/src/building/bootstrapping/debugging-bootstrap.md +++ b/src/doc/rustc-dev-guide/src/building/bootstrapping/debugging-bootstrap.md @@ -129,7 +129,7 @@ Both `tracing::*` macros and the `tracing::instrument` proc-macro attribute need ```rs #[cfg(feature = "tracing")] -use tracing::{instrument, trace}; +use tracing::instrument; struct Foo; @@ -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!() @@ -154,7 +153,6 @@ impl Step for Foo { ), )] fn run(self, builder: &Builder<'_>) -> Self::Output { - #[cfg(feature = "tracing")] trace!(?run, "entered Foo::run"); todo!() |
