Skip to content

Commit 201ec98

Browse files
committed
---
yaml --- r: 64772 b: refs/heads/snap-stage3 c: ed20fcc h: refs/heads/master v: v3
1 parent e4d6da2 commit 201ec98

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: e7211948a546596bbe058b4fd3748a24adecaf02
4+
refs/heads/snap-stage3: ed20fcc4596c45aef37a1e8a13dd9fcd6e0e6dd5
55
refs/heads/try: 7b78b52e602bb3ea8174f9b2006bff3315f03ef9
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4196,7 +4196,7 @@ impl Parser {
41964196

41974197
// Do not allow visibility to be specified.
41984198
if visibility != ast::inherited {
4199-
self.obsolete(*self.span, ObsoleteExternVisibility);
4199+
self.obsolete(*self.last_span, ObsoleteExternVisibility);
42004200
}
42014201

42024202
let abis = opt_abis.get_or_default(AbiSet::C());

branches/snap-stage3/src/test/compile-fail/obsolete-syntax.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,14 @@ fn obsolete_moves() {
6363
//~^ ERROR obsolete syntax: binary move
6464
}
6565

66+
extern mod obsolete_name {
67+
//~^ ERROR obsolete syntax: named external module
68+
fn bar();
69+
}
70+
71+
pub extern {
72+
//~^ ERROR obsolete syntax: `pub extern`
73+
pub fn bar();
74+
}
75+
6676
fn main() { }

0 commit comments

Comments
 (0)