Tim Chevalier
341678b815
rustc: Call str::is_empty
2013-06-01 18:48:07 -07:00
Tim Chevalier
760c71dc4f
syntax: Add an each_view_item method on traits
2013-06-01 18:48:07 -07:00
Tim Chevalier
231aea6d6e
rustc: Improve astconv error message
2013-06-01 18:48:07 -07:00
bors
c35b7b5d6e
auto merge of #6889 : luqmana/rust/unit-struct-drop, r=catamorphism
...
Fixes #6861
2013-06-01 14:52:42 -07:00
Luqman Aden
64759c9f25
librustc: Have destructor run for unit-like structs.
2013-06-01 17:41:07 -04:00
bors
44af5064d0
auto merge of #6871 : pcwalton/rust/de-pub-impl, r=pcwalton
2013-06-01 09:37:39 -07:00
Patrick Walton
5fb254695b
Remove all uses of pub impl
. rs=style
2013-06-01 09:18:27 -07:00
Patrick Walton
1e52eede31
librustc: Don't require pub extern
to make extern functions visible
2013-06-01 09:16:46 -07:00
bors
b8391ccea0
auto merge of #6881 : Aatch/rust/new-passes-2, r=thestinger
...
This is a better pipeline, both faster-running and produces faster code.
For some reason the `mergefunc` pass screws over resolve. I have no idea why though.
2013-06-01 06:13:40 -07:00
James Miller
6e075b6bb6
Better optimization pipeline
2013-06-02 00:08:38 +12:00
bors
2bf053c0a3
auto merge of #6851 : alexcrichton/rust/bugfixes, r=pcwalton
...
Closes #5090 by using the excellent new generic deriving code
Promotes the unreachable code attribute to a lint attribute (instead of always being a warning)
Fixes some edge cases when creating hashmaps/hashsets and also when consuming them. (fixes #5998 )
2013-05-31 23:10:36 -07:00
bors
c23843c447
auto merge of #6876 : cmr/rust/from_elem_opts, r=Aatch
...
borrowck 1.85x speedup on libstd
2013-05-31 22:04:38 -07:00
Corey Richardson
c299230f3d
Optimize vec::from_elem with manual inlining (borrowck 1.85x speedup on libstd)
2013-06-01 00:55:19 -04:00
bors
b570536b38
auto merge of #6729 : bstrie/rust/ascstr, r=Aatch
...
Formerly this was a free function rather than a method. I've left it in place for now, although redefined it so that it just calls the method.
2013-05-31 19:34:41 -07:00
bors
e516d2333f
auto merge of #6864 : thestinger/rust/bool, r=pcwalton
2013-05-31 16:58:42 -07:00
bors
55c23bc557
auto merge of #6862 : thestinger/rust/swap, r=bstrie
...
I don't like the `util` module in general, and `ptr` is a much better place for these.
2013-05-31 15:22:45 -07:00
Daniel Micay
ed93cc1987
fix tutorial lint warnings
2013-05-31 18:20:09 -04:00
Daniel Micay
1dc4ea004e
bool: rm functions duplicating methods
2013-05-31 18:12:12 -04:00
Ben Striegel
c77d58fad8
Add as_c_str method on strings
2013-05-31 18:12:07 -04:00
Alex Crichton
e694e5fc59
xfail-fast the deriving test
2013-05-31 14:44:44 -06:00
bors
91a7073900
auto merge of #6857 : alexcrichton/rust/ebml-fixes, r=pcwalton
...
Also provides a method of serializing `char`.
2013-05-31 11:34:46 -07:00
Daniel Micay
042618da7b
ptr: replace unnecessary unsafe code
2013-05-31 11:32:27 -04:00
bors
5028ac7396
auto merge of #6863 : huonw/rust/error-span, r=thestinger
2013-05-31 07:43:49 -07:00
Huon Wilson
4f92d3a11c
rustc: adjust span for error message to not trim last letter
2013-06-01 00:39:02 +10:00
Daniel Micay
29aba8033a
mv the raw pointer {swap,replace}_ptr to std::ptr
2013-05-31 10:31:26 -04:00
bors
2a30c000e8
auto merge of #6859 : thestinger/rust/optimize, r=thestinger
...
A workaround to get #6828 through.
2013-05-31 06:40:49 -07:00
James Miller
85e3c96236
Remove the slow bb-vectorize pass
2013-05-31 09:01:13 -04:00
bors
030f471f26
auto merge of #6853 : bblum/rust/sized, r=pcwalton
...
r? @nikomatsakis @pcwalton
2013-05-31 02:01:44 -07:00
bors
1dd5cd9731
auto merge of #6833 : fdr/rust/fix-warnings, r=Aatch
...
Fix a laundry list of warnings involving unused imports that glutted
up compilation output. There are more, but there seems to be some
false positives (where 'remedy' appears to break the build), but this
particular set of fixes seems safe.
2013-05-31 00:43:45 -07:00
bors
6fcb483609
auto merge of #6848 : pcwalton/rust/issue-6352, r=pcwalton
...
r? @nikomatsakis
2013-05-30 23:31:48 -07:00
Alex Crichton
e86ac24e7b
Implement unimplemented methods in ebml
2013-05-31 00:28:17 -05:00
Alex Crichton
a25c7045c1
Rewrite deriving(Decodable, Encodable)
...
Now it uses the generic deriving code and should in theory work in all cases.
2013-05-30 23:48:35 -05:00
bors
727274375e
auto merge of #6845 : thestinger/rust/zsh-complete, r=graydon
...
I'll do the other commands and the `rust` wrapper later.
![sample completion](http://i.imgur.com/Y1IFCWi.png )
2013-05-30 21:34:47 -07:00
bors
f8cef24b5e
auto merge of #6841 : steveklabnik/rust/range_docs, r=thestinger
2013-05-30 20:28:48 -07:00
bors
3869f7a99c
auto merge of #6818 : nikomatsakis/rust/irrefut-patterns-refactoring, r=graydon
...
Various bug fixes and simplifications I did as part of a patch to fix `let` patterns.
r? @catamorphism
2013-05-30 19:04:52 -07:00
Alex Crichton
d01c7d0d42
Fix a bug with HashMap::consume
2013-05-30 20:45:14 -05:00
Alex Crichton
aed53f9bf0
Promote unreachable code to being a lint attribute
2013-05-30 20:45:13 -05:00
Ben Blum
5113f68a86
Add simple tests for Sized
2013-05-30 21:41:41 -04:00
Ben Blum
32cd9b3274
Highlight Sized in vim and kate
2013-05-30 21:41:41 -04:00
Ben Blum
b8a53b5a4c
Add 'Sized' builtin kind; doesn't do anything yet
2013-05-30 21:41:41 -04:00
Patrick Walton
40b455792d
librustc: Bump the offset when translating const structs. Closes #6352 .
2013-05-30 18:17:32 -07:00
Niko Matsakis
ce5fd30270
Fix parser test
2013-05-30 21:01:25 -04:00
bors
237dce12c9
auto merge of #6689 : graydon/rust/issue-5661-doc-test-targets, r=graydon
...
Re-enables `make check-stage2-doc-tutorial` and friends. r? @brson
2013-05-30 17:22:49 -07:00
bors
308774e05b
auto merge of #6340 : graydon/rust/issue-2994, r=graydon
2013-05-30 16:04:47 -07:00
Daniel Micay
a9c3b3885d
add a zsh completion file for rustc
2013-05-30 18:52:23 -04:00
Graydon Hoare
858ca2e3c8
fix the check-stageN-doc-$doc targets, close #5661
2013-05-30 15:49:53 -07:00
bors
9bfe296eb7
auto merge of #6836 : pnkfelix/rust/fsk-issue6805-ccache-rewrite-basedir, r=catamorphism
...
Attempt to get reuse of common object code from multiple clones in different directories.
This is a followup to issue #6805 .
2013-05-30 14:58:47 -07:00
Steve Klabnik
220e1a6cfc
Add example for uint::range_step.
2013-05-30 14:35:07 -07:00
Niko Matsakis
21951e503d
Correct issue-2804 test
2013-05-30 16:55:50 -04:00
Graydon Hoare
2bed5dc528
rustc: change 'use' to 'add' in error message, fix #2994
2013-05-30 13:45:53 -07:00