Add unimplemented! macro
Add missing test for unreachable! macro
Clean up formatting in macros module
rustc: Remove 'morestack_addr' intrinsic. Unused
Added missing export of CowArc
Remove redundant Ord implementation for Version.

I've forgot why we keep them, so let me know if you know their reason
for existing.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Fix unused import warnings.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Remove an unused variable in a test of std::c_str.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Remove unnecessary parentheses.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Tweak from_utf8_lossy to return a new MaybeOwned enum

MaybeOwned allows from_utf8_lossy to avoid allocation if there are no
invalid bytes in the input.
Implement BytesContainer for MaybeOwned
Delete send_str, rewrite clients on top of MaybeOwned<'static>

Declare a `type SendStr = MaybeOwned<'static>` to ease readibility of
types that needed the old SendStr behavior.

Implement all the traits for MaybeOwned that SendStr used to implement.
Rewrite path::Display to reduce unnecessary allocation
doc: Modernize FAQs just slightly
auto merge of #12096 : brson/rust/morestack-addr, r=thestinger
auto merge of #12101 : csherratt/rust/master, r=alexcrichton

CowArc was crated before libsync and the merge request did not contain the required export change.
auto merge of #12098 : kballard/rust/from_utf8_lossy_tweak, r=huonw

MaybeOwned allows from_utf8_lossy to avoid allocation if there are no
invalid bytes in the input.

Before:
```
test str::bench::from_utf8_lossy_100_ascii                      ... bench:       183 ns/iter (+/- 5)
test str::bench::from_utf8_lossy_100_invalid                    ... bench:       341 ns/iter (+/- 15)
test str::bench::from_utf8_lossy_100_multibyte                  ... bench:       227 ns/iter (+/- 13)
test str::bench::from_utf8_lossy_invalid                        ... bench:       102 ns/iter (+/- 4)
test str::bench::is_utf8_100_ascii                              ... bench:         2 ns/iter (+/- 0)
test str::bench::is_utf8_100_multibyte                          ... bench:         2 ns/iter (+/- 0)
```

Now:
```
test str::bench::from_utf8_lossy_100_ascii                      ... bench:        96 ns/iter (+/- 4)
test str::bench::from_utf8_lossy_100_invalid                    ... bench:       318 ns/iter (+/- 10)
test str::bench::from_utf8_lossy_100_multibyte                  ... bench:       105 ns/iter (+/- 2)
test str::bench::from_utf8_lossy_invalid                        ... bench:       105 ns/iter (+/- 2)
test str::bench::is_utf8_100_ascii                              ... bench:         2 ns/iter (+/- 0)
test str::bench::is_utf8_100_multibyte                          ... bench:         2 ns/iter (+/- 0)
```
make: update dist target for renamed files

src/README.txt has been renamed in a30d61b05a, make dist is
thus failing as unable to find it.
This commit makes the dist target working again.

Signed-off-by: Luca Bruno <lucab@debian.org>
rustpkg has gone.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
auto merge of #12109 : omasanori/rust/small-fixes, r=sfackler

Most of them are to reduce warnings in testing builds.