Skip to content

Warn more gently on ignored example code #44927

Description

@bluss

Source code (rendered):

//! ```ignore
//! use itertools::Itertools;
//! ```

This renders with a warning triangle in the crate's docs. "Be careful when using this code, it's not being tested!"

Can we be more gentle with the warnings? This warning reflects badly on the crate, and we cast doubt on it that is unfounded. Any author that uses ignore probably knew why they did so.

In this case the warning is especially visible and unlucky, and the user can easily be confused, is "the code" referring to the whole crate?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.P-mediumMedium priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions