]> git.lizzy.rs Git - rust.git/commit
rollup merge of #23546: alexcrichton/hyphens
authorAlex Crichton <alex@alexcrichton.com>
Tue, 24 Mar 2015 21:56:00 +0000 (14:56 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 24 Mar 2015 21:56:00 +0000 (14:56 -0700)
commit91b633aa038008fdbee658a10182afdd794d2aa6
tree9aace54d26dfdc7e66a1ec1b273f00770b801ad3
parent5ed8733ea39927d267f4e99c16d3fdca671d8315
parenteb2f1d925ffdb79d45c7b74cef549e54533c3951
rollup merge of #23546: alexcrichton/hyphens

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
src/libsyntax/parse/parser.rs
src/libsyntax/print/pprust.rs