Skip to content

Rustdoc fails in Option::get_ref if there's a module with no public items #9828

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

Closed
sfackler opened this issue Oct 12, 2013 · 0 comments
Closed
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@sfackler
Copy link
Member

If I have something like

#[link(name="thing")];

pub mod foo {
}

running rustdoc fails:

~ ❯ rustdoc test.rs
task '<unnamed>' failed at 'called `Option::get_ref()` on a `None` value', /build/rust-git/src/rust/src/libstd/option.rs:247

but adding a public struct to foo fixes it:

#[link(name="thing")];

pub mod foo {
    pub struct Baz;
}
flip1995 pushed a commit to flip1995/rust that referenced this issue Nov 21, 2022
fix: cognitive_complexity for async fn

fix rust-lang/rust-clippy#9300

changelog: [`cognitive_complexity`] support async fn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

1 participant