Skip to content

Treat safe target_feature functions as unsafe by default#134317

Closed
oli-obk wants to merge 1 commit intorust-lang:masterfrom
oli-obk:push-kmzkoqkuosko
Closed

Treat safe target_feature functions as unsafe by default#134317
oli-obk wants to merge 1 commit intorust-lang:masterfrom
oli-obk:push-kmzkoqkuosko

Conversation

@oli-obk
Copy link
Copy Markdown
Contributor

@oli-obk oli-obk commented Dec 14, 2024

This unblocks

As I stated in #134090 (comment) I think the previous impl was too easy to get wrong, as by default it treated safe target feature functions as safe and had to add additional checks for when they weren't. Now the logic is inverted. By default they are unsafe and you have to explicitly handle safe target feature functions.

I will make another version of this PR that doesn't modify the safety enum but just checks the attrs. Should be less invasive

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

Labels

A-rustdoc-json Area: Rustdoc JSON backend S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants