about summary refs log tree commit diff
path: root/src/test/run-pass/class-impl-very-parameterized-trait.rs
AgeCommit message (Collapse)AuthorLines
2013-05-14Use static string with fail!() and remove fail!(fmt!())Björn Steinbrink-2/+2
fail!() used to require owned strings but can handle static strings now. Also, it can pass its arguments to fmt!() on its own, no need for the caller to call fmt!() itself.
2013-05-10test: Use the new `for` protocolAlex Crichton-7/+8
2013-05-07Add pop() and swap() to the Map traitAlex Crichton-0/+4
2013-04-28make way for a new iter moduleDaniel Micay-1/+1
2013-04-10tests: changes in response to #5656Niko Matsakis-5/+5
2013-04-10Revert map.each to something which takes two parametersNiko Matsakis-16/+12
rather than a tuple. The current setup iterates over `BaseIter<(&'self K, &'self V)>` where 'self is a lifetime declared *in the each method*. You can't place such a type in the impl declaration. The compiler currently allows it, but this will not be legal under #5656 and I'm pretty sure it's not sound now.
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-5/+5
2013-03-26librustc: Modify all code to use new lifetime binder syntaxPatrick Walton-1/+1
2013-03-24expose find_mut in the Map traitDaniel Micay-0/+2
2013-03-22test: Remove `pure` from the test suitePatrick Walton-12/+12
2013-03-22librustc: Remove all uses of `static` from functions. rs=destaticPatrick Walton-1/+1
2013-03-18librustc: Make the compiler ignore purity.Patrick Walton-2/+2
For bootstrapping purposes, this commit does not remove all uses of the keyword "pure" -- doing so would cause the compiler to no longer bootstrap due to some syntax extensions ("deriving" in particular). Instead, it makes the compiler ignore "pure". Post-snapshot, we can remove "pure" from the language. There are quite a few (~100) borrow check errors that were essentially all the result of mutable fields or partial borrows of `@mut`. Per discussions with Niko I think we want to allow partial borrows of `@mut` but detect obvious footguns. We should also improve the error message when `@mut` is erroneously reborrowed.
2013-03-13add the mutate_values method to the Map traitDaniel Micay-0/+4
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-3/+3
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-5/+5
2013-03-06Add manual &self/ and &static/ and /&self declarations thatNiko Matsakis-4/+4
are currently inferred. New rules are coming that will require them to be explicit. All add some explicit self declarations.
2013-02-28librustc: Mark all type implementations public. rs=impl-publicityPatrick Walton-2/+2
2013-02-25test: Residual de-muting of the test suite. rs=demutingPatrick Walton-7/+6
2013-02-17`pub fn main` for run-pass tests that didn't have itJed Davis-1/+1
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-5/+5
rs=implflipping
2013-02-13Remove die!, raplace invocations with fail! Issue #4524 pt 3Nick Desaulniers-1/+1
2013-02-07rm each method from the Map traitDaniel Micay-10/+15
the map types should implement BaseIter instead
2013-02-03cat modernization (cleanup of a run-pass test)Daniel Micay-97/+84
2013-02-01check-fast fallout from removing export, r=burningtreeGraydon Hoare-1/+1
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-1/+1
2013-01-29librustc: Disallow trait bounds in types, enumerations, and structure ↵Patrick Walton-1/+1
definitions. r=tjc
2013-01-29libstd: Remove "dual impls" from the language and enforce coherence rules. ↵Patrick Walton-1/+1
r=brson "Dual impls" are impls that are both type implementations and trait implementations. They can lead to ambiguity and so this patch removes them from the language. This also enforces coherence rules. Without this patch, records can implement traits not defined in the current crate. This patch fixes this, and updates all of rustc to adhere to the new enforcement. Most of this patch is fixing rustc to obey the coherence rules, which involves converting a bunch of records to structs.
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-11-25Fix testBrian Anderson-2/+2
2012-11-25Add improvements to insert_with_keyKevin Cantu-1/+8
This commit adds a lower-level implementation of the generic `insert_with_key` which I expect to be faster. Now insert could be defined with insert_with_key, too, although I'm not sure we want to do that. This also clarifies the tests a bit and adds an `insert_with` function.
2012-11-25Add an insert_with_key function to the Map traitKevin Cantu-0/+8
2012-11-19rustc: Implement explicit self for Eq and Ord. r=graydonPatrick Walton-3/+3
2012-11-18Made Map.contains_key, contains_key_ref, and get pure.Jesse Jones-3/+3
2012-09-23Make it illegal to use modes in a fn signature with providingNiko Matsakis-3/+3
an explicit variable name. (Step one to changing the defaults) First step to #3535
2012-09-20rustc: De-mode all overloaded operatorsPatrick Walton-3/+3
2012-09-19xfail-fast the legacy_mode run-pass testsBrian Anderson-0/+1
2012-09-18rustc: Remove legacy mode inference, unless #[legacy_modes] is usedPatrick Walton-0/+2
2012-09-11Convert 'use' to 'extern mod'. Remove old 'use' syntaxBrian Anderson-1/+1
2012-09-11Remove priv sections from classes. Obsolete the syntaxBrian Anderson-4/+2
2012-09-10Convert std::map to camel caseBrian Anderson-1/+1
2012-09-10Convert class methods to impl methods. Stop parsing class methodsBrian Anderson-8/+15
2012-09-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-2/+2
2012-09-07Convert 'again' to 'loop'. Remove 'again' keywordBrian Anderson-2/+2
2012-09-07Remove 'let' syntax for struct fieldsBrian Anderson-3/+3
2012-09-07rustc: Add an "ne" method to the Eq trait, and implement it everywherePatrick Walton-0/+1
2012-09-06Remove struct ctorsBrian Anderson-3/+7
2012-09-05test: "import" -> "use"Patrick Walton-1/+1
2012-08-29rustc: Make `<` and `=` into traitsPatrick Walton-8/+14
2012-08-26Camel case the option typeBrian Anderson-9/+9
2012-08-23`m1!{...}` -> `m1!(...)`Paul Stansifer-3/+3