Typeck: Disallow scalar casts to bare_fn.

Bare functions are another example of a scalar but non-numeric
type (like char) that should be handled separately in casts.
This disallows expressions like `0 as extern "Rust" fn() -> int;`.

It might be advantageous to allow casts between bare functions
and raw pointers in unsafe code in the future, to pass function
pointers between Rust and C.

Closes #8728
Added octal literal support.
Grammar error and vim syntax highlighting mistake fixed.
Create epub versions of tutorial and ref manual.

Pandoc can create epub verions of the markdown files. Since the docs
are lengthy, epubs are handy to have around. Two rules to create epub
versions of the reference manual and the main tutorial are added here.

Signed-off-by: Noufal Ibrahim <noufal@nibrahim.net.in>
Added skeleton implementation of a B-tree with a few bells and
whistles.  No major functionality added yet (such as insertion and
removal).
rt: Convert timezone to utf-8 on Windows

Previously #9418 fixed utf-8 assertion issue by wcsftime,
but the function didn't work as expected: it follows the locale
set by setlocale(), not the system code page.
This patch fixes it by manual multibyte-to-unicode conversion.
Re-arranging some things in btree.rs to accommodate testing.
Fixes for compilation to iOS:

- remove /usr/include from the include path since the iOS SDK provides the correct version
- `_NSGetEnviron()` is private and not available on iOS
- `.align` without an argument is not allowed with the Apple tools. 2^2 should be the default alignment
- ignore error messages for XCode < 5
- pass include path to libuv
auto merge of #10227 : kud1ing/rust/ios, r=alexcrichton
Added positive tests for integer literal base interpretation.
Register new snapshots
auto merge of #10328 : alexcrichton/rust/snapshots, r=thestinger
add `from_send` to Rc, since #9509 is fixed
auto merge of #10322 : thestinger/rust/no_freeze, r=alexcrichton
update for ndk r9b
fix rpass core-run-destroy for android
auto merge of #10336 : ksh8281/rust/fix_rpass_core-run-destroy_for_android, r=yichoi

fix rpass core-run-destroy for android
Addressed style concerns in btree.rs and added it to the lib file.
Added documentation within btree.rs.
Add ~ to the list of allowable URL characters.
std::ascii: Provide a copyless [Ascii] -> str method.

This renames to_str_ascii to as_str_ascii and makes it non-copying,
which is possible now that strings no longer have a hidden extra
byte/null terminator.

Fixes #6120.