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

Add discussion of a "opt-out" lint for "opt-in" traits #21

Closed
nikomatsakis opened this issue Mar 26, 2014 · 2 comments
Closed

Add discussion of a "opt-out" lint for "opt-in" traits #21

nikomatsakis opened this issue Mar 26, 2014 · 2 comments
Labels
T-lang Relevant to the language team, which will review and decide on the RFC.

Comments

@nikomatsakis
Copy link
Contributor

Per the concerns mentioned on PR #19 by @bill-myers and @cmr, one option to help library authors remember to implement Send and Share would be a lint that warns you about builtin traits that you could have implemented but did not. I envision this being part of a series of lints that enforce best practices for libraries (and I could even see having them warn by default in library mode, but perhaps not app mode). I intend to add discussion of this to the PR.

@ftxqxd
Copy link
Contributor

ftxqxd commented Feb 6, 2015

Not really relevant any more since Copy is the only opt-in built-in trait, and that’s already got a lint.

@nrc nrc added the T-lang Relevant to the language team, which will review and decide on the RFC. label Aug 17, 2016
@withoutboats
Copy link
Contributor

As @P1start commented almost 2 years ago, this is no longer how Send and Sync work. Closing.

withoutboats pushed a commit to withoutboats/rfcs that referenced this issue Jan 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-lang Relevant to the language team, which will review and decide on the RFC.
Projects
None yet
Development

No branches or pull requests

4 participants