-
Notifications
You must be signed in to change notification settings - Fork 13.3k
The allow-by-default lint missing_copy_implementations
does not honor !Copy
impls
#101980
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
Comments
The compiler only checks if the type implements rust/compiler/rustc_lint/src/builtin.rs Line 753 in 4af79cc
|
I think this makes the trick, you are right! the last think is to explore what is the code of the method rust/compiler/rustc_middle/src/ty/util.rs Lines 824 to 830 in 9b0a099
The code of the method looks not so trivial :) rust/compiler/rustc_middle/src/ty/sty.rs Lines 2201 to 2245 in 3271760
If you did not find already I can play with your on it by mentoring you, I had some experience in "git archeology" :) @rustbot label +E-mentor |
@rustbot claim |
…copy-impl, r=b-naber Make lint missing-copy-implementations honor negative `Copy` impls Fixes rust-lang#101980. `@rustbot` label A-lint F-negative_impls
I would expect the following code to compile successfully since we explicitly opt out of implementing
Copy
:However, the code fails to compile with the following error message:
@rustbot label C-bug A-lint F-negative_impls
The text was updated successfully, but these errors were encountered: