-
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
thread 'rustc' panicked at 'no entry found for key', src/librustdoc/passes/collect_intra_doc_links.rs:781:16 #103463
Comments
It looks like this started after commit e426874. (#103192) I was able to create a MCVE: // Crate A - src/main.rs
use B::One;
fn main() {} // Crate B - src/lib.rs
pub struct Two;
impl Two {
pub fn new() -> Self { todo!() }
}
pub trait One {
/// Do something with [`Two::new`]
fn do_something(two: Two);
} Backtrace:
|
Further minimized: pub trait Trait {
/// [`u8::clone`]
fn method();
} // aux-build:issue-103463-aux.rs
extern crate issue_103463_aux;
use issue_103463_aux::Trait;
fn main() {} The issue disappears if the private |
|
Fixed in #103649. |
rustdoc: Do not add external traits to the crate in `register_res` It's not clear why it was done, and apparently it's no longer necessary now. Such additions are unpredictable for early doc link resolution and would force us to collect all doc links from all external traits. Fixes rust-lang/rust#103463
rustdoc: Do not add external traits to the crate in `register_res` It's not clear why it was done, and apparently it's no longer necessary now. Such additions are unpredictable for early doc link resolution and would force us to collect all doc links from all external traits. Fixes rust-lang/rust#103463
rustdoc: Do not add external traits to the crate in `register_res` It's not clear why it was done, and apparently it's no longer necessary now. Such additions are unpredictable for early doc link resolution and would force us to collect all doc links from all external traits. Fixes rust-lang/rust#103463
Code
Cargo.toml
lib.rs
Run
cargo +nightly doc
on this and get an ICE. Note that documentingluminance
itself does not panic, and that theuse
is necessary.Meta
rustc --version --verbose
:Also reproduces on Linux (GitHub Actions) with the same nightly version.
Error output
Backtrace
@rustbot label +T-rustdoc -T-compiler
The text was updated successfully, but these errors were encountered: