summary refs log tree commit diff
path: root/src/test/run-pass/const-polymorphic-paths.rs
AgeCommit message (Collapse)AuthorLines
2015-02-18rollup merge of #22210: aturon/stab-final-borrowAlex Crichton-2/+2
Conflicts: src/libcollections/btree/map.rs src/libcollections/str.rs src/libcollections/vec.rs src/libcore/borrow.rs src/libcore/hash/mod.rs src/libstd/collections/hash/map.rs src/libstd/collections/hash/set.rs
2015-02-18Round 1 fixes and rebase conflictsAlex Crichton-3/+3
2015-02-18Stabilize std::borrowAaron Turon-2/+2
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]
2015-01-15rustc: implement fully qualified UFCS expressions.Eduard Burtescu-3/+27
2015-01-06Fix falloutCorey Richardson-26/+25
2015-01-04rustc: allow paths in constants to refer to polymorphic items.Eduard Burtescu-0/+84