File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
trunk/src/libsyntax/parse Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: a56e2eecf5db674be7650ddefb14d97b39a7df67
2
+ refs/heads/master: fc44a9c7dd7203315a47b307c774d22f89d864be
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
5
5
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729
Original file line number Diff line number Diff line change @@ -922,6 +922,7 @@ impl Parser {
922
922
let attrs = p. parse_outer_attributes ( ) ;
923
923
let lo = p. span . lo ;
924
924
925
+ let vis_span = * self . span ;
925
926
let vis = p. parse_visibility ( ) ;
926
927
let pur = p. parse_fn_purity ( ) ;
927
928
// NB: at the moment, trait methods are public by default; this
@@ -947,7 +948,7 @@ impl Parser {
947
948
// NB: at the moment, visibility annotations on required
948
949
// methods are ignored; this could change.
949
950
if vis != ast:: inherited {
950
- self . obsolete ( * self . last_span ,
951
+ self . obsolete ( vis_span ,
951
952
ObsoleteTraitFuncVisibility ) ;
952
953
}
953
954
required ( TypeMethod {
You can’t perform that action at this time.
0 commit comments