librustdoc: Make RenderOptions boolean fields into newtypes by jefftt · Pull Request #147621 · rust-lang/rust (original) (raw)
|
note: associated function defined here
--> src/librustdoc/formats/cache.rs:146:19
|
146 | pub(crate) fn new(document_private: DocumentPrivate, document_hidden: DocumentHidden) -> Self {
| ^^^ --------------------------------- -------------------------------
help: try wrapping the expression in `config::DocumentPrivate`
|
75 | let cache = Cache::new(config::DocumentPrivate(false), false);
| ++++++++++++++++++++++++ +
help: try wrapping the expression in `config::DocumentHidden`
|
75 | let cache = Cache::new(false, config::DocumentHidden(false));
| +++++++++++++++++++++++ +
For more information about this error, try `rustc --explain E0308`.
[RUSTC-TIMING] rustdoc test:true 12.456
error: could not compile `rustdoc` (lib test) due to 1 previous error