Simon Sapin
05ae134ace
[std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old from_utf8_owned() behavior
2014-01-21 15:48:48 -08:00
Simon Sapin
bada25e425
[std::vec] Rename .pop_opt() to .pop(), drop the old .pop() behavior
2014-01-21 15:48:47 -08:00
Simon Sapin
aa66b91767
[std::vec] Rename .last_opt() to .last(), drop the old .last() behavior
2014-01-21 15:48:46 -08:00
Huon Wilson
39713b8295
Remove unnecessary parentheses.
2014-01-21 22:00:18 +11:00
bors
9bf85a250c
auto merge of #11598 : alexcrichton/rust/io-export, r=brson
...
* 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-17 12:02:07 -08:00
Alex Crichton
295b46fc08
Tweak the interface of std::io
...
* 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-17 10:00:47 -08:00
klutzy
f30a9b3d5b
rustc::driver: Capitalize structs and enums
...
driver::session::crate_metadata is unused; removed.
2014-01-17 13:27:47 +09:00
bors
9434e7c6cb
auto merge of #11599 : sanxiyn/rust/accurate-span-3, r=luqmana
2014-01-16 09:01:49 -08:00
Seo Sanghyeon
1f5dc552d6
Correct span for ExprCall and ExprIndex
2014-01-16 22:45:01 +09:00
Patrick Walton
ff6c0af15b
libsyntax: Remove the obsolete ability to parse from substrings.
...
This was used by the quasiquoter.
2014-01-15 10:59:48 -08:00
bors
9075025c7b
auto merge of #11485 : eddyb/rust/sweep-old-rust, r=nikomatsakis
2014-01-14 12:32:11 -08:00
Patrick Walton
119c6141f5
librustc: Remove @ pointer patterns from the language
2014-01-13 14:45:21 -08:00
Patrick Walton
ce358fca33
libsyntax: Make managed box @ patterns obsolete
2014-01-13 13:11:01 -08:00
Eduard Burtescu
509fc92a9b
Removed remnants of @mut and ~mut from comments and the type system.
2014-01-12 02:26:04 +02:00
SiegeLord
5ea6d0201d
Tighten up float literal lexing.
...
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-11 14:21:59 -05:00
Eduard Burtescu
5ad2a7825b
Removed obsolete 'e' prefix on ty_evec and ty_estr.
2014-01-11 16:40:23 +02:00
Brendan Zabarauskas
4fc0452ace
Remove re-exports of std::io::stdio::{print, println} in the prelude.
...
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-11 10:46:00 +11:00
bors
ff3d5d4603
auto merge of #11055 : pcwalton/rust/placement-box, r=pcwalton
...
r? @nikomatsakis
2014-01-09 16:11:18 -08:00
Patrick Walton
e12711540a
librustc: Implement placement box for GC and unique pointers.
2014-01-09 16:05:34 -08:00
Eduard Burtescu
6b221768cf
libsyntax: Renamed types, traits and enum variants to CamelCase.
2014-01-09 22:25:28 +02:00
bors
dd11fe17c7
auto merge of #11414 : nick29581/rust/span, r=alexcrichton
...
...at the start of the path, rather than at the start of the view_path.
Fixes #11317
2014-01-09 07:41:33 -08:00
Alex Crichton
6df57ec2e2
Remove the io::Decorator trait
...
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-08 23:42:28 -08:00
Nick Cameron
01f42eed80
Start the span for a path in a view_path at the correct place (at the start of the path, rather than at the start of the view_path).
2014-01-09 20:12:23 +13:00
Marvin Löbel
90b394514d
Renamed Option::map_default and mutate_default to map_or and mutate_or_set
2014-01-08 00:53:40 +01:00
Patrick Walton
82a09b9a04
librustc: Remove @mut support from the parser
2014-01-03 14:02:01 -08:00
Patrick Walton
4c85cf7a40
libsyntax: De-@mut CodeMap::files
2014-01-03 14:01:59 -08:00
Patrick Walton
4269f85d5b
libsyntax: De-@mut name_idx
2014-01-03 14:01:58 -08:00
Patrick Walton
4d66af2698
librustc: De-@mut the span handler
2014-01-03 14:01:57 -08:00
Patrick Walton
7e1b535eb1
libsyntax: De-@mut StringReader, TtReader, and reader
2014-01-03 14:01:57 -08:00
Patrick Walton
b597207ced
libsyntax: De-@mut TtReader::cur_span
2014-01-03 14:01:57 -08:00
Patrick Walton
c233c2edfd
libsyntax: De-@mut TtReader::cur_tok
2014-01-03 14:01:57 -08:00
Patrick Walton
185608754d
libsyntax: De-@mut StringReader::peek_span
2014-01-03 14:01:57 -08:00
Patrick Walton
a214b8e41d
libsyntax: De-@mut StringReader::peek_tok
2014-01-03 14:01:57 -08:00
Patrick Walton
501a6c816a
libsyntax: De-@mut StringReader::curr
2014-01-03 14:01:56 -08:00
Patrick Walton
aa3527a1a3
libsyntax: De-@mut StringReader::col
2014-01-03 14:01:56 -08:00
Patrick Walton
13b235d1e5
libsyntax: De-@mut StringReader::last_pos
2014-01-03 14:01:56 -08:00
Patrick Walton
b33386d055
libsyntax: De-@mut StringReader::pos
2014-01-03 14:01:56 -08:00
Patrick Walton
3aa19a6b86
librustc: De-@mut the parse session
2014-01-03 14:01:56 -08:00
Patrick Walton
f553701da6
libsyntax: De-@mut ParseSess::included_mod_stack
2014-01-03 14:01:56 -08:00
bors
08321f1c49
auto merge of #11149 : alexcrichton/rust/remove-either, r=brson
...
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-03 12:16:48 -08:00
Alex Crichton
4bea679dbe
Remove std::either
2014-01-03 10:25:23 -08:00
Patrick Walton
f3eee0ebad
libsyntax: Fix test and merge fallout.
2014-01-02 14:42:06 -08:00
Patrick Walton
8b088d493c
libsyntax: Long line
2014-01-02 14:16:08 -08:00
Patrick Walton
460ea922f3
libsyntax: Remove increasingly inaccurate comment
2014-01-02 14:16:08 -08:00
Patrick Walton
f4118d5a4c
libsyntax: De-@mut Parser::open_braces
2014-01-02 14:16:08 -08:00
Patrick Walton
a2f4877862
libsyntax: De-@mut Parser::mod_path_stack
2014-01-02 14:16:08 -08:00
Patrick Walton
e0a5460e94
libsyntax: De-@mut Parser::obsolete_set
2014-01-02 14:16:08 -08:00
Patrick Walton
4ee95cf96c
libsyntax: De-@mut Parser::restriction
2014-01-02 14:16:08 -08:00
Patrick Walton
6992a5c77d
libsyntax: De-@mut Parser::tokens_consumed
2014-01-02 14:16:08 -08:00
Patrick Walton
55a90f5928
libsyntax: De-@mut Parser::buffer_start and Parser::buffer_end
2014-01-02 14:16:07 -08:00