Huon Wilson
e0c1707560
Changes from the review of the @str PR.
2014-02-02 02:59:03 +11:00
Huon Wilson
f502576fc7
Fix @str removal tests.
2014-02-02 02:58:57 +11:00
Patrick Walton
c594e675eb
librustc: Remove @str from the language
2014-02-02 01:44:50 +11:00
Patrick Walton
8b8419293c
libsyntax: Remove @str from the interner
2014-02-02 01:44:49 +11:00
Patrick Walton
e5dc347ccf
libsyntax: Remove the interner_get function and all uses
2014-02-02 01:44:49 +11:00
Patrick Walton
0d0a3dad68
libsyntax: Remove uses of token::ident_to_str()
2014-02-02 01:44:49 +11:00
Patrick Walton
875c9ce30b
libsyntax: Remove many uses of token::ident_to_str
2014-02-02 01:44:49 +11:00
Patrick Walton
b890237e79
libsyntax: Fix tests.
2014-02-02 01:44:48 +11:00
Patrick Walton
3c9e9d35ac
libsyntax: Remove ident_to_str from the parser, which was returning
...
`@str` values
2014-02-02 01:44:48 +11:00
Patrick Walton
f9af11d6cc
libsyntax: Remove all @str from the AST
2014-02-02 01:44:48 +11:00
Patrick Walton
b496d7bec2
libsyntax: Make float literals not use @str
2014-02-02 01:44:48 +11:00
Patrick Walton
8d6ef2e1b1
libsyntax: De-@str pathnames
2014-02-02 01:44:48 +11:00
Patrick Walton
e68108b3e8
librustc: Stop using @str for source.
2014-02-02 01:44:48 +11:00
Patrick Walton
f152be7a42
libsyntax: Remove the unnecessary src field from the lexer
2014-02-02 01:44:48 +11:00
Patrick Walton
8e52b85d5a
libsyntax: De-@str literal strings in the AST
2014-02-02 01:44:48 +11:00
Patrick Walton
70c5a0fbf7
libsyntax: Introduce an InternedString type to reduce @str in the
...
compiler and use it for attributes
2014-02-02 01:44:47 +11:00
Huon Wilson
a9f73b5e3d
Remove the obsolete handler for impl A;.
...
This is has been obsolete for quite a while now (including a release),
so removing the special handling seems fine. (The error message is quite
good still anyway.)
Fixes #9580 .
2014-01-31 21:43:09 -08:00
Eduard Burtescu
7d967741c3
Implement default type parameters in generics.
2014-01-30 19:28:41 +02:00
bors
e3dc5f5bcd
auto merge of #11911 : kballard/rust/empty-functional-update, r=pcwalton
...
Fixes #8972
2014-01-30 05:06:30 -08:00
Kevin Ballard
2258243ad8
Allow empty functional updating of structs
...
Fixes #8972
2014-01-29 10:44:27 -08:00
Scott Lawrence
a6867e259b
Removing support for the do syntax from libsyntax and librustc.
...
Fixes #10815 .
2014-01-29 09:15:42 -05:00
Eduard Burtescu
15ba0c310a
Demote self to an (almost) regular argument and remove the env param.
...
Fixes #10667 and closes #10259 .
2014-01-27 14:31:24 +02:00
bors
d3f70f5a7d
auto merge of #11817 : salemtalha/rust/master, r=brson
...
Fixes Issue #11815
2014-01-26 15:26:30 -08:00
Salem Talha
cc61fc0994
Removed all instances of XXX in preparation for relaxing of FIXME rule
2014-01-26 14:42:53 -05:00
Alex Crichton
4d6836f418
Fix privacy fallout from previous change
2014-01-26 11:03:13 -08:00
Chris Wong
988e4f0a1c
Uppercase numeric constants
...
The following are renamed:
* `min_value` => `MIN`
* `max_value` => `MAX`
* `bits` => `BITS`
* `bytes` => `BYTES`
Fixes #10010 .
2014-01-25 21:38:25 +13:00
bors
4ce84fa1de
auto merge of #11720 : sfackler/rust/macro-export-source, r=alexcrichton
...
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-24 00:06:31 -08:00
Steven Fackler
d908e97da3
Redo exported macro serialization
...
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-23 09:01:36 -08:00
Seo Sanghyeon
7689353918
Allow trailing commas in argument lists and tuple patterns
2014-01-23 01:55:53 +09:00
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