rust/src/libsyntax/parse
bors 063deba92e Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkov
Fix span of visibility

This PR

1. adds a closing parenthesis to the span of `Visibility::Crate` (e.g. `pub(crate)`). The current span only covers `pub(crate`.
2. adds a `span` field to `Visibility::Restricted`. This span covers the entire visibility expression (e.g. `pub (in self)`). Currently all we can have is a span for `Path`.

This PR is motivated by the bug found in rustfmt (https://github.com/rust-lang-nursery/rustfmt/issues/2398).

The first change is a strict improvement IMHO. The second change may not be desirable, as it adds a field which is currently not used by the compiler.
2018-02-23 11:21:29 +00:00
..
lexer Improve char escaping in lexer messages 2018-02-01 08:19:22 +11:00
attr.rs Fix test after rebase 2018-02-01 15:16:02 -08:00
classify.rs Catch expression does not require semicolon to be a statement 2017-07-18 03:42:21 +03:00
common.rs Fix some clippy warnings in libsyntax 2017-05-12 20:05:39 +02:00
mod.rs Fix up tests and typos 2018-02-18 00:10:40 +09:00
obsolete.rs address review comments 2017-11-20 18:03:20 +00:00
parser.rs Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkov 2018-02-23 11:21:29 +00:00
token.rs The static keyword can now begin expressions 2018-01-30 12:50:42 +01:00