diff options
| author | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-01-31 14:43:49 +0800 |
|---|---|---|
| committer | 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> | 2025-02-04 16:27:24 +0800 |
| commit | 53b8de1c9a9f027c9d2effc5eeed2fc99cf7068d (patch) | |
| tree | 1f073126f39740b56dffd82a16862840df37f61f /compiler/rustc_codegen_llvm/src | |
| parent | c705b7d6f748823352f95247835a5839dcbd7bed (diff) | |
| download | rust-53b8de1c9a9f027c9d2effc5eeed2fc99cf7068d.tar.gz rust-53b8de1c9a9f027c9d2effc5eeed2fc99cf7068d.zip | |
bootstrap: add wrapper macros for `tracing`-gated tracing macros
- Add wrapper macros for `error!`, `warn!`, `info!`, `debug!` and `trace!`, which `cfg(feature = "tracing")`-gates the underlying `tracing` macros. - This is not done for `span!` or `event!` because they can return span guards, and you can't really wrap that. - This is also not possible for `tracing::instrument` attribute proc-macro unless you use another attribute proc-macro to wrap that.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
