Skip to content

Commit 5c953ee

Browse files
compiler: Replace rustc_target with abi in symbol_mangling
1 parent 7639773 commit 5c953ee

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Cargo.lock

-1
Original file line numberDiff line numberDiff line change
@@ -4437,7 +4437,6 @@ dependencies = [
44374437
"rustc_middle",
44384438
"rustc_session",
44394439
"rustc_span",
4440-
"rustc_target",
44414440
"tracing",
44424441
]
44434442

compiler/rustc_symbol_mangling/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@ rustc_hir = { path = "../rustc_hir" }
1515
rustc_middle = { path = "../rustc_middle" }
1616
rustc_session = { path = "../rustc_session" }
1717
rustc_span = { path = "../rustc_span" }
18-
rustc_target = { path = "../rustc_target" }
1918
tracing = "0.1"
2019
# tidy-alphabetical-end

compiler/rustc_symbol_mangling/src/v0.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use std::fmt::Write;
22
use std::iter;
33
use std::ops::Range;
44

5-
use rustc_abi::Integer;
5+
use rustc_abi::{ExternAbi, Integer};
66
use rustc_data_structures::base_n::ToBaseN;
77
use rustc_data_structures::fx::FxHashMap;
88
use rustc_data_structures::intern::Interned;
@@ -18,7 +18,6 @@ use rustc_middle::ty::{
1818
TyCtxt, TypeVisitable, TypeVisitableExt, UintTy,
1919
};
2020
use rustc_span::symbol::kw;
21-
use rustc_target::spec::abi::Abi;
2221

2322
pub(super) fn mangle<'tcx>(
2423
tcx: TyCtxt<'tcx>,
@@ -444,8 +443,8 @@ impl<'tcx> Printer<'tcx> for SymbolMangler<'tcx> {
444443
cx.push("U");
445444
}
446445
match sig.abi {
447-
Abi::Rust => {}
448-
Abi::C { unwind: false } => cx.push("KC"),
446+
ExternAbi::Rust => {}
447+
ExternAbi::C { unwind: false } => cx.push("KC"),
449448
abi => {
450449
cx.push("K");
451450
let name = abi.name();

0 commit comments

Comments
 (0)