Skip to content

Commit

Permalink
Properly inline documentation and use intra-crate lints
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Aaron1011 committed Sep 20, 2019
1 parent 166c0f9 commit d8e1c91
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.0-alpha.11/pin_project_internal/attr.pin_project.html
//! [`pinned_drop`]: https://docs.rs/pin-project-internal/0.4.0-alpha.11/pin_project_internal/attr.pinned_drop.html
//! [`project`]: https://docs.rs/pin-project-internal/0.4.0-alpha.11/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"]
Expand All @@ -51,13 +51,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;

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

Expand Down

0 comments on commit d8e1c91

Please sign in to comment.