rust/src
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
..
binaryen@17841e155e Update binaryen to fix -Werror with GCC 8 2018-02-07 12:20:25 -08:00
bootstrap Bootstrap from the 1.25 beta 2018-02-20 08:52:33 -07:00
build_helper
ci Rollup merge of #48120 - matthiaskrgr:typos_src_1, r=alexcrichton 2018-02-11 00:53:05 +08:00
dlmalloc@9b2dcac06c Update the dlmalloc submodule 2018-02-10 07:01:27 -08:00
doc Fix submodule ref 2018-02-18 19:40:13 -05:00
etc fix typos in src/{bootstrap,ci,etc,lib{backtrace,core,fmt_macros}} 2018-02-10 12:22:57 +01:00
grammar
jemalloc@1f5a28755e
liballoc Auto merge of #47687 - SimonSapin:panic-impl, r=sfackler 2018-02-18 06:02:35 +00:00
liballoc_jemalloc
liballoc_system
libarena
libbacktrace fix typos in src/{bootstrap,ci,etc,lib{backtrace,core,fmt_macros}} 2018-02-10 12:22:57 +01:00
libcompiler_builtins@266ea0740a Update compiler-builtins to latest master. 2018-02-13 22:39:11 +01:00
libcore Auto merge of #48343 - Mark-Simulacrum:release-step, r=kennytm 2018-02-22 23:25:39 +00:00
libfmt_macros fix typos in src/{bootstrap,ci,etc,lib{backtrace,core,fmt_macros}} 2018-02-10 12:22:57 +01:00
libgetopts
libgraphviz
liblibc@56444a4545 Revert unintentional submodule updates 2018-02-18 00:21:33 +09:00
libpanic_abort rustc: Add an option to default hidden visibility 2018-01-30 13:41:20 -08:00
libpanic_unwind
libproc_macro proc_macro: don't panic parsing ..= (fix #47950) 2018-02-06 14:43:01 +00:00
libprofiler_builtins
librustc Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkov 2018-02-23 11:21:29 +00:00
librustc_allocator Fix up tests and typos 2018-02-18 00:10:40 +09:00
librustc_apfloat fix more typos found by codespell. 2018-02-17 17:38:49 +01:00
librustc_asan
librustc_back Rollup merge of #47890 - pftbest:no_trap, r=alexcrichton 2018-01-31 16:36:17 +08:00
librustc_binaryen Export wasm source map when debug information is enabled 2018-01-30 20:10:58 -06:00
librustc_borrowck fix more typos found by codespell. 2018-02-17 17:38:49 +01:00
librustc_const_eval stage0 cfg cleanup 2018-02-20 08:52:33 -07:00
librustc_const_math
librustc_cratesio_shim
librustc_data_structures Generate documentation for auto-trait impls 2018-02-18 16:29:24 -05:00
librustc_driver stage0 cfg cleanup 2018-02-20 08:52:33 -07:00
librustc_errors Remove dead code 2018-02-02 09:18:49 +05:30
librustc_incremental incr.comp.: Run cache directory garbage collection before loading dep-graph. 2018-02-13 13:37:32 +01:00
librustc_lint Rollup merge of #48033 - GuillaumeGomez:better-char-cast-message, r=estebank 2018-02-14 16:14:31 +08:00
librustc_llvm rustc: Persist LLVM's Linker in Fat LTO 2018-02-12 09:11:06 -08:00
librustc_lsan
librustc_metadata Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkov 2018-02-23 11:21:29 +00:00
librustc_mir Auto merge of #48052 - eddyb:deggregate, r=nikomatsakis 2018-02-23 02:21:06 +00:00
librustc_msan
librustc_passes Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkov 2018-02-23 11:21:29 +00:00
librustc_platform_intrinsics
librustc_plugin stage0 cfg cleanup 2018-02-20 08:52:33 -07:00
librustc_privacy stage0 cfg cleanup 2018-02-20 08:52:33 -07:00
librustc_resolve Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkov 2018-02-23 11:21:29 +00:00
librustc_save_analysis Replace dummy spans with empty spans 2018-02-18 00:10:40 +09:00
librustc_trans stage0 cfg cleanup 2018-02-20 08:52:33 -07:00
librustc_trans_utils stage0 cfg cleanup 2018-02-20 08:52:33 -07:00
librustc_tsan
librustc_typeck Auto merge of #48343 - Mark-Simulacrum:release-step, r=kennytm 2018-02-22 23:25:39 +00:00
librustdoc Auto merge of #48343 - Mark-Simulacrum:release-step, r=kennytm 2018-02-22 23:25:39 +00:00
libserialize
libstd Auto merge of #48343 - Mark-Simulacrum:release-step, r=kennytm 2018-02-22 23:25:39 +00:00
libstd_unicode
libsyntax Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkov 2018-02-23 11:21:29 +00:00
libsyntax_ext Replace dummy spans with empty spans 2018-02-18 00:10:40 +09:00
libsyntax_pos Fix up tests and typos 2018-02-18 00:10:40 +09:00
libterm
libtest libtest: Replace panics with error messages 2018-02-04 06:10:54 +02:00
libunwind
llvm@9f81beaf32 rustc: Upgrade to LLVM 6 2018-02-09 17:13:14 -08:00
llvm-emscripten@2717444753
rt Remove hoedown from rustdoc 2018-02-16 23:17:15 +01:00
rtstartup
rustc
rustllvm rustc: Persist LLVM's Linker in Fat LTO 2018-02-12 09:11:06 -08:00
test Auto merge of #47799 - topecongiro:fix-span-of-visibility, r=petrochenkov 2018-02-23 11:21:29 +00:00
tools Rollup merge of #48274 - GuillaumeGomez:remove-hoedown, r=QuietMisdreavus 2018-02-18 13:20:59 +01:00
Cargo.lock bump pulldown 2018-02-18 17:57:06 -08:00
Cargo.toml Convert python script to rust 2018-02-08 10:53:09 +01:00
stage0.txt Bootstrap from the 1.25 beta 2018-02-20 08:52:33 -07:00