Skip to content

Correct error trait rustdoc cfgs - #3670

Open
joshlf wants to merge 1 commit into
google:mainfrom
joshlf:fix-error-doc-cfg
Open

Correct error trait rustdoc cfgs#3670
joshlf wants to merge 1 commit into
google:mainfrom
joshlf:fix-error-doc-cfg

Conversation

@joshlf

@joshlf joshlf commented Sep 12, 2026

Copy link
Copy Markdown
Member

Each error type implements Error either on Rust 1.81 or newer or when the std feature is enabled. The rustdoc doc(cfg(...)) annotations currently say that both conditions must hold.

Change the four annotations from all(...) to any(...) so the generated documentation matches the actual compilation cfgs.

Authored by an AI agent acting on Josh Liebow-Feeser's behalf.

The Error implementations are available either on Rust 1.81 or newer or when
the std feature is enabled, but their rustdoc cfgs currently require both.
Match the documented availability to the actual compilation cfgs.

*Authored by an AI agent acting on Josh Liebow-Feeser's behalf.*

Agent-Authored-By: AI agent acting on Josh Liebow-Feeser's behalf
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-12T04:49:05.112425Z 9867497 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.81%. Comparing base (ec74bc1) to head (9867497).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3670   +/-   ##
=======================================
  Coverage   91.81%   91.81%           
=======================================
  Files          20       20           
  Lines        6147     6147           
=======================================
  Hits         5644     5644           
  Misses        503      503           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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