Skip to content

Conversation

GnomedDev
Copy link
Contributor

This is a pretty dangerous mistake that I feel like is really easy to run into with this pattern, and someone did recently on the Rust community discord (although with Unprotected instead of Unsafe), so let's get this linted against.

changelog: [constructable_unsafe_type]: Add lint for publically constructable Unsafe types

@rustbot
Copy link
Collaborator

rustbot commented Nov 8, 2024

r? @Alexendoo

rustbot has assigned @Alexendoo.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Nov 8, 2024
@GnomedDev GnomedDev force-pushed the public-unsafe-token branch from a4ff175 to 0743df2 Compare November 8, 2024 01:27
@GnomedDev
Copy link
Contributor Author

I just got the suggestion to change this from linting based on type name to linting if the only function constructors are unsafe, which sounds like a better idea.

@GnomedDev GnomedDev marked this pull request as draft November 8, 2024 01:40
@Alexendoo Alexendoo added S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status) and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties labels Feb 1, 2025
@rustbot
Copy link
Collaborator

rustbot commented Mar 31, 2025

☔ The latest upstream changes (possibly d28d234) made this pull request unmergeable. Please resolve the merge conflicts.

@Jarcho
Copy link
Contributor

Jarcho commented Sep 17, 2025

Ping @GnomedDev from triage. Do you plan to return to working on this?

@GnomedDev GnomedDev closed this Sep 17, 2025
@GnomedDev
Copy link
Contributor Author

No, anyone can take it on if they feel like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-author Status: This is awaiting some action from the author. (Use `@rustbot ready` to update this status)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants