-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
ICE in rustdoc: 'called Option::unwrap()
on a None
value', src/librustdoc/clean/auto_trait.rs:356:26
#100143
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Was this at least on a project you can share the source to, or was it closed source? If it's a big project that you can't minimise, then it would be good to share/link to that, so someone else can do the minimisation. an example is better than no example, even if it's not minimal. |
Managed to find something. The // struct Peekable<I: Iterator>
use std::iter::Peekable;
pub struct Span<F: Fn(&i32)> {
inner: Peekable<ConditionalIterator<F>>,
}
struct ConditionalIterator<F> {
f: F,
}
impl<F: Fn(&i32)> Iterator for ConditionalIterator<F> {
type Item = ();
fn next(&mut self) -> Option<Self::Item> {
todo!()
}
} |
searched nightlies: from nightly-2022-01-01 to nightly-2022-08-02 bisected with cargo-bisect-rustc v0.6.4Host triple: x86_64-unknown-linux-gnu cargo bisect-rustc 2022-01-01 --preserve --prompt -- doc Looks like #98279 |
Code
Meta
No crash in stable 1.62.1, crashes with nightly 85b500cca 2022-07-24 and 1b57946 2022-08-03
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: