Skip to content

Commit fa29bce

Browse files
committed
Auto merge of #45096 - DSpeckhals:update-rls-data-for-save-analysis, r=alexcrichton
Update rls-data for save analysis rls-data: 0.10 -> 0.11 This will allow for more fine-grained save analysis for enum variants (tuple and struct). The first commit updates rls-data, and makes the changes to dump_visitor. The second commit updates the rls submodule, and removes "members" that were deleted from that update in src/Cargo.toml. Note, that when building the project, rustfmt-nightly was updated in Cargo.lock. If these changes should be excluded, I can revert it. cc/ @nrc
2 parents e847f30 + aba409c commit fa29bce

File tree

6 files changed

+21
-56
lines changed

6 files changed

+21
-56
lines changed

src/Cargo.lock

+14-42
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Cargo.toml

+2-9
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,17 @@ members = [
2222
"tools/rustfmt",
2323
# FIXME(https://github.com/rust-lang/cargo/issues/4089): move these to exclude
2424
"tools/rls/test_data/borrow_error",
25-
"tools/rls/test_data/completion",
26-
"tools/rls/test_data/find_all_refs",
25+
"tools/rls/test_data/common",
26+
"tools/rls/test_data/features",
2727
"tools/rls/test_data/find_all_refs_no_cfg_test",
28-
"tools/rls/test_data/goto_def",
29-
"tools/rls/test_data/highlight",
30-
"tools/rls/test_data/hover",
31-
"tools/rls/test_data/rename",
3228
"tools/rls/test_data/reformat",
33-
"tools/rls/test_data/bin_lib_no_cfg_test",
3429
"tools/rls/test_data/multiple_bins",
3530
"tools/rls/test_data/bin_lib",
3631
"tools/rls/test_data/reformat_with_range",
3732
"tools/rls/test_data/find_impls",
3833
"tools/rls/test_data/infer_bin",
3934
"tools/rls/test_data/infer_custom_bin",
4035
"tools/rls/test_data/infer_lib",
41-
"tools/rls/test_data/omit_init_build",
42-
"tools/rls/test_data/unicødë",
4336
"tools/rls/test_data/workspace_symbol",
4437
]
4538

src/librustc_save_analysis/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ rustc_data_structures = { path = "../librustc_data_structures" }
1515
rustc_typeck = { path = "../librustc_typeck" }
1616
syntax = { path = "../libsyntax" }
1717
syntax_pos = { path = "../libsyntax_pos" }
18-
rls-data = "0.10"
18+
rls-data = "0.11"
1919
rls-span = "0.4"
2020
# FIXME(#40527) should move rustc serialize out of tree
2121
rustc-serialize = "0.3"

src/librustc_save_analysis/dump_visitor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ impl<'l, 'tcx: 'l, 'll, O: DumpOutput + 'll> DumpVisitor<'l, 'tcx, 'll, O> {
611611
let parent = Some(::id_from_node_id(item.id, &self.save_ctxt));
612612

613613
self.dumper.dump_def(item.vis == ast::Visibility::Public, Def {
614-
kind: DefKind::Struct,
614+
kind: DefKind::StructVariant,
615615
id,
616616
span,
617617
name,
@@ -645,7 +645,7 @@ impl<'l, 'tcx: 'l, 'll, O: DumpOutput + 'll> DumpVisitor<'l, 'tcx, 'll, O> {
645645
let parent = Some(::id_from_node_id(item.id, &self.save_ctxt));
646646

647647
self.dumper.dump_def(item.vis == ast::Visibility::Public, Def {
648-
kind: DefKind::Tuple,
648+
kind: DefKind::TupleVariant,
649649
id,
650650
span,
651651
name,

src/tools/rls

Submodule rls updated from 93b47d1 to e034859

src/tools/rustfmt

0 commit comments

Comments
 (0)