-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Open
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Description
Code
/// should occur first
pub use std::mem::drop;
pub use inner::yyy;
mod inner {
/// should occur second
pub fn yyy() {}
}Reproduction Steps
run rustdoc with -Z unstable-options --sort-modules-by-appearance
Expected Outcome
drop should occur first, yyy second
Actual Output
yyy first, drop second
Version
rustdoc 1.94.0-nightly (806c2a3 2025-12-19)
Additional Details
If i replace reexported drop with a locally defined exported function, the issue doesn't occur.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.