Skip to content

Commit

Permalink
Tweak comments and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Oct 13, 2020
1 parent a7e7fb9 commit dd18a51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pin-project-internal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ documentation = "https://docs.rs/pin-project-internal"
keywords = ["pin", "macros", "attribute"]
categories = ["no-std", "rust-patterns"]
description = """
An internal crate to support pin_project - do not use directly
Implementation detail of the `pin-project` crate.
"""

[package.metadata.docs.rs]
Expand Down
4 changes: 2 additions & 2 deletions pin-project-internal/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! An internal crate to support pin_project - **do not use directly**
//! Implementation detail of the `pin-project` crate. - **do not use directly**
#![doc(html_root_url = "https://docs.rs/pin-project-internal/1.0.0-alpha.1")]
#![doc(test(
Expand Down Expand Up @@ -566,7 +566,7 @@ pub fn pinned_drop(args: TokenStream, input: TokenStream) -> TokenStream {
pinned_drop::attribute(&args.into(), input).into()
}

// An internal helper macro. Not public API.
// Not public API.
#[doc(hidden)]
#[proc_macro_derive(__PinProjectInternalDerive, attributes(pin))]
pub fn __pin_project_internal_derive(input: TokenStream) -> TokenStream {
Expand Down
4 changes: 3 additions & 1 deletion tests/drop_order.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#![warn(rust_2018_idioms, single_use_lifetimes)]

// Refs: https://doc.rust-lang.org/reference/destructors.html

use pin_project::pin_project;
use std::{cell::Cell, pin::Pin, thread};

Expand Down Expand Up @@ -34,7 +36,7 @@ struct TuplePinned<'a>(#[pin] D<'a>, #[pin] D<'a>);
#[pin_project(project_replace)]
struct TupleUnpinned<'a>(D<'a>, D<'a>);

#[pin_project(project_replace= EnumProj)]
#[pin_project(project_replace = EnumProj)]
enum Enum<'a> {
StructPinned {
#[pin]
Expand Down

0 comments on commit dd18a51

Please sign in to comment.