Skip to content

Commit 89c8f3a

Browse files
committed
rustc: rename {Fn,Arg}TypeExt to {Fn,Arg}AbiExt.
1 parent 6567154 commit 89c8f3a

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/librustc/ty/layout.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2487,7 +2487,7 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for LayoutError<'tcx> {
24872487
}
24882488
}
24892489

2490-
pub trait FnTypeExt<'tcx, C>
2490+
pub trait FnAbiExt<'tcx, C>
24912491
where
24922492
C: LayoutOf<Ty = Ty<'tcx>, TyLayout = TyLayout<'tcx>>
24932493
+ HasDataLayout
@@ -2507,7 +2507,7 @@ where
25072507
fn adjust_for_abi(&mut self, cx: &C, abi: SpecAbi);
25082508
}
25092509

2510-
impl<'tcx, C> FnTypeExt<'tcx, C> for call::FnAbi<'tcx, Ty<'tcx>>
2510+
impl<'tcx, C> FnAbiExt<'tcx, C> for call::FnAbi<'tcx, Ty<'tcx>>
25112511
where
25122512
C: LayoutOf<Ty = Ty<'tcx>, TyLayout = TyLayout<'tcx>>
25132513
+ HasDataLayout
@@ -2528,7 +2528,7 @@ where
25282528
}
25292529

25302530
fn new_vtable(cx: &C, sig: ty::FnSig<'tcx>, extra_args: &[Ty<'tcx>]) -> Self {
2531-
FnTypeExt::new_internal(cx, sig, extra_args, |ty, arg_idx| {
2531+
FnAbiExt::new_internal(cx, sig, extra_args, |ty, arg_idx| {
25322532
let mut layout = cx.layout_of(ty);
25332533
// Don't pass the vtable, it's not an argument of the virtual fn.
25342534
// Instead, pass just the data pointer, but give it the type `*const/mut dyn Trait`

src/librustc_codegen_llvm/abi.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ impl LlvmType for CastTarget {
163163
}
164164
}
165165

166-
pub trait ArgTypeExt<'ll, 'tcx> {
166+
pub trait ArgAbiExt<'ll, 'tcx> {
167167
fn memory_ty(&self, cx: &CodegenCx<'ll, 'tcx>) -> &'ll Type;
168168
fn store(
169169
&self,
@@ -179,7 +179,7 @@ pub trait ArgTypeExt<'ll, 'tcx> {
179179
);
180180
}
181181

182-
impl ArgTypeExt<'ll, 'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
182+
impl ArgAbiExt<'ll, 'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
183183
/// Gets the LLVM type for a place of the original Rust type of
184184
/// this argument/return, i.e., the result of `type_of::type_of`.
185185
fn memory_ty(&self, cx: &CodegenCx<'ll, 'tcx>) -> &'ll Type {

src/librustc_codegen_llvm/declare.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use crate::context::CodegenCx;
1919
use crate::type_::Type;
2020
use crate::value::Value;
2121
use rustc::ty::{self, PolyFnSig};
22-
use rustc::ty::layout::{FnTypeExt, LayoutOf};
22+
use rustc::ty::layout::{FnAbiExt, LayoutOf};
2323
use rustc::session::config::Sanitizer;
2424
use rustc_data_structures::small_c_str::SmallCStr;
2525
use rustc_codegen_ssa::traits::*;

src/librustc_codegen_llvm/type_of.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::abi::{FnAbi};
22
use crate::common::*;
33
use crate::type_::Type;
44
use rustc::ty::{self, Ty, TypeFoldable};
5-
use rustc::ty::layout::{self, Align, LayoutOf, FnTypeExt, PointeeInfo, Size, TyLayout};
5+
use rustc::ty::layout::{self, Align, LayoutOf, FnAbiExt, PointeeInfo, Size, TyLayout};
66
use rustc_target::abi::{FloatTy, TyLayoutMethods};
77
use rustc::ty::print::obsolete::DefPathBasedNames;
88
use rustc_codegen_ssa::traits::*;

src/librustc_codegen_ssa/mir/block.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use rustc_index::vec::Idx;
22
use rustc::middle::lang_items;
33
use rustc::ty::{self, Ty, TypeFoldable, Instance};
4-
use rustc::ty::layout::{self, LayoutOf, HasTyCtxt, FnTypeExt};
4+
use rustc::ty::layout::{self, LayoutOf, HasTyCtxt, FnAbiExt};
55
use rustc::mir::{self, PlaceBase, Static, StaticKind};
66
use rustc::mir::interpret::PanicInfo;
77
use rustc_target::abi::call::{ArgAbi, FnAbi, PassMode};

src/librustc_codegen_ssa/mir/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use rustc::ty::{self, Ty, TypeFoldable, Instance};
2-
use rustc::ty::layout::{TyLayout, HasTyCtxt, FnTypeExt};
2+
use rustc::ty::layout::{TyLayout, HasTyCtxt, FnAbiExt};
33
use rustc::mir::{self, Body};
44
use rustc_target::abi::call::{FnAbi, PassMode};
55
use crate::base;

0 commit comments

Comments
 (0)