Skip to content

Commit 4d36faf

Browse files
committed
rustc_target: adjust_for_cabi -> adjust_for_foreign_abi.
1 parent feca7d0 commit 4d36faf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_middle/src/ty/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3098,7 +3098,7 @@ where
30983098
return;
30993099
}
31003100

3101-
if let Err(msg) = self.adjust_for_cabi(cx, abi) {
3101+
if let Err(msg) = self.adjust_for_foreign_abi(cx, abi) {
31023102
cx.tcx().sess.fatal(&msg);
31033103
}
31043104
}

compiler/rustc_target/src/abi/call/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ pub struct FnAbi<'a, Ty> {
600600
}
601601

602602
impl<'a, Ty> FnAbi<'a, Ty> {
603-
pub fn adjust_for_cabi<C>(&mut self, cx: &C, abi: spec::abi::Abi) -> Result<(), String>
603+
pub fn adjust_for_foreign_abi<C>(&mut self, cx: &C, abi: spec::abi::Abi) -> Result<(), String>
604604
where
605605
Ty: TyAbiInterface<'a, C> + Copy,
606606
C: HasDataLayout + HasTargetSpec,

0 commit comments

Comments
 (0)