063deba92e
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. |
||
---|---|---|
.. | ||
Cargo.toml | ||
astencode.rs | ||
build.rs | ||
creader.rs | ||
cstore.rs | ||
cstore_impl.rs | ||
decoder.rs | ||
diagnostics.rs | ||
dynamic_lib.rs | ||
encoder.rs | ||
index.rs | ||
index_builder.rs | ||
isolated_encoder.rs | ||
lib.rs | ||
link_args.rs | ||
locator.rs | ||
native_libs.rs | ||
schema.rs |