Skip to content

Conversation

@ehuss
Copy link
Contributor

@ehuss ehuss commented Dec 10, 2025

Due to a change in tracing-subscriber where it escapes ANSI codes, the output from rustdoc was changed to be escaped instead of colored. This fixes the issue by just printing to the console directly.

This does not have a test because it is difficult to emulate a terminal in the testsuite, and I don't feel like adding color overrides at the moment.

Ref:

Eventually mdbook's primary output should migrate away from using log messages, and instead use a structured console system. However, that's a ways off.

Due to a change in tracing-subscriber where it escapes ANSI codes, the
output from rustdoc was changed to be escaped instead of colored. This
fixes the issue by just printing to the console directly.

This does not have a test because it is difficult to emulate a terminal
in the testsuite, and I don't feel like adding color overrides at the
moment.

Ref:
- rust-lang#2829 -- Switched to tracing
- GHSA-xwfj-jgwm-7wp5 -- CVE-2025-58160
- tokio-rs/tracing#3378 -- Discussion of
  supporting color codes.

Eventually mdbook's primary output should migrate away from using log
messages, and instead use a structured console system. However, that's a
ways off.
@rustbot rustbot added the S-waiting-on-review Status: waiting on a review label Dec 10, 2025
@ehuss ehuss enabled auto-merge December 10, 2025 22:02
@ehuss ehuss added this pull request to the merge queue Dec 10, 2025
Merged via the queue into rust-lang:master with commit f857ab2 Dec 10, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: waiting on a review label Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants