Handle attributes on cross-crate tuple-structs correctly

Fixes #11741
Fix rustpkg tests with --disable-inject-std-version

Right now the bots are all injecting a libstd version, so all the rustpkg tests
are passing. All rustpkg compilations will fail unless the version number is
explicitly given because rustpkg attempts to exactly guess the target file name.
Switch back to using a pattern match in order to unbreak tests.

Closes #11852
Make next_power_of_two generic for unsigned integers

Also rename `next_power_of_two_opt` to `checked_next_power_of_two`.
Remove some unused imports
Remove free-standing div functions in std::uint
Move int and uint overflow tests into macros
Added minmax function.
Tests ok
Un-xfail test for 7385

I've verified that it works on osx x86_64

Closes #7385
Fix minor doc typos
Add test case for issue 7911
bump minimum supported OS X version to 10.7

Closes #11927
Closes #10842
Closes #2024
mark Windows 8 as supported
mark the minimum supported Linux kernel version

This is just taken from the binary itself. It would be nice to mark the
minimum glibc version too, and the corresponding RHEL/CentOS version.
Add test cases for #4063.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>
Add test for sensible #[start] error message.

Fixes #9575.
Remove the obsolete handler for `impl A;`.

This is has been obsolete for quite a while now (including a release),
so removing the special handling seems fine. (The error message is quite
good still anyway.)

Fixes #9580.
Test for null buffer in CString.len()/.iter() and fail

Also change .as_str() to fail on null buffer.
Remove the need to count lang items

This solves horrible diffs where all you do is renumber literally everything.
Fixing tests
auto merge of #11965 : alexcrichton/rust/issue-7385, r=alexcrichton

I've verified that it works on osx x86_64

Closes #7385

Rolled up PRs:

Closes #11898
Closes #11934
Closes #11942
Closes #11952 
Closes #11960 
Closes #11966
Closes #11953 

Closed issues:

Closes #4063 
Closes #7911