Skip to content

Conversation

@tarcieri
Copy link
Contributor

In #850 I noticed there are a lot of places that internal types are currently marked pub which is a bit confusing when trying to reason about whether APIs allow for violating invariants.

This enables the unreachable_pub lint which can automatically check for such situations. Most of them were corrected automatically using cargo fix

@tarcieri
Copy link
Contributor Author

Note: I only ran cargo fix on the 64-bit soft backend. There's so much conditional compilation it might be a bit difficult to track down all the places this lint is being violated.

In #850 I noticed there are a lot of places that internal types are
currently marked `pub` which is a bit confusing when trying to reason
about whether APIs allow for violating invariants.

This enables the `unreachable_pub` lint which can automatically check
for such situations. Most of them were corrected automatically using
`cargo fix`
@tarcieri tarcieri force-pushed the curve/unreachable_pub branch from 0ac2d01 to b7cf702 Compare November 25, 2025 17:16
@tarcieri
Copy link
Contributor Author

tarcieri commented Dec 4, 2025

Per #855 I guess this shouldn't apply to anything in the backend module since that contains documentation which is published to docs.rs (or at least, we should wait for that to be merged so we can test docs.rs rendering)

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