diff --git a/src/libsyntax/parse/obsolete.rs b/src/libsyntax/parse/obsolete.rs index 6f6f8d7d563..24227dea531 100644 --- a/src/libsyntax/parse/obsolete.rs +++ b/src/libsyntax/parse/obsolete.rs @@ -30,7 +30,6 @@ pub enum ObsoleteSyntax { ObsoleteSwap, ObsoleteUnsafeBlock, ObsoleteBareFnType, - ObsoleteNamedExternModule, ObsoleteMultipleLocalDecl, ObsoleteUnsafeExternFn, ObsoleteTraitFuncVisibility, @@ -42,7 +41,6 @@ pub enum ObsoleteSyntax { ObsoleteBoxedClosure, ObsoleteClosureType, ObsoleteMultipleImport, - ObsoleteExternModAttributesInParens, ObsoleteManagedPattern, ObsoleteManagedString, ObsoleteManagedVec, @@ -86,11 +84,6 @@ fn obsolete(&mut self, sp: Span, kind: ObsoleteSyntax) { "bare function type", "use `|A| -> B` or `extern fn(A) -> B` instead" ), - ObsoleteNamedExternModule => ( - "named external module", - "instead of `extern mod foo { ... }`, write `mod foo { \ - extern { ... } }`" - ), ObsoleteMultipleLocalDecl => ( "declaration of multiple locals at once", "instead of e.g. `let a = 1, b = 2`, write \ @@ -141,11 +134,6 @@ fn obsolete(&mut self, sp: Span, kind: ObsoleteSyntax) { "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\")`" - ), ObsoleteManagedPattern => ( "managed pointer pattern", "use a nested `match` expression instead of a managed box \ diff --git a/src/test/compile-fail/obsolete-syntax.rs b/src/test/compile-fail/obsolete-syntax.rs index 07fa5077d9b..9fe5e2031bb 100644 --- a/src/test/compile-fail/obsolete-syntax.rs +++ b/src/test/compile-fail/obsolete-syntax.rs @@ -8,11 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -extern mod obsolete_name { - //~^ ERROR obsolete syntax: named external module - fn bar(); -} - trait A { pub fn foo(); //~ ERROR: visibility not necessary pub fn bar(); //~ ERROR: visibility not necessary