Avoid cloning ast::CrateConfig
libstd: Add missing constants for arm/linux.
auto merge of #12051 : luqmana/rust/arm-fix, r=alexcrichton

Fix building for arm/Linux.
Fix expansion tests
auto merge of #12048 : sanxiyn/rust/crate-config, r=alexcrichton
Replace `crate` usage with `crt`

This patch replaces all `crate` usage with `crt` before introducing the
new keyword. This ensures that after introducing the keyword, there
won't be any compilation errors.

crt might not be the most expressive substitution for crate but it's a
very close abbreviation for it. `module` was already used in several
places already.
Replace `extern mod` with `extern crate`

This patch adds a new keyword `crate` which is intended to replace mod
in the context of `extern mod` as part of the issue #9880. The patch
doesn't replace all `extern mod` cases since it is necessary to first
push a new snapshot 0.

The implementation could've been less invasive than this. However I
preferred to take this chance to split the `parse_item_foreign_mod`
method and pull the `extern crate` part out of there, hence the new
method `parse_item_foreign_crate`.
Remove obsolete warnings for `extern mod`

This patch gets rid of ObsoleteExternModAttributesInParens and
ObsoleteNamedExternModule since the replacement of `extern mod` with
`extern crate` avoids those cases and raises different errors. Both have
been around for at least a version which makes this a good moment to get
rid of them.