Skip to content

rustdoc does not verify feature gates #67647

Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum

This generates documentation with a stable rustdoc today without any warnings.

#![feature(raw)]

use std::raw::TraitObject;

pub fn bar() {}

Interestingly, rustdoc does seem to check that the feature gate is in the crate (i.e., #![feature(raw)] must exist), and will error if a feature gate has been removed (e.g., custom_attribute on nightly).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-stabilityArea: `#[stable]`, `#[unstable]` etc.C-bugCategory: This is a bug.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-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