Skip to content

Commit db2c699

Browse files
committed
---
yaml --- r: 104156 b: refs/heads/try c: 5deb3c9 h: refs/heads/master v: v3
1 parent e75bb58 commit db2c699

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 62f1d68439dcfd509eaca29887afa97f22938373
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6e7f170fedd3c526a643c0b2d13863acd982be02
5-
refs/heads/try: 9a6d92c1d706af14da336892e8d5148c3d3859ee
5+
refs/heads/try: 5deb3c9ca06509ce261f69fd01426825e32d61c1
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libsyntax/parse/obsolete.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pub enum ObsoleteSyntax {
3030
ObsoleteSwap,
3131
ObsoleteUnsafeBlock,
3232
ObsoleteBareFnType,
33-
ObsoleteNamedExternModule,
3433
ObsoleteMultipleLocalDecl,
3534
ObsoleteUnsafeExternFn,
3635
ObsoleteTraitFuncVisibility,
@@ -42,7 +41,6 @@ pub enum ObsoleteSyntax {
4241
ObsoleteBoxedClosure,
4342
ObsoleteClosureType,
4443
ObsoleteMultipleImport,
45-
ObsoleteExternModAttributesInParens,
4644
ObsoleteManagedPattern,
4745
ObsoleteManagedString,
4846
ObsoleteManagedVec,
@@ -86,11 +84,6 @@ impl ParserObsoleteMethods for Parser {
8684
"bare function type",
8785
"use `|A| -> B` or `extern fn(A) -> B` instead"
8886
),
89-
ObsoleteNamedExternModule => (
90-
"named external module",
91-
"instead of `extern mod foo { ... }`, write `mod foo { \
92-
extern { ... } }`"
93-
),
9487
ObsoleteMultipleLocalDecl => (
9588
"declaration of multiple locals at once",
9689
"instead of e.g. `let a = 1, b = 2`, write \
@@ -141,11 +134,6 @@ impl ParserObsoleteMethods for Parser {
141134
"multiple imports",
142135
"only one import is allowed per `use` statement"
143136
),
144-
ObsoleteExternModAttributesInParens => (
145-
"`extern mod` with linkage attribute list",
146-
"use `extern mod foo = \"bar\";` instead of \
147-
`extern mod foo (name = \"bar\")`"
148-
),
149137
ObsoleteManagedPattern => (
150138
"managed pointer pattern",
151139
"use a nested `match` expression instead of a managed box \

branches/try/src/test/compile-fail/obsolete-syntax.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
extern mod obsolete_name {
12-
//~^ ERROR obsolete syntax: named external module
13-
fn bar();
14-
}
15-
1611
trait A {
1712
pub fn foo(); //~ ERROR: visibility not necessary
1813
pub fn bar(); //~ ERROR: visibility not necessary

0 commit comments

Comments
 (0)