about summary refs log tree commit diff
path: root/src/libsyntax/parse
AgeCommit message (Collapse)AuthorLines
2014-01-25Uppercase numeric constantsChris Wong-2/+2
The following are renamed: * `min_value` => `MIN` * `max_value` => `MAX` * `bits` => `BITS` * `bytes` => `BYTES` Fixes #10010.
2014-01-24auto merge of #11720 : sfackler/rust/macro-export-source, r=alexcrichtonbors-1/+1
The old method of serializing the AST gives totally bogus spans if the expansion of an imported macro causes compilation errors. The best solution seems to be to serialize the actual textual macro definition and load it the same way the std-macros are. I'm not totally confident that getting the source from the CodeMap will always do the right thing, but it seems to work in simple cases.
2014-01-23Redo exported macro serializationSteven Fackler-1/+1
The old method of serializing the AST gives totally bogus spans if the expansion of an imported macro causes compilation errors. The best solution seems to be to serialize the actual textual macro definition and load it the same way the std-macros are. I'm not totally confident that getting the source from the CodeMap will always do the right thing, but it seems to work in simple cases.
2014-01-23Allow trailing commas in argument lists and tuple patternsSeo Sanghyeon-2/+3
2014-01-21[std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old ↵Simon Sapin-3/+3
from_utf8_owned() behavior
2014-01-21[std::vec] Rename .pop_opt() to .pop(), drop the old .pop() behaviorSimon Sapin-3/+3
2014-01-21[std::vec] Rename .last_opt() to .last(), drop the old .last() behaviorSimon Sapin-6/+7
2014-01-21Remove unnecessary parentheses.Huon Wilson-5/+5
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-17rustc::driver: Capitalize structs and enumsklutzy-1/+1
driver::session::crate_metadata is unused; removed.
2014-01-16auto merge of #11599 : sanxiyn/rust/accurate-span-3, r=luqmanabors-2/+2
2014-01-16Correct span for ExprCall and ExprIndexSeo Sanghyeon-2/+2
2014-01-15libsyntax: Remove the obsolete ability to parse from substrings.Patrick Walton-40/+1
This was used by the quasiquoter.
2014-01-14auto merge of #11485 : eddyb/rust/sweep-old-rust, r=nikomatsakisbors-57/+41
2014-01-13librustc: Remove `@` pointer patterns from the languagePatrick Walton-56/+64
2014-01-13libsyntax: Make managed box `@` patterns obsoletePatrick Walton-3/+12
2014-01-12Removed remnants of `@mut` and `~mut` from comments and the type system.Eduard Burtescu-57/+41
2014-01-11Tighten up float literal lexing.SiegeLord-11/+16
Specifically, dissallow setting the number base for every type of float literal, not only those that contain the decimal point. This is in line with the description in the manual.
2014-01-11Removed obsolete 'e' prefix on ty_evec and ty_estr.Eduard Burtescu-4/+4
2014-01-11Remove re-exports of std::io::stdio::{print, println} in the prelude.Brendan Zabarauskas-1/+1
The `print!` and `println!` macros are now the preferred method of printing, and so there is no reason to export the `stdio` functions in the prelude. The functions have also been replaced by their macro counterparts in the tutorial and other documentation so that newcomers don't get confused about what they should be using.
2014-01-09auto merge of #11055 : pcwalton/rust/placement-box, r=pcwaltonbors-1/+15
r? @nikomatsakis
2014-01-09librustc: Implement placement `box` for GC and unique pointers.Patrick Walton-1/+15
2014-01-09libsyntax: Renamed types, traits and enum variants to CamelCase.Eduard Burtescu-539/+532
2014-01-09auto merge of #11414 : nick29581/rust/span, r=alexcrichtonbors-1/+2
...at the start of the path, rather than at the start of the view_path. Fixes #11317
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-09Start the span for a path in a view_path at the correct place (at the start ↵Nick Cameron-1/+2
of the path, rather than at the start of the view_path).
2014-01-08Renamed Option::map_default and mutate_default to map_or and mutate_or_setMarvin Löbel-2/+2
2014-01-03librustc: Remove `@mut` support from the parserPatrick Walton-8/+4
2014-01-03libsyntax: De-`@mut` `CodeMap::files`Patrick Walton-1/+4
2014-01-03libsyntax: De-`@mut` `name_idx`Patrick Walton-7/+8
2014-01-03librustc: De-`@mut` the span handlerPatrick Walton-10/+10
2014-01-03libsyntax: De-`@mut` `StringReader`, `TtReader`, and `reader`Patrick Walton-59/+58
2014-01-03libsyntax: De-`@mut` `TtReader::cur_span`Patrick Walton-2/+2
2014-01-03libsyntax: De-`@mut` `TtReader::cur_tok`Patrick Walton-2/+5
2014-01-03libsyntax: De-`@mut` `StringReader::peek_span`Patrick Walton-9/+10
2014-01-03libsyntax: De-`@mut` `StringReader::peek_tok`Patrick Walton-10/+13
2014-01-03libsyntax: De-`@mut` `StringReader::curr`Patrick Walton-76/+80
2014-01-03libsyntax: De-`@mut` `StringReader::col`Patrick Walton-7/+7
2014-01-03libsyntax: De-`@mut` `StringReader::last_pos`Patrick Walton-48/+54
2014-01-03libsyntax: De-`@mut` `StringReader::pos`Patrick Walton-13/+14
2014-01-03librustc: De-`@mut` the parse sessionPatrick Walton-28/+28
2014-01-03libsyntax: De-`@mut` `ParseSess::included_mod_stack`Patrick Walton-16/+29
2014-01-03auto merge of #11149 : alexcrichton/rust/remove-either, r=brsonbors-13/+13
Had to change some stuff in typeck to bootstrap (getting methods in fmt off of Either), but other than that not so painful. Closes #9157
2014-01-03Remove std::eitherAlex Crichton-13/+13
2014-01-02libsyntax: Fix test and merge fallout.Patrick Walton-3/+3
2014-01-02libsyntax: Long linePatrick Walton-1/+2
2014-01-02libsyntax: Remove increasingly inaccurate commentPatrick Walton-1/+0
2014-01-02libsyntax: De-`@mut` `Parser::open_braces`Patrick Walton-5/+9
2014-01-02libsyntax: De-`@mut` `Parser::mod_path_stack`Patrick Walton-4/+3