From 9f4dcb5ef51570bc171aa7c684ee95b75b9ed30b Mon Sep 17 00:00:00 2001 From: Aaron Hill Date: Fri, 20 Sep 2019 00:12:35 -0400 Subject: [PATCH] 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. --- src/lib.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 9b6d4710..c9db3752 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,9 +34,9 @@ //! //! There are examples and generated code of each feature in [examples](https://github.com/taiki-e/pin-project/blob/master/examples/README.md) directory. //! -//! [`pin_project`]: https://docs.rs/pin-project-internal/0.4.2/pin_project_internal/attr.pin_project.html -//! [`pinned_drop`]: https://docs.rs/pin-project-internal/0.4.2/pin_project_internal/attr.pinned_drop.html -//! [`project`]: https://docs.rs/pin-project-internal/0.4.2/pin_project_internal/attr.project.html +//! [`pin_project`]: attr.pin_project.html +//! [`pinned_drop`]: attr.pinned_drop.html +//! [`project`]: attr.project.html #![no_std] #![recursion_limit = "256"] @@ -50,13 +50,13 @@ #![warn(clippy::all, clippy::pedantic)] #![allow(clippy::use_self)] -#[doc(hidden)] +#[doc(inline)] pub use pin_project_internal::pin_project; -#[doc(hidden)] +#[doc(inline)] pub use pin_project_internal::pinned_drop; -#[doc(hidden)] +#[doc(inline)] pub use pin_project_internal::project; #[doc(hidden)] @@ -115,7 +115,7 @@ pub use pin_project_internal::project_ref; /// ``` /// /// [`PhantomPinned`]: core::marker::PhantomPinned -/// [`pin_project`]: https://docs.rs/pin-project-internal/0.4.2/pin_project_internal/attr.pin_project.html +/// [`pin_project`]: attr.pin_project.html #[allow(unsafe_code)] pub unsafe trait UnsafeUnpin {}