Skip to content

Commit b710e08

Browse files
committed
remove TyCtx::expr_span (unused)
1 parent 4410916 commit b710e08

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/librustc/ty/mod.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,20 +2777,6 @@ impl<'tcx> TyCtxt<'tcx> {
27772777
});
27782778
}
27792779

2780-
pub fn expr_span(self, id: NodeId) -> Span {
2781-
match self.hir().find(id) {
2782-
Some(Node::Expr(e)) => {
2783-
e.span
2784-
}
2785-
Some(f) => {
2786-
bug!("node-ID {} is not an expr: {:?}", id, f);
2787-
}
2788-
None => {
2789-
bug!("node-ID {} is not present in the node map", id);
2790-
}
2791-
}
2792-
}
2793-
27942780
pub fn provided_trait_methods(self, id: DefId) -> Vec<AssocItem> {
27952781
self.associated_items(id)
27962782
.filter(|item| item.kind == AssocKind::Method && item.defaultness.has_value())

0 commit comments

Comments
 (0)