rust/src/librustc_resolve
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
..
build_reduced_graph.rs Reexport -> re-export in error messages 2018-01-15 13:36:52 -05:00
Cargo.toml Try to fix a perf regression by updating log 2018-01-07 16:54:05 +01:00
check_unused.rs Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkov 2018-02-23 11:21:29 +00:00
diagnostics.rs fix E0260 error index doctest 2018-02-17 16:51:39 -06:00
lib.rs Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkov 2018-02-23 11:21:29 +00:00
macros.rs Store a list of local macros on the resolver; use for resolving intra-doc macro links 2018-01-22 15:24:30 +05:30
resolve_imports.rs fix more typos found by codespell. 2018-02-17 17:38:49 +01:00