Skip to content

Commit f441cc6

Browse files
committed
Move Spanned.
It's defined in `rustc_span::source_map` which doesn't make any sense because it has nothing to do with source maps. This commit moves it to the crate root, a more sensible spot for something this basic.
1 parent 7cbc71e commit f441cc6

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/abi/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use rustc_middle::ty::TypeVisitableExt;
2020
use rustc_middle::ty::layout::FnAbiOf;
2121
use rustc_middle::ty::print::with_no_trimmed_paths;
2222
use rustc_session::Session;
23-
use rustc_span::source_map::Spanned;
23+
use rustc_span::Spanned;
2424
use rustc_target::callconv::{FnAbi, PassMode};
2525
use rustc_target::spec::Arch;
2626
use smallvec::{SmallVec, smallvec};

src/common.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ use rustc_middle::ty::TypeFoldable;
66
use rustc_middle::ty::layout::{
77
self, FnAbiError, FnAbiOfHelpers, FnAbiRequest, LayoutError, LayoutOfHelpers,
88
};
9-
use rustc_span::Symbol;
10-
use rustc_span::source_map::Spanned;
9+
use rustc_span::{Spanned, Symbol};
1110
use rustc_target::callconv::FnAbi;
1211
use rustc_target::spec::{Arch, HasTargetSpec, Target};
1312

src/intrinsics/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ use rustc_middle::ty;
2424
use rustc_middle::ty::GenericArgsRef;
2525
use rustc_middle::ty::layout::ValidityRequirement;
2626
use rustc_middle::ty::print::{with_no_trimmed_paths, with_no_visible_paths};
27-
use rustc_span::source_map::Spanned;
28-
use rustc_span::{Symbol, sym};
27+
use rustc_span::{Spanned, Symbol, sym};
2928
use rustc_target::spec::PanicStrategy;
3029

3130
pub(crate) use self::llvm::codegen_llvm_intrinsic_call;

0 commit comments

Comments
 (0)