Skip to content

Commit d8e1c91

Browse files
committed
Properly inline documentation and use intra-crate lints
Now that rust-lang/rust#64536 has landed, all of the bugs with proc macro documentation have now been fixed (currently only on the latest nightly). We can now use `#[doc(inline)]` on proc macro imports, which works just like any other import.
1 parent 166c0f9 commit d8e1c91

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
//!
3535
//! There are examples and generated code of each feature in [examples](https://github.com/taiki-e/pin-project/blob/master/examples/README.md) directory.
3636
//!
37-
//! [`pin_project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.11/pin_project_internal/attr.pin_project.html
38-
//! [`pinned_drop`]: https://docs.rs/pin-project-internal/0.4.0-alpha.11/pin_project_internal/attr.pinned_drop.html
39-
//! [`project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.11/pin_project_internal/attr.project.html
37+
//! [`pin_project`]: attr.pin_project.html
38+
//! [`pinned_drop`]: attr.pinned_drop.html
39+
//! [`project`]: attr.project.html
4040
4141
#![no_std]
4242
#![recursion_limit = "256"]
@@ -51,13 +51,13 @@
5151
#![warn(clippy::all, clippy::pedantic)]
5252
#![allow(clippy::use_self)]
5353

54-
#[doc(hidden)]
54+
#[doc(inline)]
5555
pub use pin_project_internal::pin_project;
5656

57-
#[doc(hidden)]
57+
#[doc(inline)]
5858
pub use pin_project_internal::pinned_drop;
5959

60-
#[doc(hidden)]
60+
#[doc(inline)]
6161
pub use pin_project_internal::project;
6262

6363
/// A trait used for custom implementations of [`Unpin`].
@@ -113,7 +113,7 @@ pub use pin_project_internal::project;
113113
/// ```
114114
///
115115
/// [`PhantomPinned`]: core::marker::PhantomPinned
116-
/// [`pin_project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.11/pin_project_internal/attr.pin_project.html
116+
/// [`pin_project`]: attr.pin_project.html
117117
#[allow(unsafe_code)]
118118
pub unsafe trait UnsafeUnpin {}
119119

0 commit comments

Comments
 (0)