remove TyCtx::expr_span (unused)

This commit is contained in:
ljedrz 2019-06-19 15:28:27 +02:00
parent 44109169a6
commit b710e08868

View File

@ -2777,20 +2777,6 @@ impl<'tcx> TyCtxt<'tcx> {
});
}
pub fn expr_span(self, id: NodeId) -> Span {
match self.hir().find(id) {
Some(Node::Expr(e)) => {
e.span
}
Some(f) => {
bug!("node-ID {} is not an expr: {:?}", id, f);
}
None => {
bug!("node-ID {} is not present in the node map", id);
}
}
}
pub fn provided_trait_methods(self, id: DefId) -> Vec<AssocItem> {
self.associated_items(id)
.filter(|item| item.kind == AssocKind::Method && item.defaultness.has_value())