Skip to content

Commit 71bd3db

Browse files
committed
---
yaml --- r: 169699 b: refs/heads/master c: 448ddad h: refs/heads/master i: 169697: eb78ed1 169695: 6610045 v: v3
1 parent 36815f6 commit 71bd3db

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: aec62af7427083ac7f6dcb2fd484876199147fdc
2+
refs/heads/master: 448ddad87768a8ecef4dc8fc1394fdebbc487f85
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 5b3cd3900ceda838f5798c30ab96ceb41f962534
55
refs/heads/try: 5204084bd2e46af7cc6e0147430e44dd0d657bbb

trunk/src/librustc_trans/trans/base.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,8 +281,15 @@ pub fn kind_for_unboxed_closure(ccx: &CrateContext, closure_id: ast::DefId)
281281

282282
pub fn decl_rust_fn<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
283283
fn_ty: Ty<'tcx>, name: &str) -> ValueRef {
284+
debug!("decl_rust_fn(fn_ty={}, name={:?})",
285+
fn_ty.repr(ccx.tcx()),
286+
name);
287+
284288
let fn_ty = monomorphize::normalize_associated_type(ccx.tcx(), &fn_ty);
285289

290+
debug!("decl_rust_fn: fn_ty={} (after normalized associated types)",
291+
fn_ty.repr(ccx.tcx()));
292+
286293
let function_type; // placeholder so that the memory ownership works out ok
287294

288295
let (sig, abi, env) = match fn_ty.sty {
@@ -305,10 +312,12 @@ pub fn decl_rust_fn<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
305312
let sig = ty::erase_late_bound_regions(ccx.tcx(), sig);
306313
let sig = ty::Binder(sig);
307314

315+
debug!("decl_rust_fn: sig={} (after erasing regions)",
316+
sig.repr(ccx.tcx()));
317+
308318
let llfty = type_of_rust_fn(ccx, env, &sig, abi);
309319

310-
debug!("decl_rust_fn(sig={}, type={})",
311-
sig.repr(ccx.tcx()),
320+
debug!("decl_rust_fn: llfty={}",
312321
ccx.tn().type_to_string(llfty));
313322

314323
let llfn = decl_fn(ccx, name, llvm::CCallConv, llfty, sig.0.output /* (1) */);

0 commit comments

Comments
 (0)