Skip to content
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

Deny WHERE_CLAUSE_OBJECT_SAFETY in Rust 2021 #81992

Closed
wants to merge 3 commits into from

Conversation

rylev
Copy link
Member

@rylev rylev commented Feb 11, 2021

As part of #80165 this upgrades the WHERE_CLAUSE_OBJECT_SAFETY lint from Warn to Deny in the 2021 edition. In practice this doesn't change very much as the compiler is still compiled in 2018 edition.

There is active discussion on whether a deny by default lint is the right path or whether this should be handled in another part of the compiler as a hard error. This PR can be used to further that discussion.

r? @nikomatsakis

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 11, 2021
@rylev rylev added I-nominated T-lang Relevant to the language team, which will review and decide on the PR/issue. labels Feb 11, 2021
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@crlf0710 crlf0710 added the D-edition Diagnostics: An error or lint that should account for edition differences. label Mar 5, 2021
@rylev
Copy link
Member Author

rylev commented Mar 11, 2021

In discussions on lints for editions in #80165 it was decided that this particular lint represents a bug fix and as such can be converted into an error for all editions at some point in the future. We might do a crater run to determine if this would break too much of the ecosystem in which case we might make this on an edition. I'm going to close this for now though until any relevant decision is made.

@rylev rylev closed this Mar 11, 2021
@rylev rylev deleted the deny-where-clause-object-safety branch March 11, 2021 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D-edition Diagnostics: An error or lint that should account for edition differences. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-lang Relevant to the language 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