Skip to content

Commit 1e0f3cb

Browse files
committed
make a name less ambiguous
1 parent a73e255 commit 1e0f3cb

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

compiler/rustc_const_eval/src/const_eval/machine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use rustc_middle::mir::AssertMessage;
1414
use rustc_session::Limit;
1515
use rustc_span::symbol::{sym, Symbol};
1616
use rustc_target::abi::{Align, Size};
17-
use rustc_target::spec::abi::Abi;
17+
use rustc_target::spec::abi::Abi as CallAbi;
1818

1919
use crate::interpret::{
2020
self, compile_time_machine, AllocId, ConstAllocation, Frame, ImmTy, InterpCx, InterpResult,
@@ -263,7 +263,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for CompileTimeInterpreter<'mir,
263263
fn find_mir_or_eval_fn(
264264
ecx: &mut InterpCx<'mir, 'tcx, Self>,
265265
instance: ty::Instance<'tcx>,
266-
_abi: Abi,
266+
_abi: CallAbi,
267267
args: &[OpTy<'tcx>],
268268
_dest: &PlaceTy<'tcx>,
269269
_ret: Option<mir::BasicBlock>,

compiler/rustc_const_eval/src/interpret/machine.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use rustc_middle::mir;
1010
use rustc_middle::ty::{self, Ty, TyCtxt};
1111
use rustc_span::def_id::DefId;
1212
use rustc_target::abi::Size;
13-
use rustc_target::spec::abi::Abi as FnAbi;
13+
use rustc_target::spec::abi::Abi as CallAbi;
1414

1515
use super::{
1616
AllocId, AllocRange, Allocation, ConstAllocation, Frame, ImmTy, InterpCx, InterpResult,
@@ -139,7 +139,7 @@ pub trait Machine<'mir, 'tcx>: Sized {
139139
/// Whether to enforce integers and floats not having provenance.
140140
fn enforce_number_no_provenance(ecx: &InterpCx<'mir, 'tcx, Self>) -> bool;
141141

142-
/// Whether function calls should be [ABI](FnAbi)-checked.
142+
/// Whether function calls should be [ABI](CallAbi)-checked.
143143
fn enforce_abi(_ecx: &InterpCx<'mir, 'tcx, Self>) -> bool {
144144
true
145145
}
@@ -170,7 +170,7 @@ pub trait Machine<'mir, 'tcx>: Sized {
170170
fn find_mir_or_eval_fn(
171171
ecx: &mut InterpCx<'mir, 'tcx, Self>,
172172
instance: ty::Instance<'tcx>,
173-
abi: FnAbi,
173+
abi: CallAbi,
174174
args: &[OpTy<'tcx, Self::PointerTag>],
175175
destination: &PlaceTy<'tcx, Self::PointerTag>,
176176
target: Option<mir::BasicBlock>,
@@ -182,7 +182,7 @@ pub trait Machine<'mir, 'tcx>: Sized {
182182
fn call_extra_fn(
183183
ecx: &mut InterpCx<'mir, 'tcx, Self>,
184184
fn_val: Self::ExtraFnVal,
185-
abi: FnAbi,
185+
abi: CallAbi,
186186
args: &[OpTy<'tcx, Self::PointerTag>],
187187
destination: &PlaceTy<'tcx, Self::PointerTag>,
188188
target: Option<mir::BasicBlock>,
@@ -480,7 +480,7 @@ pub macro compile_time_machine(<$mir: lifetime, $tcx: lifetime>) {
480480
fn call_extra_fn(
481481
_ecx: &mut InterpCx<$mir, $tcx, Self>,
482482
fn_val: !,
483-
_abi: FnAbi,
483+
_abi: CallAbi,
484484
_args: &[OpTy<$tcx>],
485485
_destination: &PlaceTy<$tcx, Self::PointerTag>,
486486
_target: Option<mir::BasicBlock>,

compiler/rustc_mir_transform/src/const_prop.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use rustc_middle::ty::{
2323
};
2424
use rustc_span::{def_id::DefId, Span};
2525
use rustc_target::abi::{self, HasDataLayout, Size, TargetDataLayout};
26-
use rustc_target::spec::abi::Abi as FnAbi;
26+
use rustc_target::spec::abi::Abi as CallAbi;
2727
use rustc_trait_selection::traits;
2828

2929
use crate::MirPass;
@@ -199,7 +199,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx>
199199
fn find_mir_or_eval_fn(
200200
_ecx: &mut InterpCx<'mir, 'tcx, Self>,
201201
_instance: ty::Instance<'tcx>,
202-
_abi: FnAbi,
202+
_abi: CallAbi,
203203
_args: &[OpTy<'tcx>],
204204
_destination: &PlaceTy<'tcx>,
205205
_target: Option<BasicBlock>,

compiler/rustc_mir_transform/src/const_prop_lint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use rustc_middle::ty::{
2424
use rustc_session::lint;
2525
use rustc_span::{def_id::DefId, Span};
2626
use rustc_target::abi::{HasDataLayout, Size, TargetDataLayout};
27-
use rustc_target::spec::abi::Abi;
27+
use rustc_target::spec::abi::Abi as CallAbi;
2828
use rustc_trait_selection::traits;
2929

3030
use crate::MirLint;
@@ -191,7 +191,7 @@ impl<'mir, 'tcx> interpret::Machine<'mir, 'tcx> for ConstPropMachine<'mir, 'tcx>
191191
fn find_mir_or_eval_fn(
192192
_ecx: &mut InterpCx<'mir, 'tcx, Self>,
193193
_instance: ty::Instance<'tcx>,
194-
_abi: Abi,
194+
_abi: CallAbi,
195195
_args: &[OpTy<'tcx>],
196196
_destination: &PlaceTy<'tcx>,
197197
_target: Option<BasicBlock>,

0 commit comments

Comments
 (0)