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 30, 2019
1 parent 4234310 commit 9f4dcb5
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.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"]
Expand All @@ -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)]
Expand Down Expand Up @@ -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 {}

Expand Down

0 comments on commit 9f4dcb5

Please sign in to comment.