Skip to content

fix: Don't mark #[rustc_deprecated_safe_2024] functions as unsafe #17329

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 1 commit into from
Jun 3, 2024

Conversation

Noratrieb
Copy link
Member

std::env::set_var will be unsafe in edition 2024, but not before it. I couldn't quite figure out how to check for the span properly, so for now we just turn the false positives into false negatives, which are less bad.

`std::env::set_var` will be unsafe in edition 2024, but not before it.
I couldn't quite figure out how to check for the span properly, so for now
we just turn the false positives into false negatives, which are less bad.
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 2, 2024
@Veykril
Copy link
Member

Veykril commented Jun 3, 2024

I couldn't quite figure out how to check for the span properly

We don't carry hygiene around right now (aside from $crate resolution)
Thanks!
@bors r+

@bors
Copy link
Contributor

bors commented Jun 3, 2024

📌 Commit 0e1353b has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Jun 3, 2024

⌛ Testing commit 0e1353b with merge 89218cf...

@bors
Copy link
Contributor

bors commented Jun 3, 2024

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing 89218cf to master...

@bors bors merged commit 89218cf into rust-lang:master Jun 3, 2024
@Noratrieb Noratrieb deleted the rustc_deprecated_safe_2024 branch June 3, 2024 13:22
@lnicola lnicola changed the title Don't mark #[rustc_deprecated_safe_2024] functions as unsafe fix: Don't mark #[rustc_deprecated_safe_2024] functions as unsafe Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants