-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Stabilize std::borrow #22210
Closed
Closed
Stabilize std::borrow #22210
Commits on Feb 18, 2015
-
Configuration menu - View commit details
-
Copy full SHA for df92fe3 - Browse repository at this point
Copy the full SHA df92fe3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 92d65ab - Browse repository at this point
Copy the full SHA 92d65abView commit details -
Replace
assert_no_late_bound_regions
with`no_late_bound_regions().unwrap()`, which allows us to write code that doesn't necessarily *fail* when there are higher-ranked trait bounds.
Configuration menu - View commit details
-
Copy full SHA for 48c70d6 - Browse repository at this point
Copy the full SHA 48c70d6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e84a719 - Browse repository at this point
Copy the full SHA e84a719View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7134ad4 - Browse repository at this point
Copy the full SHA 7134ad4View commit details -
traits: break apart the "full normalization" code used for normalizing
parameter environments so that it can be used elsewhere.
Configuration menu - View commit details
-
Copy full SHA for 5511add - Browse repository at this point
Copy the full SHA 5511addView commit details -
Extend the implicator so it produces general obligations and also so
that it produces "outlives" relations for associated types. Add several tests relating to rust-lang#22246.
Configuration menu - View commit details
-
Copy full SHA for 2939e48 - Browse repository at this point
Copy the full SHA 2939e48View commit details -
Configuration menu - View commit details
-
Copy full SHA for a994a99 - Browse repository at this point
Copy the full SHA a994a99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9bb3b37 - Browse repository at this point
Copy the full SHA 9bb3b37View commit details -
This commit stabilizes `std::borrow`, making the following modifications to catch up the API with language changes: * It renames `BorrowFrom` to `Borrow`, as was originally intended (but blocked for technical reasons), and reorders the parameters accordingly. * It moves the type parameter of `ToOwned` to an associated type. This is somewhat less flexible, in that each borrowed type must have a unique owned type, but leads to a significant simplification for `Cow`. Flexibility can be regained by using newtyped slices, which is advisable for other reasons anyway. * It removes the owned type parameter from `Cow`, making the type much less verbose. * Deprecates the `is_owned` and `is_borrowed` predicates in favor of direct matching. The above API changes are relatively minor; the basic functionality remains the same, and essentially the whole module is now marked `#[stable]`. [breaking-change]
Configuration menu - View commit details
-
Copy full SHA for 9b70775 - Browse repository at this point
Copy the full SHA 9b70775View 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.