-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
checker: have stricter checks for .clone()
requirement, disallow empty maps
#10194
Conversation
Personal advices: Array assignments should be Clone by default, If you need direct assignment, you can use unsafe to do that. |
Build fails:
|
@yuyi98 I also support this, but Alex wants clone to be optimized first: #10011 (comment) |
I'm confused by the "disallow empty maps" - what does that mean? That you won't be allowed to clone an empty map? If so... why not? |
@JalonSolov No, this PR just fixes 2 completely unrelated bugs. The empty map fix is that doing |
Gotcha. So disallow completely empty maps, meaning they don't even specify the key and value types. |
ping? |
Fixes #10019
Fixes #10011
Depends On #10328