diff options
| author | bors <bors@rust-lang.org> | 2015-03-24 22:44:33 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-03-24 22:44:33 +0000 |
| commit | 123a754cb8356d0e78837dd4e58103ad801309ff (patch) | |
| tree | a517d12dbb1458f49e21ae40e026d699576dce92 /src/libsyntax/parse/mod.rs | |
| parent | ed810385045ab0db90303574ba3ea47dfa2a36d5 (diff) | |
| parent | eb2f1d925ffdb79d45c7b74cef549e54533c3951 (diff) | |
| download | rust-123a754cb8356d0e78837dd4e58103ad801309ff.tar.gz rust-123a754cb8356d0e78837dd4e58103ad801309ff.zip | |
Auto merge of #23546 - alexcrichton:hyphens, r=brson
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
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index 968d2fd7e2a..4e851761212 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -1060,7 +1060,7 @@ mod test { let vitem_s = item_to_string(&*vitem); assert_eq!(&vitem_s[..], ex_s); - let ex_s = "extern crate \"foo\" as bar;"; + let ex_s = "extern crate foo as bar;"; let vitem = string_to_item(ex_s.to_string()).unwrap(); let vitem_s = item_to_string(&*vitem); assert_eq!(&vitem_s[..], ex_s); |
