-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cargo doc
panic (No resolutions for a doc link)
#109614
Comments
ReproPut this in Cargo.toml and run [package]
name = "issue-109614"
version = "0.1.0"
edition = "2021"
[dependencies]
rustix = "0.36.11" Bisectsearched nightlies: from nightly-2023-03-19 to nightly-2023-03-25 bisected with cargo-bisect-rustc v0.6.5Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc -- doc Regression in #109266 cc @petrochenkov |
Should I open an issue about this in rustix? I should also mention that the crate causing the issue uses clap, being that a lot of the crates in #109266 use clap. |
No, this is a bug in rustc/rustdoc, not in rustix. |
MCVEmod read_write {
pub fn preadv2() {}
/// [`preadv2`]
pub use crate::backend::ReadWriteFlags;
}
mod backend {
pub struct ReadWriteFlags;
}
pub use read_write::{preadv2, ReadWriteFlags}; @rustbot label +S-bug-has-mcve +A-intra-doc-links +T-rustdoc -T-compiler |
Should be fixed by #109330. |
resolve: Preserve reexport chains in `ModChild`ren This may be potentially useful for - avoiding uses of `hir::ItemKind::Use` (which usually lead to correctness issues) - preserving documentation comments on all reexports, including those from other crates - preserving and checking stability/deprecation info on reexports - all kinds of diagnostics The second commit then migrates some hacky logic from rustdoc to `module_reexports` to make it simpler and more correct. Ideally rustdoc should use `module_reexports` immediately at the top level, so `hir::ItemKind::Use`s are never used. The second commit also fixes issues with rust-lang/rust#109330 and therefore Fixes rust-lang/rust#109631 Fixes rust-lang/rust#109614 Fixes rust-lang/rust#109424
Code
N/A
Meta
rustc --version --verbose
:Error output
Weirdly, the output is longer than the backtrace.
Backtrace
The text was updated successfully, but these errors were encountered: