Skip to content

Commit 3570879

Browse files
committed
---
yaml --- r: 81910 b: refs/heads/master c: fc44a9c h: refs/heads/master v: v3
1 parent 9eb844f commit 3570879

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: a56e2eecf5db674be7650ddefb14d97b39a7df67
2+
refs/heads/master: fc44a9c7dd7203315a47b307c774d22f89d864be
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729

trunk/src/libsyntax/parse/parser.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,7 @@ impl Parser {
922922
let attrs = p.parse_outer_attributes();
923923
let lo = p.span.lo;
924924

925+
let vis_span = *self.span;
925926
let vis = p.parse_visibility();
926927
let pur = p.parse_fn_purity();
927928
// NB: at the moment, trait methods are public by default; this
@@ -947,7 +948,7 @@ impl Parser {
947948
// NB: at the moment, visibility annotations on required
948949
// methods are ignored; this could change.
949950
if vis != ast::inherited {
950-
self.obsolete(*self.last_span,
951+
self.obsolete(vis_span,
951952
ObsoleteTraitFuncVisibility);
952953
}
953954
required(TypeMethod {

0 commit comments

Comments
 (0)