-
-
Notifications
You must be signed in to change notification settings - Fork 14.9k
nightly regression: #[doc(alias)] does not resolve across crate re-imports #152939
Copy link
Copy link
Closed
Closed
Copy link
Labels
A-doc-aliasArea: `#[doc(alias)]`Area: `#[doc(alias)]`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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Metadata
Metadata
Assignees
Labels
A-doc-aliasArea: `#[doc(alias)]`Area: `#[doc(alias)]`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.regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Code
Two crates:
dep, andmaindepending ondep.Reproduction Steps
The following Bash code sets everything up:
You can change
rustup default stable/nightlybeforehand to switch between behaviors.Expected Outcome
In the docs page now opened in the browser, search for the string "answer".
On stable Rust, the alias across crates is found in search:
Also, when running
cargo docon nightly without--no-deps, the alias is found in the other cratedep:Actual Output
On nightly with
cargo doc --no-deps, no results when looking for "answer":Version
Stable and nightly (both latest as of today):
Additional Details
Similar but not identical to #141475.