auto merge of #10696 : fhahn/rust/issue9543-remove-extern-mod-foo, r=pcwalton

This patch for  #9543 throws an `obsolete syntax` error for `extern mod foo (name="bar")` . 
I was wondering if [this](https://github.com/fhahn/rust/compare/mozilla:master...fhahn:issue9543-remove-extern-mod-foo?expand=1#diff-da9d34ca1d0f6beee2838cf02e07345cR4444) is the correct place to do this?

I think the wording of the error message could probably be improved as well.

If this approach is OK, I'm going to run the whole test suite tomorrow and update the old syntax to the new one.
This commit is contained in:
bors 2014-01-02 11:32:09 -08:00
commit 0df9b850ac
18 changed files with 62 additions and 37 deletions

View file

@ -13,7 +13,7 @@
#[crate_id="crateresolve8#0.1"];
extern mod crateresolve8(vers = "0.1", package_id="crateresolve8#0.1");
extern mod crateresolve8 = "crateresolve8#0.1";
//extern mod crateresolve8(vers = "0.1");
pub fn main() {

View file

@ -11,7 +11,7 @@
// xfail-fast
//aux-build:extern-crosscrate-source.rs
extern mod externcallback(vers = "0.1");
extern mod externcallback = "externcallback#0.1";
fn fact(n: uint) -> uint {
unsafe {

View file

@ -12,7 +12,6 @@
// xfail-fast
#[crate_id="issue-6919"];
extern mod issue6919_3;
pub fn main() {