about summary refs log tree commit diff
path: root/src/libsyntax/print
AgeCommit message (Collapse)AuthorLines
2014-02-20Mass rename if_ok! to try!Alex Crichton-713/+713
This "bubble up an error" macro was originally named if_ok! in order to get it landed, but after the fact it was discovered that this name is not exactly desirable. The name `if_ok!` isn't immediately clear that is has much to do with error handling, and it doesn't look fantastic in all contexts (if if_ok!(...) {}). In general, the agreed opinion about `if_ok!` is that is came in as subpar. The name `try!` is more invocative of error handling, it's shorter by 2 letters, and it looks fitting in almost all circumstances. One concern about the word `try!` is that it's too invocative of exceptions, but the belief is that this will be overcome with documentation and examples. Close #12037
2014-02-14extern mod => extern crateAlex Crichton-1/+1
This was previously implemented, and it just needed a snapshot to go through
2014-02-14Removed the obsolete ast::CallSugar (previously used by `do`).Eduard Burtescu-35/+9
2014-02-14Refactored ast_map and friends, mainly to have Paths without storing them.Eduard Burtescu-61/+51
2014-02-13Replace `crate` usage with `krate`Flavio Percoco-4/+4
This patch replaces all `crate` usage with `krate` before introducing the new keyword. This ensures that after introducing the keyword, there won't be any compilation errors. krate might not be the most expressive substitution for crate but it's a very close abbreviation for it. `module` was already used in several places already.
2014-02-07Removed @self and @Trait.Eduard Burtescu-19/+16
2014-02-03Fixing remaining warnings and errors throughoutAlex Crichton-188/+97
2014-02-03std: Fixing all documentationAlex Crichton-10/+6
* Stop referencing io_error * Start changing "Failure" sections to "Error" sections * Update all doc examples to work.
2014-02-03syntax: Remove io_error usageAlex Crichton-989/+1272
2014-02-02syntax: remove the unused Vstore enum.Huon Wilson-13/+0
Seems to have been replaced by ExprVstore.
2014-02-02syntax: remove the handling of @str and @[] from the parser completely.Huon Wilson-1/+0
2014-02-02syntax: convert LitBinary from @[u8] to Rc<~[u8]>.Huon Wilson-2/+2
2014-02-02libsyntax: Remove an `@str` in pretty printingPatrick Walton-18/+21
2014-02-02libsyntax: Remove the `interner_get` function and all usesPatrick Walton-2/+3
2014-02-02libsyntax: Remove many uses of `token::ident_to_str`Patrick Walton-2/+3
2014-02-02libsyntax: Remove all `@str` from the ASTPatrick Walton-7/+7
2014-02-02libsyntax: Make float literals not use `@str`Patrick Walton-3/+3
2014-02-02libsyntax: De-`@str` pathnamesPatrick Walton-1/+1
2014-02-02libsyntax: De-`@str` literal strings in the ASTPatrick Walton-4/+4
2014-02-02libsyntax: Introduce an `InternedString` type to reduce `@str` in thePatrick Walton-5/+5
compiler and use it for attributes
2014-01-30Implement default type parameters in generics.Eduard Burtescu-0/+8
2014-01-30auto merge of #11911 : kballard/rust/empty-functional-update, r=pcwaltonbors-2/+4
Fixes #8972
2014-01-29Allow empty functional updating of structsKevin Ballard-2/+4
Fixes #8972
2014-01-29Removing support for the do syntax from libsyntax and librustc.Scott Lawrence-20/+2
Fixes #10815.
2014-01-27Demote self to an (almost) regular argument and remove the env param.Eduard Burtescu-25/+28
Fixes #10667 and closes #10259.
2014-01-26Removed all instances of XXX in preparation for relaxing of FIXME ruleSalem Talha-1/+1
2014-01-21[std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old ↵Simon Sapin-1/+1
from_utf8_owned() behavior
2014-01-21[std::vec] Rename .pop_opt() to .pop(), drop the old .pop() behaviorSimon Sapin-4/+4
2014-01-21[std::vec] Rename .last_opt() to .last(), drop the old .last() behaviorSimon Sapin-1/+1
2014-01-21Remove unnecessary parentheses.Huon Wilson-1/+1
2014-01-17auto merge of #11598 : alexcrichton/rust/io-export, r=brsonbors-1/+1
* Reexport io::mem and io::buffered structs directly under io, make mem/buffered private modules * Remove with_mem_writer * Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered) cc #11119
2014-01-17Tweak the interface of std::ioAlex Crichton-1/+1
* Reexport io::mem and io::buffered structs directly under io, make mem/buffered private modules * Remove with_mem_writer * Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered)
2014-01-14auto merge of #11485 : eddyb/rust/sweep-old-rust, r=nikomatsakisbors-2/+2
2014-01-13librustc: Remove `@` pointer patterns from the languagePatrick Walton-6/+2
2014-01-12Removed remnants of `@mut` and `~mut` from comments and the type system.Eduard Burtescu-2/+2
2014-01-09auto merge of #11055 : pcwalton/rust/placement-box, r=pcwaltonbors-0/+7
r? @nikomatsakis
2014-01-09librustc: Implement placement `box` for GC and unique pointers.Patrick Walton-0/+7
2014-01-09libsyntax: Renamed types, traits and enum variants to CamelCase.Eduard Burtescu-520/+515
2014-01-08Remove the io::Decorator traitAlex Crichton-2/+1
This is just an unnecessary trait that no one's ever going to parameterize over and it's more useful to just define the methods directly on the types themselves. The implementors of this type almost always don't want inner_mut_ref() but they're forced to define it as well.
2014-01-03libsyntax: Fix tests.Patrick Walton-6/+0
2014-01-03librustc: Remove `@mut` support from the parserPatrick Walton-5/+1
2014-01-03libsyntax: De-`@mut` `ps::boxes`Patrick Walton-10/+23
2014-01-03libsyntax: De-`@mut` (and de-`@`) `Printer::print_stack`Patrick Walton-4/+4
2014-01-03libsyntax: Correctly de-`@mut` the pretty printer writerPatrick Walton-18/+14
2014-01-03libsyntax: De-`@mut` `CurrentCommentAndLiteral`Patrick Walton-3/+3
2014-01-03librustc: De-`@mut` all writersPatrick Walton-14/+35
2014-01-03librustc: De-`@mut` (and de-`@`) the pretty printerPatrick Walton-394/+418
2014-01-03librustc: De-`@mut` the span handlerPatrick Walton-1/+1
2014-01-02auto merge of #10696 : fhahn/rust/issue9543-remove-extern-mod-foo, r=pcwaltonbors-6/+1
This patch for #9543 throws an `obsolete syntax` error for `extern mod foo (name="bar")` . I was wondering if [this](https://github.com/fhahn/rust/compare/mozilla:master...fhahn:issue9543-remove-extern-mod-foo?expand=1#diff-da9d34ca1d0f6beee2838cf02e07345cR4444) is the correct place to do this? I think the wording of the error message could probably be improved as well. If this approach is OK, I'm going to run the whole test suite tomorrow and update the old syntax to the new one.
2014-01-01Remove `extern mod foo (name="bar")` syntax, closes #9543Florian Hahn-6/+1