Skip to content

Commit

Permalink
fix(exporter): cargo doc: enable --document-private-items
Browse files Browse the repository at this point in the history
  • Loading branch information
W95Psp committed May 15, 2024
1 parent 364d2a4 commit 153c496
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
);
frontend-docs = craneLib.cargoDoc (commonArgs // {
preBuildPhases = ["addRustcDocs"];
cargoDocExtraArgs = "--document-private-items";
addRustcDocs = ''
mkdir -p target/doc
cp --no-preserve=mode -rf ${rustc.passthru.availableComponents.rustc-docs}/share/doc/rust/html/rustc/* target/doc/
Expand Down
1 change: 1 addition & 0 deletions frontend/exporter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#![allow(incomplete_features)]
#![feature(specialization)]
#![feature(return_position_impl_trait_in_trait)]
#![allow(rustdoc::private_intra_doc_links)]

extern crate rustc_abi;
extern crate rustc_ast;
Expand Down

0 comments on commit 153c496

Please sign in to comment.