Simon Sapin
6369dcbad8
Move collectionstest::char into coretest::char
2015-06-09 13:08:29 +02:00
Simon Sapin
c6a8d5e733
Fix coretest::char::test_to_uppercase for complex mapping
2015-06-09 13:08:22 +02:00
Simon Sapin
c57a4124ff
Address a review comment and fix a bootstrapping issue
2015-06-08 19:50:28 +02:00
Simon Sapin
7ac6b58237
Mark str::to_uppercase and str::to_lowercase as stable.
2015-06-06 20:37:23 +02:00
Simon Sapin
f901086b0d
Correctly map upper-case Sigma to lower-case in word-final position. Fix #26035 .
2015-06-06 12:37:11 +02:00
Simon Sapin
d316487ec1
Add char::to_titlecase
...
But not str::to_titlecase which would require UAX#29 Unicode Text Segmentation
which we decided not to include in of `std`:
https://github.com/rust-lang/rfcs/pull/1054
2015-06-06 12:37:11 +02:00
Simon Sapin
addaa5b1ff
Add complex (but unconditional) Unicode case mapping. Fix #25800
...
As a result, the iterator returned by `char::to_uppercase` sometimes
yields two or three `char`s instead of just one.
2015-06-06 12:37:10 +02:00
Simon Sapin
66af12721a
to_lowercase/to_uppercase: also map chars not in Lu/Ll categories.
...
This adds 120 mappings:
Dž dž
Dž DŽ
Lj lj
Lj LJ
Nj nj
Nj NJ
Dz dz
Dz DZ
Ι
ᾈ ᾀ
ᾉ ᾁ
ᾊ ᾂ
ᾋ ᾃ
ᾌ ᾄ
ᾍ ᾅ
ᾎ ᾆ
ᾏ ᾇ
ᾘ ᾐ
ᾙ ᾑ
ᾚ ᾒ
ᾛ ᾓ
ᾜ ᾔ
ᾝ ᾕ
ᾞ ᾖ
ᾟ ᾗ
ᾨ ᾠ
ᾩ ᾡ
ᾪ ᾢ
ᾫ ᾣ
ᾬ ᾤ
ᾭ ᾥ
ᾮ ᾦ
ᾯ ᾧ
ᾼ ᾳ
ῌ ῃ
ῼ ῳ
Ⅰ ⅰ
Ⅱ ⅱ
Ⅲ ⅲ
Ⅳ ⅳ
Ⅴ ⅴ
Ⅵ ⅵ
Ⅶ ⅶ
Ⅷ ⅷ
Ⅸ ⅸ
Ⅹ ⅹ
Ⅺ ⅺ
Ⅻ ⅻ
Ⅼ ⅼ
Ⅽ ⅽ
Ⅾ ⅾ
Ⅿ ⅿ
ⅰ Ⅰ
ⅱ Ⅱ
ⅲ Ⅲ
ⅳ Ⅳ
ⅴ Ⅴ
ⅵ Ⅵ
ⅶ Ⅶ
ⅷ Ⅷ
ⅸ Ⅸ
ⅹ Ⅹ
ⅺ Ⅺ
ⅻ Ⅻ
ⅼ Ⅼ
ⅽ Ⅽ
ⅾ Ⅾ
ⅿ Ⅿ
Ⓐ ⓐ
Ⓑ ⓑ
Ⓒ ⓒ
Ⓓ ⓓ
Ⓔ ⓔ
Ⓕ ⓕ
Ⓖ ⓖ
Ⓗ ⓗ
Ⓘ ⓘ
Ⓙ ⓙ
Ⓚ ⓚ
Ⓛ ⓛ
Ⓜ ⓜ
Ⓝ ⓝ
Ⓞ ⓞ
Ⓟ ⓟ
Ⓠ ⓠ
Ⓡ ⓡ
Ⓢ ⓢ
Ⓣ ⓣ
Ⓤ ⓤ
Ⓥ ⓥ
Ⓦ ⓦ
Ⓧ ⓧ
Ⓨ ⓨ
Ⓩ ⓩ
ⓐ Ⓐ
ⓑ Ⓑ
ⓒ Ⓒ
ⓓ Ⓓ
ⓔ Ⓔ
ⓕ Ⓕ
ⓖ Ⓖ
ⓗ Ⓗ
ⓘ Ⓘ
ⓙ Ⓙ
ⓚ Ⓚ
ⓛ Ⓛ
ⓜ Ⓜ
ⓝ Ⓝ
ⓞ Ⓞ
ⓟ Ⓟ
ⓠ Ⓠ
ⓡ Ⓡ
ⓢ Ⓢ
ⓣ Ⓣ
ⓤ Ⓤ
ⓥ Ⓥ
ⓦ Ⓦ
ⓧ Ⓧ
ⓨ Ⓨ
ⓩ Ⓩ
2015-06-06 12:37:10 +02:00
bors
0b0c89efb3
Auto merge of #26032 - achiwhane:master, r=steveklabnik
...
Added a sentence that tells the user that using main.rs and/or lib.rs is required for Cargo.
2015-06-05 21:44:21 +00:00
bors
c78c0994b1
Auto merge of #26024 - Aatch:inline-as_bytes, r=Gankro
...
This wasn't marked inline, so wasn't being inlined cross-crate. It's
actually a no-op function, since it's a wrapper around `mem::transmute`.
Marking it inline means that programs calling it can see that it's a
no-op and act accordingly during optimisation.
2015-06-05 18:47:38 +00:00
bors
75fb009c76
Auto merge of #26023 - arielb1:fast-sized, r=eddyb
...
r? @eddyb
The change to `trans::common::type_is_sized` is because we currently abort, rather than return random results, on overflow.
2015-06-05 15:27:34 +00:00
Ariel Ben-Yehuda
39e6855966
fix test fallout
2015-06-05 17:27:27 +03:00
Akshay Chiwhane
ac3301ec3b
fix some errors
2015-06-05 09:56:42 -04:00
Akshay Chiwhane
455b93151d
fix typo
2015-06-05 09:52:44 -04:00
Akshay Chiwhane
629be845fd
edit for clarity and grammar
2015-06-05 09:50:27 -04:00
Akshay Chiwhane
f9bfebb790
Clarified naming convention for Cargo
...
Added a sentence that tells the user that using main.rs and/or lib.rs is required for Cargo.
2015-06-05 09:20:11 -04:00
bors
19a39710c4
Auto merge of #26028 - steveklabnik:rollup, r=steveklabnik
...
- Successful merges: #25925 , #26001 , #26010 , #26011 , #26017 , #26020
- Failed merges:
2015-06-05 11:59:34 +00:00
Steve Klabnik
eb6a70cbab
Rollup merge of #26020 - frewsxcv:patch-24, r=steveklabnik
2015-06-05 11:20:29 +02:00
Steve Klabnik
e0f6ed8595
Rollup merge of #26017 - Stebalien:fix-rustdoc, r=alexcrichton
...
rust-example-rendered should be a class, not an id.
fixes #26013
2015-06-05 11:20:28 +02:00
Steve Klabnik
c0d8be4094
Rollup merge of #26011 - genodeftest:patch-1, r=steveklabnik
2015-06-05 11:20:28 +02:00
Steve Klabnik
f1dd27524a
Rollup merge of #26010 - ranma42:improve-doc, r=steveklabnik
...
The statement is not completely exact, because it is valid to have
both 0 non-mutable references and 1 mutable reference. Instead, use
the same wording as in mutability.md.
2015-06-05 11:20:28 +02:00
Steve Klabnik
0571726d90
Rollup merge of #26001 - sae-bom:master, r=alexcrichton
...
fixed build fail on aarch64-android
by support aarch64-android raw type definitions
2015-06-05 11:20:28 +02:00
Steve Klabnik
2bcb07933f
Rollup merge of #25925 - azerupi:patch-4, r=steveklabnik
...
Hi
I added a little section in the for loops about the `enumerate()` function.
I think it's useful for beginners to know this function and how you can use it.
I used the title loopcounter, but it's probably not the best word to describe it. So let me know if there is a better word :)
2015-06-05 11:20:28 +02:00
bors
ef72938a8b
Auto merge of #26008 - Marwes:arc_rc_as_ref, r=alexcrichton
...
The implementations are straightforward, I only hope I got the stability attributes correct(?).
2015-06-05 08:30:33 +00:00
bors
d95df9a3a9
Auto merge of #26004 - alexcrichton:msvc-llvm-assertions, r=brson
...
If LLVM assertions are enabled for MSVC, it looks like the output directory is
still just `Release` (or assertions are just always ignored on MSVC).
2015-06-05 05:11:01 +00:00
James Miller
beadbfd194
Mark std::as_bytes as inline
...
This wasn't marked inline, so wasn't being inlined cross-crate. It's
actually a no-op function, since it's a wrapper around `mem::transmute`.
Marking it inline means that programs calling it can see that it's a
no-op and act accordingly during optimisation.
2015-06-05 13:53:55 +12:00
bors
da0d45243b
Auto merge of #26022 - Gankro:fix-linked-list, r=huonw
...
Still running tests...
2015-06-05 01:10:59 +00:00
Alexis Beingessner
e12d3869e3
properly null out ptr in LinkedList::split_off - fixes #26020
2015-06-04 18:01:27 -07:00
Ariel Ben-Yehuda
595409df06
Introduce a fast-path for type_is_sized/type_moves_by_default
...
This seems to improve performance by the same 2-3% of my selection
fast-path.
2015-06-05 03:50:49 +03:00
Corey Farwell
536c244be3
Doc-comment fix; trait names are capitalized
2015-06-04 19:45:43 -04:00
Steven Allen
4c5029a600
Fix order of rustdoc arguments.
...
rust-example-rendered should be a class, not an id.
fixes #26013
2015-06-04 18:03:51 -04:00
bors
e0ca6b1a31
Auto merge of #25975 - arielb1:remove-param-space, r=nikomatsakis
...
r? @nikomatsakis
2015-06-04 21:48:58 +00:00
bors
20cf4cf62c
Auto merge of #25985 - bombless:patch-2, r=alexcrichton
...
nNumberOfBytesToRead --> nNumberOfBytesToWrite
lpNumberOfBytesRead --> lpNumberOfBytesWritten
LPVOID --> LPCVOID
See <https://msdn.microsoft.com/en-us/library/windows/desktop/aa365747(v=vs.85).aspx >
2015-06-04 18:32:43 +00:00
bors
dd81d1ebd9
Auto merge of #26005 - Ms2ger:get_enum_variant_defs, r=Aatch
2015-06-04 14:57:18 +00:00
Christian Stadelmann
2abffd55db
[Documentation: Macros] Use some more SSL
2015-06-04 15:53:22 +02:00
York Xiang
dc15a523e5
crate libc: Correct signature of WriteFile
2015-06-04 21:45:35 +08:00
Christian Stadelmann
3c0165d59f
[Documentation] Use SSL where possible
2015-06-04 15:44:30 +02:00
Andrea Canciani
2b13b45058
Minor fix to docs of constraints on mut/non-mut references
...
The statement is not completely exact, because it is valid to have
both 0 non-mutable references and 1 mutable reference. Instead, use
the same wording as in mutability.md.
2015-06-04 15:14:09 +02:00
Markus Westerlind
7f3ae0aa26
Added AsRef implementations for Arc and Rc
2015-06-04 14:35:04 +02:00
bors
52e530af4c
Auto merge of #25981 - nham:fix_E0201, r=alexcrichton
...
It seems better to use "associated function" here. Methods are associated functions that take a `self` parameter.
2015-06-04 11:48:58 +00:00
bors
0aeb9f6f08
Auto merge of #26002 - Manishearth:rollup, r=Manishearth
...
- Successful merges: #25900 , #25987 , #25988 , #25990 , #25994 , #26000
- Failed merges:
2015-06-04 08:42:22 +00:00
Ms2ger
f2cca31e3d
Inline enum_variant_ids into its only caller.
2015-06-04 10:12:19 +02:00
bors
80d08a37b6
Auto merge of #25991 - Jexell:master, r=alexcrichton
...
Removed an unnecessary `transmute` and replaced some code with an equivalent method.
2015-06-04 06:08:42 +00:00
Manish Goregaokar
fd3b6ca508
Fix doctest (fixup #25900)
2015-06-04 11:26:31 +05:30
Sae-bom Kim
62f66a68da
support aarch64-android raw type definitions
2015-06-04 14:25:05 +09:00
Alex Crichton
3d74fbd496
configure: Fix LLVM output dir on MSVC
...
If LLVM assertions are enabled for MSVC, it looks like the output directory is
still just `Release` (or assertions are just always ignored on MSVC).
2015-06-03 22:08:47 -07:00
Manish Goregaokar
5ef7614243
Rollup merge of #26000 - heejongahn:master, r=alexcrichton
...
Added missing '>' at the end of my email address :)
2015-06-04 10:07:03 +05:30
Manish Goregaokar
71d33cd115
Rollup merge of #25994 - marcusklaas:issue-25969, r=huonw
...
Issue: https://github.com/rust-lang/rust/issues/25969
Compare the span on the stable branch (correct) with the span on the nightly branch (incorrect) for the following example: http://is.gd/lTAo9c . This pull request fixes the regression.
@Manishearth has been kind enough to pitch some ideas for a regression test, mainly revolving around testing the span in compile-fail test, but this has proven unsuccessful. Other suggestions/ ideas would be much appreciated!
2015-06-04 10:07:03 +05:30
Manish Goregaokar
8b57130e84
Rollup merge of #25990 - carols10cents:try-docs, r=nikomatsakis
...
The API documentation is not explicit enough that because `try!` returns
`Err` early for you, you can only use it in functions that return
`Result`. The book mentions this, but if you come across `try!` outside
of the book and look it up in the docs, this restriction on the return
type of the function is not particularly clear.
I seriously had this epiphany a few days ago after working with Rust for MONTHS, and after seeing [a friend have to come to the same realization](http://joelmccracken.github.io/entries/a-simple-web-app-in-rust-pt-2a/ ), I'd like to save more people from this confusion :) 💖
2015-06-04 10:07:02 +05:30
Manish Goregaokar
5421b1fa25
Rollup merge of #25988 - webmobster:master, r=alexcrichton
...
The priority policy of RWLock is not specified, and the fact there is no policy should probably be specified.
2015-06-04 10:07:02 +05:30