| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2014-02-28 | std: Change assert_eq!() to use {} instead of {:?} | Alex Crichton | -0/+1 | |
| Formatting via reflection has been a little questionable for some time now, and it's a little unfortunate that one of the standard macros will silently use reflection when you weren't expecting it. This adds small bits of code bloat to libraries, as well as not always being necessary. In light of this information, this commit switches assert_eq!() to using {} in the error message instead of {:?}. In updating existing code, there were a few error cases that I encountered: * It's impossible to define Show for [T, ..N]. I think DST will alleviate this because we can define Show for [T]. * A few types here and there just needed a #[deriving(Show)] * Type parameters needed a Show bound, I often moved this to `assert!(a == b)` * `Path` doesn't implement `Show`, so assert_eq!() cannot be used on two paths. I don't think this is much of a regression though because {:?} on paths looks awful (it's a byte array). Concretely speaking, this shaved 10K off a 656K binary. Not a lot, but sometime significant for smaller binaries. | ||||
| 2014-02-11 | Change `xfail` directives in compiletests to `ignore`, closes #11363 | Florian Hahn | -2/+2 | |
| 2013-11-26 | librustc: Make `||` lambdas not infer to `proc`s | Patrick Walton | -1/+1 | |
| 2013-11-18 | librustc: Convert `~fn()` to `proc()` everywhere. | Patrick Walton | -1/+1 | |
| 2013-06-28 | librustc: Remove the broken overloaded assign-ops from the language. | Patrick Walton | -1/+1 | |
| They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits. | ||||
| 2013-05-29 | librustc: Stop reexporting the standard modules from prelude. | Patrick Walton | -0/+3 | |
| 2013-05-19 | Use assert_eq! rather than assert! where possible | Corey Richardson | -6/+6 | |
| 2013-05-08 | test: Fix tests. | Patrick Walton | -1/+1 | |
| 2013-03-29 | librustc: Remove `fail_unless!` | Patrick Walton | -6/+6 | |
| 2013-03-27 | Autoref the argument to the index operator (#4920) | Niko Matsakis | -2/+2 | |
| 2013-03-22 | test: Remove `pure` from the test suite | Patrick Walton | -7/+7 | |
| 2013-03-07 | librustc: Convert all uses of `assert` over to `fail_unless!` | Patrick Walton | -6/+6 | |
| 2013-03-02 | test: Remove `fn@`, `fn~`, and `fn&` from the test suite. rs=defun | Patrick Walton | -1/+2 | |
| 2013-02-22 | Remove legacy_modes from test cases | Brian Anderson | -1/+0 | |
| 2013-02-14 | librustc: Replace `impl Type : Trait` with `impl Trait for Type`. ↵ | Patrick Walton | -6/+6 | |
| rs=implflipping | ||||
| 2013-02-01 | check-fast fallout from removing export, r=burningtree | Graydon Hoare | -1/+1 | |
| 2013-01-11 | test: add test for overloading logical negation operator | Andrew Paseltiner | -0/+11 | |
| 2012-12-10 | Reliciense makefiles and testsuite. Yup. | Graydon Hoare | -0/+10 | |
| 2012-12-05 | test: More bustage fixes. rs=me | Patrick Walton | -1/+1 | |
| 2012-12-05 | test: More run-pass test fixes | Patrick Walton | -1/+1 | |
| 2012-11-26 | libcore: Add explicit self to all overloaded operators but Add and Index. ↵ | Patrick Walton | -3/+3 | |
| r=brson | ||||
| 2012-11-19 | rustc: Implement explicit self for Eq and Ord. r=graydon | Patrick Walton | -3/+3 | |
| 2012-09-25 | Demode dvec | Tim Chevalier | -1/+1 | |
| 2012-09-20 | rustc: De-mode all overloaded operators | Patrick Walton | -7/+7 | |
| 2012-09-19 | xfail-fast the legacy_mode run-pass tests | Brian Anderson | -0/+1 | |
| 2012-09-18 | rustc: Remove legacy mode inference, unless #[legacy_modes] is used | Patrick Walton | -0/+2 | |
| 2012-09-07 | Convert field terminators to commas. Stop parsing semis. | Brian Anderson | -2/+2 | |
| 2012-09-07 | rustc: Add an "ne" method to the Eq trait, and implement it everywhere | Patrick Walton | -0/+1 | |
| 2012-09-02 | Camel case core::ops | Brian Anderson | -4/+4 | |
| 2012-08-29 | rustc: Make `<` and `=` into traits | Patrick Walton | -0/+6 | |
| 2012-07-27 | rustc: Use coherence for operator overloading. | Patrick Walton | -20/+25 | |
| The only use of the old-style impls is now placement new. | ||||
| 2012-07-17 | rustc: Implement and enforce instance coherence | Patrick Walton | -1/+8 | |
| 2012-03-22 | make --enforce-mut-vars always on, add mut annotations to remaining files | Niko Matsakis | -1/+1 | |
| 2012-02-02 | Add test case for issue #1733 | Marijn Haverbeke | -0/+2 | |
| 2012-01-30 | Alter/remove tests that include/concern ternary | Paul Woolcock | -1/+1 | |
| 3 tests, pretty/block-disambig.rs, run-pass/operator-overloading.rs, and run-pass/weird-exprs.rs, all included the ternary operator. These were changed to use the if-then-else construct instead. 2 tests, run-pass/block-arg-in-ternary.rs and run-pass/ternary.rs, were only there because of the ternary operator, and were removed. | ||||
| 2012-01-27 | Use the method name 'unary-' for overloading negation | Marijn Haverbeke | -1/+1 | |
| It's less likely to clash with something than 'neg'. Issue #1520 | ||||
| 2012-01-26 | Use operator names for operator methods | Marijn Haverbeke | -5/+9 | |
| The methods used to implement operators now simply use the name of the operator itself, except for unary -, which is called min to not clash with binary -. Index is called []. Closes #1520 | ||||
| 2012-01-26 | Allow operator overloading of the indexing operator | Marijn Haverbeke | -0/+5 | |
| The method `op_index` (which takes a single argument) is used for this. Issue #1520 | ||||
| 2012-01-26 | First stab at operator overloading | Marijn Haverbeke | -0/+17 | |
| When no built-in interpretation is found for one of the operators mentioned below, the typechecker will try to turn it into a method call with the name written next to it. For binary operators, the method will be called on the LHS with the RHS as only parameter. Binary: + op_add - op_sub * op_mul / op_div % op_rem & op_and | op_or ^ op_xor << op_shift_left >> op_shift_right >>> op_ashift_right Unary: - op_neg ! op_not Overloading of the indexing ([]) operator isn't finished yet. Issue #1520 | ||||
