Skip to content

Commit

Permalink
Fix conflict between doc(hidden) and doc(inline)
Browse files Browse the repository at this point in the history
Summary:
The Rust Thrift services crates are affected by a rustdoc bug which makes `doc(hidden)` ineffective when `doc(inline)` is used on a public re-export of a dependency.

Working around this is important for {D58915758} so that the services crate for Thrift targets containing 0 services can be correctly identified as empty and excluded from rustdoc search.

Reviewed By: diliop

Differential Revision: D58915759

fbshipit-source-id: 6c43bcb59898d64a70b90bbc5c4e9bee6ef57d7a
  • Loading branch information
David Tolnay authored and facebook-github-bot committed Jun 23, 2024
1 parent 0cec228 commit 0cbd38b
Show file tree
Hide file tree
Showing 19 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion thrift/compiler/generate/templates/rust/server.rs.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ pub(crate) use {{program:types}}::services;
#![allow(non_snake_case, unused_crate_dependencies)]
{{/program:multifile?}}

#[doc(inline)]
pub use {{program:types}} as types;
{{/program:services?}}
{{#program:direct_dependencies?}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@
#![doc(hidden)]
#![allow(non_snake_case, unused_crate_dependencies)]

#[doc(inline)]
pub use :: as types;

0 comments on commit 0cbd38b

Please sign in to comment.