We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4410916 commit b710e08Copy full SHA for b710e08
src/librustc/ty/mod.rs
@@ -2777,20 +2777,6 @@ impl<'tcx> TyCtxt<'tcx> {
2777
});
2778
}
2779
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
-
2794
pub fn provided_trait_methods(self, id: DefId) -> Vec<AssocItem> {
2795
self.associated_items(id)
2796
.filter(|item| item.kind == AssocKind::Method && item.defaultness.has_value())
0 commit comments