Skip to content

Commit 4bfe0f7

Browse files
committed
rustc: rename some ty_self variables to self_arg
1 parent 9c80cf5 commit 4bfe0f7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/librustc/middle/trans/base.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,12 +1664,12 @@ pub fn new_fn_ctxt(ccx: @CrateContext,
16641664
// the function's fn_ctxt). create_llargs_for_fn_args populates the llargs
16651665
// field of the fn_ctxt with
16661666
pub fn create_llargs_for_fn_args(cx: fn_ctxt,
1667-
ty_self: self_arg,
1667+
self_arg: self_arg,
16681668
args: &[ast::arg])
16691669
-> ~[ValueRef] {
16701670
let _icx = cx.insn_ctxt("create_llargs_for_fn_args");
16711671

1672-
match ty_self {
1672+
match self_arg {
16731673
impl_self(tt) => {
16741674
cx.llself = Some(ValSelfData {
16751675
v: cx.llenv,
@@ -1801,7 +1801,7 @@ pub fn trans_closure(ccx: @CrateContext,
18011801
decl: &ast::fn_decl,
18021802
body: &ast::blk,
18031803
llfndecl: ValueRef,
1804-
ty_self: self_arg,
1804+
self_arg: self_arg,
18051805
param_substs: Option<@param_substs>,
18061806
id: ast::node_id,
18071807
impl_id: Option<ast::def_id>,
@@ -1825,7 +1825,7 @@ pub fn trans_closure(ccx: @CrateContext,
18251825
impl_id,
18261826
param_substs,
18271827
Some(body.span));
1828-
let raw_llargs = create_llargs_for_fn_args(fcx, ty_self, decl.inputs);
1828+
let raw_llargs = create_llargs_for_fn_args(fcx, self_arg, decl.inputs);
18291829

18301830
// Set the fixed stack segment flag if necessary.
18311831
if attr::attrs_contains_name(attributes, "fixed_stack_segment") {
@@ -1882,16 +1882,16 @@ pub fn trans_fn(ccx: @CrateContext,
18821882
decl: &ast::fn_decl,
18831883
body: &ast::blk,
18841884
llfndecl: ValueRef,
1885-
ty_self: self_arg,
1885+
self_arg: self_arg,
18861886
param_substs: Option<@param_substs>,
18871887
id: ast::node_id,
18881888
impl_id: Option<ast::def_id>,
18891889
attrs: &[ast::attribute]) {
18901890
let do_time = ccx.sess.trans_stats();
18911891
let start = if do_time { time::get_time() }
18921892
else { time::Timespec::new(0, 0) };
1893-
debug!("trans_fn(ty_self=%?, param_substs=%s)",
1894-
ty_self,
1893+
debug!("trans_fn(self_arg=%?, param_substs=%s)",
1894+
self_arg,
18951895
param_substs.repr(ccx.tcx));
18961896
let _icx = ccx.insn_ctxt("trans_fn");
18971897
ccx.stats.n_fns += 1;
@@ -1902,7 +1902,7 @@ pub fn trans_fn(ccx: @CrateContext,
19021902
decl,
19031903
body,
19041904
llfndecl,
1905-
ty_self,
1905+
self_arg,
19061906
param_substs,
19071907
id,
19081908
impl_id,

src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1382,7 +1382,7 @@ pub fn fold_sty_to_ty(tcx: ty::ctxt, sty: &sty, foldop: &fn(t) -> t) -> t {
13821382
}
13831383

13841384
pub fn fold_sig(sig: &FnSig, fldop: &fn(t) -> t) -> FnSig {
1385-
let args = sig.inputs.map(|arg| fldop(*arg));
1385+
let args = sig.inputs.map(|arg| fldop(*arg));
13861386

13871387
FnSig {
13881388
bound_lifetime_names: copy sig.bound_lifetime_names,

0 commit comments

Comments
 (0)