about summary refs log tree commit diff
path: root/src/test/run-pass/static-impl.rs
AgeCommit message (Collapse)AuthorLines
2013-03-29librustc: Remove `fail_unless!`Patrick Walton-6/+6
2013-03-13test: Fix tests. rs=testsPatrick Walton-7/+7
2013-03-13librustc: Remove implicit self from the language, except for old-style drop ↵Patrick Walton-13/+13
blocks.
2013-03-11librustc: Replace all uses of `fn()` with `&fn()`. rs=defunPatrick Walton-6/+6
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-6/+6
2013-02-27librustc: Forbid `pub` or `priv` before trait implementationsPatrick Walton-2/+2
2013-02-26Removed deprecated `str()` functions in int-template.rs and uint-template.rsMarvin Löbel-1/+1
2013-02-22Remove legacy_modes from test casesBrian Anderson-8/+7
2013-02-20librustc: Separate most trait bounds with '+'. rs=plussingPatrick Walton-2/+2
2013-02-15librustc: Stop parsing `impl Type : Trait` and fix several declarations that ↵Patrick Walton-2/+2
slipped through. r=tjc
2013-02-14librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵Patrick Walton-2/+2
rs=implflipping
2013-02-01check-fast fallout from removing export, r=burningtreeGraydon Hoare-1/+1
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-7/+5
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-5/+7
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-7/+5
module scope. r=tjc
2012-12-10Reliciense makefiles and testsuite. Yup.Graydon Hoare-0/+10
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-0/+2
#[legacy_exports];
2012-09-19demode the each() method on vec and other iterables.Niko Matsakis-2/+2
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-07Convert all kind bounds to camel case. Remove send, owned keywords.Brian Anderson-2/+2
2012-09-06Use callee ID when kind-checking expressions that may be overloadedTim Chevalier-2/+2
And fix up test cases that should have failed if not for this bug. Closes #2587
2012-09-05test: "import" -> "use"Patrick Walton-1/+1
2012-08-08Convert impls to new syntaxBrian Anderson-5/+4
2012-07-17rustc: Implement and enforce instance coherencePatrick Walton-6/+19
2012-07-14Move the world over to using the new style string literals and types. Closes ↵Michael Sullivan-4/+4
#2907.
2012-07-05A new `times` method on numeric typesBen Striegel-2/+2
This method is intended to elegantly subsume two common iteration functions. The first is `iter::range`, which is used identically to the method introduced in this commit, but currently works only on uints. The second is a common case of `{int, i8, uint, etc.}::range`, in the case where the inductive variable is ignored. Compare the usage of the three: ``` for iter::range(100u) { // do whatever } for int::range(0, 100) |_i| { // do whatever } for 100.times { // do whatever } ``` I feel that the latter reads much more nicely than the first two approaches, and unlike the first two the new method allows the user to ignore the specific type of the number (ineed, if we're throwing away the inductive variable, who cares what type it is?). A minor benefit is that this new method will be somewhat familiar to users of Ruby, from which we borrow the name "times".
2012-07-01Convert to new closure syntaxBrian Anderson-5/+5
2012-06-30Eliminate usages of old sugared call syntaxBrian Anderson-1/+1
2012-06-29Switch the compiler over to using ~[] notation instead of []/~. Closes #2759.Michael Sullivan-7/+7
2012-06-25Make vectors uglier ([]/~). Sorry. Should be temporary. Closes #2725.Michael Sullivan-7/+7
2012-04-06Convert old-style for loops to new-styleMarijn Haverbeke-2/+2
Most could use the each method, but because of the hack used to disambiguate old- and new-style loops, some had to use vec::each. (This hack will go away soon.) Issue #1619
2012-03-29core: Add extension methods for vecBrian Anderson-6/+6
2012-03-22make --enforce-mut-vars always on, add mut annotations to remaining filesNiko Matsakis-3/+3
2012-02-14Add [X].len() to core, use it in trans modulesMarijn Haverbeke-2/+2
2012-01-23s/block()/fn()/gNiko Matsakis-3/+3
2011-12-19Add type argument field to expr_pathMarijn Haverbeke-0/+1
This way, you can explicitly provide type parameters when calling a generic method. Issue #1227
2011-12-18Only look for a matching method when normal field access failsMarijn Haverbeke-1/+24
We should probalby warn when defining a method foo on {foo: int} etc. This should reduce the amount of useless typevars that are allocated. Issue #1227
2011-12-16Change syntax for implMarijn Haverbeke-0/+18
Move the name of the bundle to the front, allow type parameters (not handled yet), and add a 'for' keyword: impl utils for int { fn str() -> str { int::str(self) } fn times(f: block()) { ... } }