Jorge Aparicio
8dcdd1e76a
syntax: use UFCS in the expansion of #[deriving(Ord)]
...
cc #18755
2014-12-07 16:46:46 -05:00
bluss
5ba7c5da62
string: Implement FromIterator<&str> and Extend<&str> for String
...
&str is a "particle" of a string already, see the graphemes iterator,
so it seems natural that we should be able to use it with Extend.
2014-12-07 22:45:27 +01:00
bluss
d7d5ccf9bb
string: Use the iterator size_hint() in .extend()
2014-12-07 21:31:24 +01:00
Steve Klabnik
c8bd9d2beb
Remove mention of Dequeue in collections docs.
...
https://botbot.me/mozilla/rust/2014-12-07/?msg=27003846&page=20
2014-12-07 14:24:57 -05:00
bors
77cd5cc54e
auto merge of #19548 : luqmana/rust/mfb, r=nikomatsakis
...
Fixes #19367 .
2014-12-07 19:02:18 +00:00
Peter Atashian
58f12743c2
Make MemoryMap use HANDLE on Windows.
...
Also fixes some conflicting module names.
Signed-off-by: Peter Atashian <retep998@gmail.com>
2014-12-07 13:25:51 -05:00
bors
558f8d8e3e
auto merge of #19539 : cmr/rust/18959, r=nikomatsakis
...
Closes #18959
Technically, this causes code that once compiled to no longer compile, but
that code probably never ran.
[breaking-change]
------------
Not quite sure the error message is good enough, I feel like it ought to tell you "because it inherits from non-object-safe trait Foo", so I've opened up a follow-up issue #19538
2014-12-07 16:12:22 +00:00
Jorge Aparicio
1fea900de7
Fix syntax error on android tests
2014-12-07 08:49:17 -05:00
bors
a243e8820a
auto merge of #19522 : mukilan/rust/import-conflicts-item, r=cmr
...
Fixes #19498
2014-12-07 13:42:18 +00:00
Steve Klabnik
e294772072
Add enum namespacing to the Guide.
...
Closes #19556 .
2014-12-07 07:55:30 -05:00
Steve Klabnik
131f20279e
Correct the reference with regards to floats
...
Fixes #19595 .
2014-12-07 07:30:15 -05:00
Steve Klabnik
8ba5605233
remove usage of notrust from the docs
...
Fixes #19599
2014-12-07 04:18:56 -05:00
bors
1e835cc7e3
auto merge of #19488 : jbranchaud/rust/add-btree-set-doctests, r=alexcrichton
...
There is already a test for `union` in the test namespace, but this commit adds a doctest that will appear in the rustdocs.
Someone on IRC said, *Write doctests!*, so here I am.
I am not sure this is the best way to demonstrate the behavior of the union function, so I am open to suggestions for improving this. If I am on the right track I'd be glad to include similar doctests for `intersection`, `difference`, etc.
2014-12-07 07:12:16 +00:00
Jorge Aparicio
2ed42bfbd1
libtime: remove unnecessary to_string()
calls
2014-12-06 23:53:02 -05:00
Jorge Aparicio
66f52f4c9b
libtest: remove unnecessary to_string()
calls
2014-12-06 23:53:02 -05:00
Jorge Aparicio
00c7786690
libterm: remove unnecessary to_string()
calls
2014-12-06 23:53:02 -05:00
Jorge Aparicio
93e99b55f8
libsyntax: remove unnecessary to_string()
calls
2014-12-06 23:53:02 -05:00
Jorge Aparicio
c2da923fc9
libstd: remove unnecessary to_string()
calls
2014-12-06 23:53:02 -05:00
Jorge Aparicio
ba01ea3730
libserialize: remove unnecessary to_string()
calls
2014-12-06 23:53:02 -05:00
Jorge Aparicio
71d8d578c6
librustc_back: remove unnecessary to_string()
calls
2014-12-06 23:53:02 -05:00
Jorge Aparicio
8379d72293
libgetopts: remove unnecessary to_string()
calls
2014-12-06 23:53:02 -05:00
Jorge Aparicio
98ae63753b
libcollections: remove unnecessary to_string()
calls
2014-12-06 23:53:02 -05:00
Jorge Aparicio
976660f3f7
libtest: remove unnecessary as_mut_slice()
calls
2014-12-06 23:53:02 -05:00
Jorge Aparicio
6132a90788
libstd: remove unnecessary as_mut_slice
calls
2014-12-06 23:53:01 -05:00
Jorge Aparicio
5172981207
librustdoc: remove unnecessary as_mut_slice
calls
2014-12-06 23:53:01 -05:00
Jorge Aparicio
a0a354ff22
librustc_trans: remove unnecessary as_mut_slice
calls
2014-12-06 23:53:01 -05:00
Jorge Aparicio
d64fd22c71
librustc: remove unnecessary as_mut_slice
calls
2014-12-06 23:53:01 -05:00
Jorge Aparicio
5a24058889
libcollections: remove unnecessary as_mut_slice()
calls
2014-12-06 23:53:01 -05:00
Jorge Aparicio
a0621f8eba
libtest: remove unnecessary as_slice()
calls
2014-12-06 23:53:01 -05:00
Jorge Aparicio
53b479c195
libterm: remove unnecessary as_slice()
calls
2014-12-06 23:53:01 -05:00
Jorge Aparicio
39f44c0c20
libsyntax: remove unnecessary as_slice()
calls
2014-12-06 23:53:01 -05:00
Jorge Aparicio
60338d91c4
libstd: remove unnecessary as_slice()
calls
2014-12-06 23:53:00 -05:00
bors
f7d18b92f8
auto merge of #19407 : frewsxcv/rust/rm-reexports, r=cmr
...
In regards to:
https://github.com/rust-lang/rust/issues/19253#issuecomment-64836729
This commit:
* Changes the #deriving code so that it generates code that utilizes fewer
reexports (in particur Option::\*, Result::\*, and Ordering::\*), which is necessary to
remove those reexports in the future
* Changes other areas of the codebase so that fewer reexports are utilized
2014-12-07 04:12:20 +00:00
Mukilan Thiyagarajan
4b75a5d8da
Add compile-fail tests for #19498
2014-12-07 07:37:15 +05:30
Jorge Aparicio
09f7713dd4
libserialize: remove unnecessary as_slice()
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
e6bd217ce8
librustdoc: remove unnecessary as_slice()
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
8bb5ef9df5
librustc_trans: remove unnecessary as_slice
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
7d8eabb226
librustc_back: remove unnecessary as_slice()
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
00f3c3f7a7
librustc: remove unnecessary as_slice()
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
ae555a99a6
libregex_macros: remove unnecessary as_slice
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
89e6a81ef9
libregex: remove unnecessary as_slice
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
0ea31348d9
liblog: remove unnecessary as_slice
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
c0ef959b31
libgraphviz: remove unnecessary as_slice()
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
6efc87945b
libgetops: remove unnecessary as_slice()
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
a7960136ac
libfmt_macros: remove unnecessary as_slice()
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
0f54f32a9c
libflate: remove unnecessary as_slice()
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
5257a5b284
libcoretest: remove unnecessary as_slice()
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
0ac3b166df
liballoc: remove unnecessary as_slice()
calls
2014-12-06 19:05:58 -05:00
Jorge Aparicio
f2af07e6d5
libcollections: remove unnecessary as_slice()
calls
2014-12-06 19:05:58 -05:00
jbranchaud
2171c95553
Add missing semicolon to hello world program in intro.
2014-12-06 17:36:32 -06:00