Commit Graph

4 Commits

Author SHA1 Message Date
Alex Crichton
eb2f1d925f rustc: Add support for extern crate foo as bar
The compiler will now issue a warning for crates that have syntax of the form
`extern crate "foo" as bar`, but it will still continue to accept this syntax.
Additionally, the string `foo-bar` will match the crate name `foo_bar` to assist
in the transition period as well.

This patch will land hopefully in tandem with a Cargo patch that will start
translating all crate names to have underscores instead of hyphens.

cc #23533
2015-03-24 14:55:15 -07:00
Junseok Lee
9b67d07acc added license header to test 2015-02-20 16:16:09 -08:00
Junseok Lee
3419d51199 added local crate struct with priv field to test 2015-02-20 16:16:09 -08:00
Junseok Lee
85069e0529 added 'suggest-private-fields' cfail test 2015-02-20 16:16:09 -08:00