Skip to content

Rustdoc is inlining use ... imports when --document-private-items is passed #90865

Description

@jyn514

I tried this code:

use std::env;

I expected to see this happen: The documentation is empty.

Instead, this happened:
image

Meta

rustdoc --version: rustdoc 1.58.0-nightly (e90c5fb 2021-11-12)

cc @camelid @inquisitivecrystal, I suspect this is related to one of your recent changes to visibility.

Activity

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

Metadata

Metadata

Labels

A-visibilityArea: Visibility / privacyC-bugCategory: This is a bug.P-mediumMedium priorityT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions