rust/src/librustc_metadata
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
..
Cargo.toml Try to fix a perf regression by updating log 2018-01-07 16:54:05 +01:00
astencode.rs incr.comp.: Hash spans unconditionally for full accuracy. 2017-12-08 10:02:26 +01:00
build.rs rustc: Add some build scripts for librustc crates 2017-07-22 22:04:13 -07:00
creader.rs Don't include DefIndex in plugin- and proc-macro registrar fn symbol. 2018-01-16 17:30:11 +01:00
cstore.rs CStore switch FxHashMap to IndexVec 2017-12-27 10:36:52 -05:00
cstore_impl.rs Replace dummy spans with empty spans 2018-02-18 00:10:40 +09:00
decoder.rs Reexport -> re-export in prose and documentation comments 2018-01-15 13:36:53 -05:00
diagnostics.rs Clarify failure condition on tests 2017-09-05 11:55:01 -07:00
dynamic_lib.rs rustc: Load the `rustc_trans` crate at runtime 2018-01-27 19:16:21 -08:00
encoder.rs Remove `impl Foo for ..` in favor of `auto trait Foo` 2018-01-13 18:48:00 +03:00
index.rs Use different DefIndex representation that is better suited for variable length integer encodings. 2018-01-08 14:15:17 +01:00
index_builder.rs Replace uses of DepGraph.in_ignore with DepGraph.with_ignore 2018-01-09 18:35:50 +01:00
isolated_encoder.rs incr.comp.: Remove on-export crate metadata hashing. 2017-11-29 16:28:25 +01:00
lib.rs stage0 cfg cleanup 2018-02-20 08:52:33 -07:00
link_args.rs rustc: Remove a number of mutable fields in cstore 2017-09-05 07:37:28 -07:00
locator.rs Use the new fs_read_write functions in rustc internals 2018-01-10 14:53:40 -08:00
native_libs.rs Avoid panicking when invalid argument is passed to cfg(..) 2018-01-12 21:48:17 +09:00
schema.rs Remove `impl Foo for ..` in favor of `auto trait Foo` 2018-01-13 18:48:00 +03:00