-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Reduce the genericity of closures in the iterator traits #62429
Merged
Merged
Commits on Aug 12, 2019
-
Reduce the genericity of closures in the iterator traits
By default, closures inherit the generic parameters of their scope, including `Self`. However, in most cases, the closures used to implement iterators don't need to be generic on the iterator type, only its `Item` type. We can reduce this genericity by redirecting such closures through local functions. This does make the closures more cumbersome to write, but it will hopefully reduce duplication in their monomorphizations, as well as their related type lengths.
Configuration menu - View commit details
-
Copy full SHA for e67620a - Browse repository at this point
Copy the full SHA e67620aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 95e2a4f - Browse repository at this point
Copy the full SHA 95e2a4fView commit details -
Configuration menu - View commit details
-
Copy full SHA for af1bfbe - Browse repository at this point
Copy the full SHA af1bfbeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a04c76 - Browse repository at this point
Copy the full SHA 6a04c76View commit details -
Configuration menu - View commit details
-
Copy full SHA for 755c091 - Browse repository at this point
Copy the full SHA 755c091View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0e300e4 - Browse repository at this point
Copy the full SHA 0e300e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7539fc6 - Browse repository at this point
Copy the full SHA 7539fc6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40ecbc7 - Browse repository at this point
Copy the full SHA 40ecbc7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ef95ff - Browse repository at this point
Copy the full SHA 9ef95ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27ddbf4 - Browse repository at this point
Copy the full SHA 27ddbf4View commit details -
Configuration menu - View commit details
-
Copy full SHA for d940ddf - Browse repository at this point
Copy the full SHA d940ddfView commit details -
Configuration menu - View commit details
-
Copy full SHA for b1fd3d0 - Browse repository at this point
Copy the full SHA b1fd3d0View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac113f0 - Browse repository at this point
Copy the full SHA ac113f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for df3d686 - Browse repository at this point
Copy the full SHA df3d686View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff60eca - Browse repository at this point
Copy the full SHA ff60ecaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5902522 - Browse repository at this point
Copy the full SHA 5902522View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d7fc4d - Browse repository at this point
Copy the full SHA 2d7fc4dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 46a62ca - Browse repository at this point
Copy the full SHA 46a62caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f82c0c - Browse repository at this point
Copy the full SHA 0f82c0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for f100354 - Browse repository at this point
Copy the full SHA f100354View commit details -
Configuration menu - View commit details
-
Copy full SHA for fc4d037 - Browse repository at this point
Copy the full SHA fc4d037View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9c53396 - Browse repository at this point
Copy the full SHA 9c53396View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4189a0 - Browse repository at this point
Copy the full SHA c4189a0View commit details
Commits on Aug 13, 2019
-
Configuration menu - View commit details
-
Copy full SHA for bca6f28 - Browse repository at this point
Copy the full SHA bca6f28View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.