summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_target/src/abi/call/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_target/src/abi/call/mod.rs')
-rw-r--r--compiler/rustc_target/src/abi/call/mod.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/rustc_target/src/abi/call/mod.rs b/compiler/rustc_target/src/abi/call/mod.rs
index 1ae11f567..c4abf6f4b 100644
--- a/compiler/rustc_target/src/abi/call/mod.rs
+++ b/compiler/rustc_target/src/abi/call/mod.rs
@@ -2,7 +2,6 @@ use crate::abi::{self, Abi, Align, FieldsShape, Size};
use crate::abi::{HasDataLayout, TyAbiInterface, TyAndLayout};
use crate::spec::{self, HasTargetSpec};
use rustc_span::Symbol;
-use std::fmt;
use std::str::FromStr;
mod aarch64;
@@ -633,16 +632,6 @@ pub enum AdjustForForeignAbiError {
Unsupported { arch: Symbol, abi: spec::abi::Abi },
}
-impl fmt::Display for AdjustForForeignAbiError {
- fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- match self {
- Self::Unsupported { arch, abi } => {
- write!(f, "target architecture {arch:?} does not support `extern {abi}` ABI")
- }
- }
- }
-}
-
impl<'a, Ty> FnAbi<'a, Ty> {
pub fn adjust_for_foreign_abi<C>(
&mut self,