Skip to content

Commit 89b5907

Browse files
committed
TAIT: adjust save-analysis
1 parent e31d75c commit 89b5907

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

src/librustc_save_analysis/dump_visitor.rs

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1133,12 +1133,6 @@ impl<'l, 'tcx> DumpVisitor<'l, 'tcx> {
11331133
// trait.
11341134
self.visit_ty(ty)
11351135
}
1136-
ast::ImplItemKind::OpaqueTy(ref bounds) => {
1137-
// FIXME: uses of the assoc type should ideally point to this
1138-
// 'def' and the name here should be a ref to the def in the
1139-
// trait.
1140-
self.process_bounds(&bounds);
1141-
}
11421136
ast::ImplItemKind::Macro(_) => {}
11431137
}
11441138
}
@@ -1384,38 +1378,6 @@ impl<'l, 'tcx> Visitor<'l> for DumpVisitor<'l, 'tcx> {
13841378
self.visit_ty(&ty);
13851379
self.process_generic_params(ty_params, &qualname, item.id);
13861380
}
1387-
OpaqueTy(ref bounds, ref ty_params) => {
1388-
let qualname = format!("::{}",
1389-
self.tcx.def_path_str(self.tcx.hir().local_def_id_from_node_id(item.id)));
1390-
1391-
let value = String::new();
1392-
if !self.span.filter_generated(item.ident.span) {
1393-
let span = self.span_from_span(item.ident.span);
1394-
let id = id_from_node_id(item.id, &self.save_ctxt);
1395-
let hir_id = self.tcx.hir().node_to_hir_id(item.id);
1396-
1397-
self.dumper.dump_def(
1398-
&access_from!(self.save_ctxt, item, hir_id),
1399-
Def {
1400-
kind: DefKind::Type,
1401-
id,
1402-
span,
1403-
name: item.ident.to_string(),
1404-
qualname: qualname.clone(),
1405-
value,
1406-
parent: None,
1407-
children: vec![],
1408-
decl_id: None,
1409-
docs: self.save_ctxt.docs_for_attrs(&item.attrs),
1410-
sig: sig::item_signature(item, &self.save_ctxt),
1411-
attributes: lower_attributes(item.attrs.clone(), &self.save_ctxt),
1412-
},
1413-
);
1414-
}
1415-
1416-
self.process_bounds(bounds);
1417-
self.process_generic_params(ty_params, &qualname, item.id);
1418-
}
14191381
Mac(_) => (),
14201382
_ => visit::walk_item(self, item),
14211383
}

src/librustc_save_analysis/sig.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -447,16 +447,6 @@ impl Sig for ast::Item {
447447

448448
Ok(merge_sigs(sig.text.clone(), vec![sig, ty]))
449449
}
450-
ast::ItemKind::OpaqueTy(ref bounds, ref generics) => {
451-
let text = "type ".to_owned();
452-
let mut sig = name_and_generics(text, offset, generics, self.id, self.ident, scx)?;
453-
454-
sig.text.push_str(" = impl ");
455-
sig.text.push_str(&pprust::bounds_to_string(bounds));
456-
sig.text.push(';');
457-
458-
Ok(sig)
459-
}
460450
ast::ItemKind::Enum(_, ref generics) => {
461451
let text = "enum ".to_owned();
462452
let mut sig = name_and_generics(text, offset, generics, self.id, self.ident, scx)?;

0 commit comments

Comments
 (0)