Skip to content

Commit f730d7e

Browse files
committed
Minimize pub usage in source_map.rs.
Most notably, this commit changes the `pub use crate::*;` in that file to `use crate::*;`. This requires a lot of `use` items in other crates to be adjusted, because everything defined within `rustc_span::*` was also available via `rustc_span::source_map::*`, which is bizarre. The commit also removes `SourceMap::span_to_relative_line_string`, which is unused.
1 parent 2f8933e commit f730d7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::num::NonZeroU64;
44
use log::trace;
55

66
use rustc_errors::DiagnosticMessage;
7-
use rustc_span::{source_map::DUMMY_SP, SpanData, Symbol};
7+
use rustc_span::{DUMMY_SP, SpanData, Symbol};
88
use rustc_target::abi::{Align, Size};
99

1010
use crate::borrow_tracker::stacked_borrows::diagnostics::TagHistory;

src/eval.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
267267
let layout_cx = LayoutCx { tcx, param_env };
268268
let mut ecx = InterpCx::new(
269269
tcx,
270-
rustc_span::source_map::DUMMY_SP,
270+
rustc_span::DUMMY_SP,
271271
param_env,
272272
MiriMachine::new(config, layout_cx),
273273
);

0 commit comments

Comments
 (0)