-
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
rustdoc fails on tokio 1.33.0
with --cfg=docsrs
since nightly-2023-10-31
#117622
Comments
Are you asking for rustdoc to successfully render docs for code that doesn't compile? I would not expect that to work. |
Yes. IIUC, |
I'm certain that this is due to #117450 which intentionally made rustdoc accept fewer invalid Rust programs. |
Code
Cargo.toml
:src/lib.rs
is empty.Run
RUSTDOCFLAGS='--cfg=docsrs' cargo doc
.I expected to see this happen: success without any error.
Instead, this happened:
Version it worked on
It most recently worked on:
Version with regression
Context
I'm initially using
--cfg docsrs
mainly for my own crate, but it's also accidentally used bytokio
, which enablesdoc(cfg(..))
usage Tracking issue for#[doc(cfg(…))]
,#[doc(cfg_hide(…))]
anddoc_auto_cfg
#43781. I guess it's related.I'm not fully sure this is an intended failure or not. But intuitively,
rustdoc
should not check trait bounds in private fields of private types.This failure is caught by CI in https://github.com/oxalica/async-lsp/actions/runs/6714596487/job/18248066086.
The text was updated successfully, but these errors were encountered: