Skip to content

Commit

Permalink
remove get_rustc_span
Browse files Browse the repository at this point in the history
  • Loading branch information
ouz-a committed Sep 13, 2023
1 parent 8f8915d commit 39116f1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions compiler/rustc_smir/src/rustc_internal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ pub fn impl_def(did: DefId) -> stable_mir::ty::ImplDef {
with_tables(|t| t.impl_def(did))
}

pub fn get_rustc_span(span: stable_mir::ty::Span) -> rustc_span::Span {
with_tables(|t| t.spans[span.0])
}

impl<'tcx> Index<stable_mir::DefId> for Tables<'tcx> {
type Output = DefId;

Expand Down

0 comments on commit 39116f1

Please sign in to comment.