about summary refs log tree commit diff
path: root/src/libsyntax/print/pprust.rs
AgeCommit message (Collapse)AuthorLines
2013-02-03Converted libcore/uint-template.rs to the new string functions.Marvin Löbel-5/+5
- Moved ToStr implementation of unsigned integers to uint-template.rs. - Marked the `str()` function as deprecated. - Forwarded all conversion functions to `core::num::to_str_common()` and `core::num::from_str_common()`. - Fixed most places in the codebase where `to_str()` is being used. - Added uint-template to_str and from_str overflow tests.
2013-02-01Merge remote-tracking branch 'nickdesaulniers/issue4524' into nocomm1Brian Anderson-7/+0
2013-02-01Remove fail keyword from lexer & parser and clean up remaining calls toNick Desaulniers-7/+0
fail Fix merge conflicts - Issue 4524
2013-01-31test cases, cleanupJohn Clements-6/+7
2013-01-31Replace most invocations of fail keyword with die! macroNick Desaulniers-8/+8
2013-01-31Workaround for #4717: pad contents of ast. rs=breakageNiko Matsakis-1/+1
2013-01-31Finalize moves-based-on-type implementation.Niko Matsakis-33/+14
Changes: - Refactor move mode computation - Removes move mode arguments, unary move, capture clauses (though they still parse for backwards compatibility) - Simplify how moves are handled in trans - Fix a number of illegal copies that cropped up - Workaround for bug involving def-ids in params (see details below) Future work (I'll open bugs for these...): - Improve error messages for moves that are due to bindings - Add support for moving owned content like a.b.c to borrow check, test in trans (but I think it'll "just work") - Proper fix for def-ids in params Def ids in params: Move captures into a map instead of recomputing. This is a workaround for a larger bug having to do with the def-ids associated with ty_params, which are not always properly preserved when inlining. I am not sure of my preferred fix for the larger bug yet. This current fix removes the only code in trans that I know of which relies on ty_param def-ids, but feels fragile.
2013-01-30librustc: Remove legacy exports from the language. r=brsonPatrick Walton-17/+12
2013-01-29libsyntax: De-export libsyntax. rs=deexportingPatrick Walton-179/+192
2013-01-29libsyntax: De-export a lot of libsyntax. rs=deëxportingPatrick Walton-3/+3
2013-01-28syntax: Don't add an extra space before the last comma...Tim Chevalier-1/+0
...when printing struct update expressions.
2013-01-24replace ConstVector trait with the Container traitDaniel Micay-8/+8
2013-01-24unit test cases now pass, added a few to the internerJohn Clements-27/+50
2013-01-23cleaning up, adding testsJohn Clements-5/+5
2013-01-23libsyntax: Implement the `+` syntax for multiple trait bounds. r=tjcPatrick Walton-0/+7
2013-01-22syntax: Pretty-print `mut` qualifiers on argsTim Chevalier-1/+4
2013-01-10librustc: Implement `&static` as the replacement for `Durable`. r=nmatsakisPatrick Walton-3/+6
2013-01-09A collection of refactorings that I found it hard/tiresome to divide:Niko Matsakis-2/+5
- Make `extern fn()` assignable to any closure type, rather than a subtype. - Remove unused int_ty_set and float_ty_set - Refactor variable unification and make it more DRY - Do fn sub/lub/glb on the level of fn_sig - Rename infer::to_str::ToStr to infer::to_str::InferStr - Capitalize names of various types - Correct hashing of FnMeta - Convert various records-of-fns into structs-of-fns. This is both eliminating use of deprecated features and more forwards compatible with fn reform. r=pcwalton
2013-01-09syntax: convert ast::spanned into a structErick Tryzelaar-1/+2
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-2/+4
module scope. r=tjc
2013-01-08Revert "librustc: Make unqualified identifier searches terminate at the ↵Patrick Walton-4/+2
nearest module scope. r=tjc" This reverts commit a8d37af2473da79be704c9ce2374f278c47177b6.
2013-01-08librustc: Make unqualified identifier searches terminate at the nearest ↵Patrick Walton-2/+4
module scope. r=tjc
2013-01-08Rename identifiers that still use 'alt' to use 'match'Lindsey Kuper-6/+6
This'll be less confusing for anyone who works on match in future.
2012-12-27librustc: Terminate name searches at the nearest module scope for paths that ↵Patrick Walton-6/+22
contain at least two components. r=graydon
2012-12-17Add support for destructuring vectors in match expressionsJakub Wieczorek-0/+10
2012-12-13librustc: Make `use` statements crate-relative by default. r=brsonPatrick Walton-2/+2
2012-12-12syntax: remove remaining #syntaxext machinery. Close #3516.Graydon Hoare-16/+19
2012-12-12syntax: remove most code handling old-style syntax extensions.Graydon Hoare-16/+0
2012-12-10Remove un-needed code for obsolete classesTim Chevalier-10/+2
and rename "class" to "struct" everywhere possible (except local vars, I was too lazy for that) -- that is why this commit is so big. No review, just dead code removal and renaming. Closes #3515
2012-12-07librustc: De-mode pattern bindings. r=nmatsakisPatrick Walton-1/+1
2012-12-07librustc: Implement "&mut [T]" as an expression. r=brsonPatrick Walton-0/+4
2012-12-07Fix pretty-printing of trait constraintsBrian Anderson-3/+5
2012-12-07syntax: try to fix pattern printing yet again, r=burningtree.Graydon Hoare-21/+30
2012-12-07syntax: try to fix pattern printing harder, r=burningtree.Graydon Hoare-20/+35
2012-12-07syntax: pretty print bind_by_value patterns as "copy", r=burningtree.Graydon Hoare-2/+4
2012-12-07syntax: fix a pp bug on foreign mods.Graydon Hoare-0/+1
2012-12-06Revert "Print copy patterns correctly"Tim Chevalier-4/+2
This reverts commit ea6819637382e7f8979766b954dd2a1922d0dee0.
2012-12-06Print copy patterns correctlyTim Chevalier-2/+4
2012-12-04librustc: Long lines. rs=rustbotPatrick Walton-1/+2
2012-12-04librustc: Remove all legacy pattern bindings from libsyntax and librustc. ↵Patrick Walton-82/+82
rs=refactoring
2012-12-03Update license, add license boilerplate to most files. Remainder will follow.Graydon Hoare-0/+10
2012-11-30librustc: Make `a.b()` always a method call. r=nmatsakisPatrick Walton-30/+59
2012-11-29librustc: Eliminate most expressions of the form `a.b()` that are not method ↵Patrick Walton-8/+8
calls. rs=refactoring
2012-11-29Distinguish `stmt_mac`s that are followed by semicolons and those that aren't.Paul Stansifer-1/+2
2012-11-29Allow for macros to occur in statement position.Paul Stansifer-0/+4
2012-11-28librustc: Parse `extern "C" { ... }`. r=brsonPatrick Walton-0/+1
2012-11-27librustc: Implement @mut [T] as the new replacement for @[mut T]Patrick Walton-0/+4
2012-11-17Merge remote-tracking branch 'brson/codemap'Brian Anderson-12/+12
Conflicts: src/libsyntax/ext/source_util.rs
2012-11-16Change spans to use byte offsets instead of char offsetsBrian Anderson-5/+5
2012-11-14Add types for character position and byte position in the codemapBrian Anderson-7/+7