about summary refs log tree commit diff
path: root/src/libsyntax
AgeCommit message (Collapse)AuthorLines
2013-06-28librustc: Rewrite reachability and forbid duplicate methods in type ↵Patrick Walton-254/+273
implementations. This should allow fewer symbols to be exported.
2013-06-28librustc: Remove the broken overloaded assign-ops from the language.Patrick Walton-66/+79
They evaluated the receiver twice. They should be added back with `AddAssign`, `SubAssign`, etc., traits.
2013-06-28libsyntax: Remove "copy" pattern bindings from the languagePatrick Walton-2/+7
2013-06-28libsyntax: Fix merge falloutPatrick Walton-2/+4
2013-06-28librustc: Disallow "mut" from distributing over bindings.Patrick Walton-2/+29
This is the backwards-incompatible part of per-binding-site "mut".
2013-06-28librustc: Change "Owned" to "Send" everywherePatrick Walton-5/+5
2013-06-28librustc: Rename Const to FreezePatrick Walton-3/+3
2013-06-27auto merge of #7430 : huonw/rust/vec-kill, r=thestingerbors-2/+1
2013-06-27Remove many shared pointersPhilipp Brüschweiler-22/+20
Mostly just low-haning fruit, i.e. function arguments that were @ even though & would work just as well. Reduces librustc.so size by 200k when compiling without -O, by 100k when compiling with -O.
2013-06-27Convert vec::[mut_]slice to methods, remove vec::const_slice.Huon Wilson-2/+1
2013-06-27auto merge of #7361 : brson/rust/incoming, r=brsonbors-13/+14
2013-06-26auto merge of #7420 : mozilla/rust/rollup, r=thestingerbors-13/+13
2013-06-26Fix pretty-printing for bounded closures. Close #7333.Ben Blum-6/+11
2013-06-26Infer default static/Owned bounds for unbounded heap fns/traits (#7264)Ben Blum-42/+60
2013-06-26Refactor extra::term a bitKevin Ballard-6/+6
Move all the colors into a nested mod named color instead of prefixing with "color_". Define a new type color::Color, and make this a u16 instead of a u8 (to allow for easy comparisons against num_colors, which is a u16). Remove color_supported and replace it with num_colors. Teach fg() and bg() to "dim" bright colors down to the normal intensity if num_colors isn't high enough. Remove unnecessary copies, and fix a bug where a terminfo parse failure would try to use the wrong error and end up failing.
2013-06-26Make ^~~~~ colour dependent on error/warning/note level. Also correct ↵Ben Blum-7/+7
spelling of squigglies.
2013-06-25auto merge of #7269 : luqmana/rust/drop, r=thestingerbors-1/+1
Finally rename finalize to drop. Closes #4332.
2013-06-25Merge remote-tracking branch 'mozilla/master' into incomingBrian Anderson-138/+133
Conflicts: src/librustc/middle/astencode.rs src/librustc/middle/check_const.rs
2013-06-25Change finalize -> drop.Luqman Aden-1/+1
2013-06-25auto merge of #7365 : cmr/rust/syntax_cleanup, r=Aatchbors-222/+97
Sets the stage for further cleanup (especially mass-slaughter of `@`)
2013-06-25Remove extraCorey Richardson-1/+1
2013-06-25remove the redundant `each` method from OptVecDaniel Micay-16/+9
2013-06-25great renaming propagation: syntaxCorey Richardson-222/+97
2013-06-25Rename all files with the 'rc' extensionAlex Crichton-0/+0
2013-06-25auto merge of #7254 : Blei/rust/intrinsic-overhaul, r=cmrbors-105/+99
This sets the `get_tydesc()` return type correctly and removes the intrinsic module. See #3730, #3475. Update: this now also removes the unused shape fields in tydescs.
2013-06-25auto merge of #7291 : alexcrichton/rust/static-mut, r=huonwbors-16/+24
This adds both `static mut` items and `static mut` foreign items. This involved changing far less code than I thought it was going to, but the tests seem to pass and the variables seem functional. I'm more than willing to write more tests, so suggestions are welcome! Closes #553
2013-06-25Warning policeJames Miller-1/+1
2013-06-24Merge remote-tracking branch 'cmr/various-cleanup' into incomingBrian Anderson-13/+14
2013-06-24remove old_iterDaniel Micay-81/+40
the `test/run-pass/class-trait-bounded-param.rs` test was xfailed and written in an ancient dialect of Rust so I've just removed it this also removes `to_vec` from DList because it's provided by `std::iter::to_vec` an Iterator implementation is added for OptVec but some transitional internal iterator methods are still left
2013-06-23Support foreign 'static mut' variables as wellAlex Crichton-7/+11
2013-06-23Add 'static mut' items to the languageAlex Crichton-9/+13
2013-06-23Parse and typecheck (not kindcheck) bounds on trait paths.Ben Blum-60/+93
2013-06-23syntax: Remove unused tokensPhilipp Brüschweiler-105/+99
TyDesc, TyVisitor and intrinsic are not used anymore.
2013-06-22auto merge of #7274 : thestinger/rust/size_hint, r=huonwbors-104/+106
I ran into a weird lifetime bug blocking updating the `collect` method to use `FromIterator`, but everything here works fine.
2013-06-23vec: remove BaseIter implementationDaniel Micay-104/+106
I removed the `static-method-test.rs` test because it was heavily based on `BaseIter` and there are plenty of other more complex uses of static methods anyway.
2013-06-22auto merge of #7204 : alexcrichton/rust/deriving-to-string, r=pcwaltonbors-11/+64
Closes #7180 and #7179. Before, the `deriving(ToStr)` attribute was essentially `fmt!("%?")`. This changes it to recursively invoke `to_str()` on fields instead of relying on `fmt!`-style things. This seems more natural to me and what should actually be expected.
2013-06-22Merge pull request #7227 from alexcrichton/issue-7218Daniel Micay-0/+5
Fix compiling empty fmt! strings
2013-06-22Merge pull request #7230 from Blei/green-squiggleDaniel Micay-13/+20
syntax::diagnostics: Color the ^~~~ in green for better visibility
2013-06-22Fix compiling empty fmt! stringsAlex Crichton-0/+5
2013-06-22Expand the deriving(ToStr) implementationAlex Crichton-11/+64
2013-06-21Remove `ast::pure_fn` and all concept of `pure` from the compilerCorey Richardson-13/+14
2013-06-21vec: rm old_iter implementations, except BaseIterDaniel Micay-35/+35
The removed test for issue #2611 is well covered by the `std::iterator` module itself. This adds the `count` method to `IteratorUtil` to replace `EqIter`.
2013-06-21libsyntax: cleanup warningsJames Miller-3/+1
2013-06-21Remove all #[cfg(stage0)]-protected codeJames Miller-175/+0
New snapshot means this can all go. Also removes places that have comments that say they are workarounds for stage0 errors.
2013-06-20libsyntax: Remove `drop` as a keyword.Luqman Aden-35/+202
2013-06-19syntax::diagnostics: Color the ^~~~ in green for better visibilityPhilipp Brüschweiler-13/+20
Fixes #7164.
2013-06-18replace #[inline(always)] with #[inline]. r=burningtree.Graydon Hoare-22/+22
2013-06-16Do not strip leading whitespace when parsing doc comments.SiegeLord-23/+65
This change prevents the indentation in code blocks inside the /// doc comments from being eaten. The indentation that is the same across the consecutive doc comments is removed by the uindent_pass in librustdoc.
2013-06-16Add copies to type params with Copy boundNiko Matsakis-135/+149
2013-06-16auto merge of #7142 : alexcrichton/rust/deriving-zero, r=pcwaltonbors-0/+98
This allows mass-initialization of large structs without having to specify all the fields. I'm a bit hesitant, but I wanted to get this out there. I don't really like using the `Zero` trait, because it doesn't really make sense for a type like `HashMap` to use `Zero` as the 'blank allocation' trait. In theory there'd be a new trait, but then that's adding cruft to the language which may not necessarily need to be there. I do think that this can be useful, but I only implemented `Zero` on the basic types where I thought it made sense, so it may not be all that usable yet. (opinions?)