Skip to content

Commit 1fc2bcc

Browse files
committed
---
yaml --- r: 94975 b: refs/heads/dist-snap c: fc44a9c h: refs/heads/master i: 94973: e1e4d46 94971: d815959 94967: 3789355 94959: cc3b7d4 94943: d2bb6f6 94911: ef61b68 94847: 018537a 94719: d67ffae v: v3
1 parent d2f4423 commit 1fc2bcc

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
@@ -6,7 +6,7 @@ refs/heads/try: c274a6888410ce3e357e014568b43310ed787d36
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: a56e2eecf5db674be7650ddefb14d97b39a7df67
9+
refs/heads/dist-snap: fc44a9c7dd7203315a47b307c774d22f89d864be
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/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)