Skip to content

Commit 57d0410

Browse files
committed
Update rls-data for librustc-save-analysis
0.10 -> 0.11 This will allow for more fine-grained save analysis for enum variants (tuple and struct)
1 parent d2f71bf commit 57d0410

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

src/Cargo.lock

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/librustc_save_analysis/Cargo.toml

Lines changed: 1 addition & 1 deletion
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

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

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

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

0 commit comments

Comments
 (0)