Skip to content

Generate ArrayVecCopy without using patch #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 21, 2024

Conversation

bluss
Copy link

@bluss bluss commented Oct 19, 2024

Invent this little hack, insert directives like this in ArrayVec:

// DIRECTIVE ArrayVecCopy #[cfg(not_in_arrayvec_copy)]

And replace them as follows in ArrayVecCopy:

#[cfg(not_in_arrayvec_copy)]

@bluss

This comment was marked as outdated.

@bluss bluss force-pushed the pr_arrayvec_copy_edit branch 3 times, most recently from c941427 to 9c16e31 Compare October 19, 2024 16:32
Invent this little hack, insert directives like this in ArrayVec:

```rust
// DIRECTIVE ArrayVecCopy #[cfg(not_in_arrayvec_copy)]
```

And replace them as follows in ArrayVecCopy:

```rust
 #[cfg(not_in_arrayvec_copy)]
```
@bluss bluss force-pushed the pr_arrayvec_copy_edit branch from 9c16e31 to 028b3e6 Compare October 19, 2024 16:32
It's a type nested in a function, does not need renaming.
Copy link
Owner

@tbu- tbu- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, that's a lot less brittle than the patch. :)

@tbu- tbu- merged commit 6f39b07 into tbu-:pr_arrayvec_copy Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants