diff options
| author | Florian Hahn <flo@fhahn.com> | 2013-11-26 23:54:32 +0100 |
|---|---|---|
| committer | Florian Hahn <flo@fhahn.com> | 2014-01-01 23:36:57 +0100 |
| commit | f42a36cded2ac71e36b2572c54da0fc623af2eca (patch) | |
| tree | 80886ea0826589bc767f3b50171dd33894d026ef /src/libsyntax/parse/obsolete.rs | |
| parent | 51ace54597984b221321d1cac0f80c50f9e00f71 (diff) | |
| download | rust-f42a36cded2ac71e36b2572c54da0fc623af2eca.tar.gz rust-f42a36cded2ac71e36b2572c54da0fc623af2eca.zip | |
Remove `extern mod foo (name="bar")` syntax, closes #9543
Diffstat (limited to 'src/libsyntax/parse/obsolete.rs')
| -rw-r--r-- | src/libsyntax/parse/obsolete.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsyntax/parse/obsolete.rs b/src/libsyntax/parse/obsolete.rs index d739fca99da..df6fbe98aed 100644 --- a/src/libsyntax/parse/obsolete.rs +++ b/src/libsyntax/parse/obsolete.rs @@ -45,6 +45,7 @@ pub enum ObsoleteSyntax { ObsoleteBoxedClosure, ObsoleteClosureType, ObsoleteMultipleImport, + ObsoleteExternModAttributesInParens } impl to_bytes::IterBytes for ObsoleteSyntax { @@ -145,6 +146,11 @@ impl ParserObsoleteMethods for Parser { "multiple imports", "only one import is allowed per `use` statement" ), + ObsoleteExternModAttributesInParens => ( + "`extern mod` with linkage attribute list", + "use `extern mod foo = \"bar\";` instead of \ + `extern mod foo (name = \"bar\")`" + ) }; self.report(sp, kind, kind_str, desc); |
