Skip to content

Commit

Permalink
Update proc-macro2/pin-project links
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Sep 7, 2024
1 parent 5e8eb27 commit 2bd20b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/auto_enum/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl Context {
let current_marker = if let Some(marker) = marker {
// Currently, there is no reason to preserve the span, so convert `Ident` to `String`.
// This should probably be more efficient than calling `to_string` for each comparison.
// https://github.com/alexcrichton/proc-macro2/blob/1.0.1/src/wrapper.rs#L706
// https://github.com/dtolnay/proc-macro2/blob/1.0.86/src/wrapper.rs#L723
let marker_string = marker.to_string();
if markers.contains(&marker_string) {
bail!(
Expand Down
4 changes: 2 additions & 2 deletions src/enum_derive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ fn expand(args: TokenStream, input: TokenStream) -> Result<TokenStream> {
// The repr(packed) check is not needed since repr(packed) is not available on enum.

// Automatically create the appropriate conditional `Unpin` implementation.
// https://github.com/taiki-e/pin-project/blob/v1.0.10/examples/struct-default-expanded.rs#L89
// https://github.com/taiki-e/pin-project/blob/v1.1.5/examples/struct-default-expanded.rs#L98
// TODO: use https://github.com/taiki-e/pin-project/issues/102#issuecomment-540472282's trick.
items.extend(derive_utils::derive_trait(
&data,
Expand All @@ -319,7 +319,7 @@ fn expand(args: TokenStream, input: TokenStream) -> Result<TokenStream> {
let name = &item.ident;
let (impl_generics, ty_generics, where_clause) = item.generics.split_for_impl();
// Ensure that enum does not implement `Drop`.
// https://github.com/taiki-e/pin-project/blob/v1.0.10/examples/struct-default-expanded.rs#L138
// https://github.com/taiki-e/pin-project/blob/v1.1.5/examples/struct-default-expanded.rs#L147
items.extend(quote! {
const _: () = {
trait MustNotImplDrop {}
Expand Down

0 comments on commit 2bd20b7

Please sign in to comment.