diff options
| author | bors <bors@rust-lang.org> | 2020-01-01 08:39:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-01-01 08:39:44 +0000 |
| commit | 9e6fb538f9254884ca9f958fdce413d6c3f2016c (patch) | |
| tree | ed077cbfc27cfa99565965681f03138285b1cb00 /src/librustc_codegen_llvm/debuginfo/utils.rs | |
| parent | 38aa6bdfd705ea0604d7d5dd9fabc5e8f853a4fc (diff) | |
| parent | 70f1d57048d2c73c8c018d0d65ceb0e2ca5d9dae (diff) | |
| download | rust-9e6fb538f9254884ca9f958fdce413d6c3f2016c.tar.gz rust-9e6fb538f9254884ca9f958fdce413d6c3f2016c.zip | |
Auto merge of #67763 - petrochenkov:crateren2, r=Centril
Rename `syntax_pos` to `rustc_span` in source code Follow-up to https://github.com/rust-lang/rust/pull/67707. r? @Centril
Diffstat (limited to 'src/librustc_codegen_llvm/debuginfo/utils.rs')
| -rw-r--r-- | src/librustc_codegen_llvm/debuginfo/utils.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_codegen_llvm/debuginfo/utils.rs b/src/librustc_codegen_llvm/debuginfo/utils.rs index e77dab998d2..53497e396cd 100644 --- a/src/librustc_codegen_llvm/debuginfo/utils.rs +++ b/src/librustc_codegen_llvm/debuginfo/utils.rs @@ -11,7 +11,7 @@ use crate::llvm; use crate::llvm::debuginfo::{DIArray, DIBuilder, DIDescriptor, DIScope}; use rustc_codegen_ssa::traits::*; -use syntax_pos::Span; +use rustc_span::Span; pub fn is_node_local_to_unit(cx: &CodegenCx<'_, '_>, def_id: DefId) -> bool { // The is_local_to_unit flag indicates whether a function is local to the @@ -32,8 +32,8 @@ pub fn create_DIArray(builder: &DIBuilder<'ll>, arr: &[Option<&'ll DIDescriptor> }; } -/// Returns syntax_pos::Loc corresponding to the beginning of the span -pub fn span_start(cx: &CodegenCx<'_, '_>, span: Span) -> syntax_pos::Loc { +/// Returns rustc_span::Loc corresponding to the beginning of the span +pub fn span_start(cx: &CodegenCx<'_, '_>, span: Span) -> rustc_span::Loc { cx.sess().source_map().lookup_char_pos(span.lo()) } |
