Flavio Percoco
968633b60a
Replace crate
usage with krate
...
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-13 20:52:07 +01:00
Eduard Burtescu
b2d30b72bf
Removed @self and @Trait.
2014-02-07 00:38:33 +02:00
Alex Crichton
c765a8e7ad
Fixing remaining warnings and errors throughout
2014-02-03 10:39:23 -08:00
Alex Crichton
f9a32cdabc
std: Fixing all documentation
...
* Stop referencing io_error
* Start changing "Failure" sections to "Error" sections
* Update all doc examples to work.
2014-02-03 09:32:35 -08:00
Alex Crichton
b211b00d21
syntax: Remove io_error usage
2014-02-03 09:32:34 -08:00
Huon Wilson
c8947c14c3
syntax: remove the unused Vstore enum.
...
Seems to have been replaced by ExprVstore.
2014-02-02 02:59:04 +11:00
Huon Wilson
e39cd20a43
syntax: remove the handling of @str and @[] from the parser completely.
2014-02-02 02:59:04 +11:00
Huon Wilson
891ada9be1
syntax: convert LitBinary from @[u8] to Rc<~[u8]>.
2014-02-02 02:59:03 +11:00
Patrick Walton
4018d77f22
libsyntax: Remove an @str
in pretty printing
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
875c9ce30b
libsyntax: Remove many uses of token::ident_to_str
2014-02-02 01:44:49 +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
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
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
Salem Talha
cc61fc0994
Removed all instances of XXX in preparation for relaxing of FIXME rule
2014-01-26 14:42:53 -05: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
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
Eduard Burtescu
509fc92a9b
Removed remnants of @mut
and ~mut
from comments and the type system.
2014-01-12 02:26:04 +02: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
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
Patrick Walton
8092153634
libsyntax: Fix tests.
2014-01-03 22:22:40 -08:00
Patrick Walton
82a09b9a04
librustc: Remove @mut
support from the parser
2014-01-03 14:02:01 -08:00
Patrick Walton
6043957d8d
libsyntax: De-@mut
ps::boxes
2014-01-03 14:02:00 -08:00
Patrick Walton
5eafcc4f93
libsyntax: De-@mut
(and de-@
) Printer::print_stack
2014-01-03 14:02:00 -08:00
Patrick Walton
ada9150abf
libsyntax: Correctly de-@mut
the pretty printer writer
2014-01-03 14:01:59 -08:00
Patrick Walton
12ad1b0662
libsyntax: De-@mut
CurrentCommentAndLiteral
2014-01-03 14:01:58 -08:00
Patrick Walton
497b63ddf0
librustc: De-@mut
all writers
2014-01-03 14:01:58 -08:00
Patrick Walton
b26018cc89
librustc: De-@mut
(and de-@
) the pretty printer
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
bors
0df9b850ac
auto merge of #10696 : fhahn/rust/issue9543-remove-extern-mod-foo, r=pcwalton
...
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-02 11:32:09 -08:00
Florian Hahn
f42a36cded
Remove extern mod foo (name="bar")
syntax, closes #9543
2014-01-01 23:36:57 +01:00
klutzy
9cdad685a3
syntax::codemap: Add static DUMMY_SP
...
It replaces `dummy_sp()`.
2014-01-01 19:51:35 +09:00
klutzy
fe10c63326
syntax::diagnostic: Remove unnecessary traits
...
This removes trait `handler` and `span_handler`,
and renames `HandlerT` to `Handler`, `CodemapT` to `SpanHandler`.
2014-01-01 19:10:43 +09:00
Seo Sanghyeon
4a13364010
Remove obsolete mutability from ast::Ty
2013-12-17 03:01:40 +09:00
Patrick Walton
a87786e3e9
librustc: Remove identifiers named box
, since it's about to become a keyword.
2013-12-15 10:41:15 -08:00