Skip to content

Document how to choose a diagnostic emitter - #419

Open
jadenfix wants to merge 1 commit into
brendanzab:masterfrom
jadenfix:docs/diagnostic-emitter-selection
Open

jadenfix wants to merge 1 commit into
brendanzab:masterfrom
jadenfix:docs/diagnostic-emitter-selection

Conversation

@jadenfix

Copy link
Copy Markdown

The public replacements for deprecated term::emit have no function documentation, making it difficult to choose an emitter for a string, an I/O writer, or styled terminal output.

Document the writer and feature requirements, plain versus styled output, append behavior, and errors. The module example renders the same diagnostic through the string APIs, compares its plain I/O output, and checks styled output when the corresponding features are enabled. The changelog records the documentation addition.

Validation:

  • cargo test for the workspace.
  • codespan-reporting tests and doctests with default features, no default features, and only std.
  • cargo clippy --all, formatting, and normal rustdoc build.
  • Separate Codex-agent source review and independent default/no-default doctest runs.

A strict RUSTDOCFLAGS=-Dwarnings build fails on the existing private PlainWriter link in renderer.rs; the same failure was reproduced on the unchanged baseline. This PR does not alter that link or production code.

Developed with Codex assistance. Closes #413.

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.

doc: Document successor functions of term::emit

1 participant