1
Fork 0

rustc_target: adjust_for_cabi -> adjust_for_foreign_abi.

This commit is contained in:
Eduard-Mihai Burtescu 2021-08-25 11:50:26 +03:00
parent feca7d0a03
commit 4d36faf9ef
2 changed files with 2 additions and 2 deletions

View file

@ -3098,7 +3098,7 @@ where
return; return;
} }
if let Err(msg) = self.adjust_for_cabi(cx, abi) { if let Err(msg) = self.adjust_for_foreign_abi(cx, abi) {
cx.tcx().sess.fatal(&msg); cx.tcx().sess.fatal(&msg);
} }
} }

View file

@ -600,7 +600,7 @@ pub struct FnAbi<'a, Ty> {
} }
impl<'a, Ty> FnAbi<'a, Ty> { impl<'a, Ty> FnAbi<'a, Ty> {
pub fn adjust_for_cabi<C>(&mut self, cx: &C, abi: spec::abi::Abi) -> Result<(), String> pub fn adjust_for_foreign_abi<C>(&mut self, cx: &C, abi: spec::abi::Abi) -> Result<(), String>
where where
Ty: TyAbiInterface<'a, C> + Copy, Ty: TyAbiInterface<'a, C> + Copy,
C: HasDataLayout + HasTargetSpec, C: HasDataLayout + HasTargetSpec,