Skip to content

Consider a different tooltip for a partially ignored doctest #141092

Closed
@ehuss

Description

@ehuss

When a doctest is partially ignored based on target, such as:

/// Example
///
/// ```ignore-wasm
/// let x = 1;
/// ```
pub fn f() {}

the documentation includes an alert that the example isn't tested (on any target):

Image

This could be a little misleading, since the ignore statement could be for a relatively esoteric platform. But the docs seem to imply it isn't tested anywhere.

I'm not really sure what would make sense to include here. Perhaps the tooltip could be more explicit on what is being ignored?

Meta

rustdoc 1.89.0-nightly (414482f6a 2025-05-13)
binary: rustdoc
commit-hash: 414482f6a0d4e7290f614300581a0b55442552a3
commit-date: 2025-05-13
host: aarch64-apple-darwin
release: 1.89.0-nightly
LLVM version: 20.1.4

Metadata

Metadata

Assignees

Labels

A-doctestsArea: Documentation tests, run by rustdocA-rustdoc-uiArea: Rustdoc UI (generated HTML)C-bugCategory: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.T-rustdoc-frontendRelevant to the rustdoc-frontend team, which will review and decide on the web UI/UX output.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions