Skip to content

Commit 47c8ae1

Browse files
committed
---
yaml --- r: 130718 b: refs/heads/master c: 808e039 h: refs/heads/master v: v3
1 parent 42c82f3 commit 47c8ae1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-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: 10935de0cdb34b9405c71a813cc89eb1cb44fd01
2+
refs/heads/master: 808e039d401bfa4a5f22484086409e3861511940
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6faa4f33a42de32579e02a8d030db920d360e2b5
55
refs/heads/try: a2473a89da106f7dd3be86e9d52fe23f43d5bfa5

trunk/src/librustc/middle/trans/callee.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,10 @@ fn trans<'a>(bcx: &'a Block<'a>, expr: &ast::Expr) -> Callee<'a> {
141141
let expr_ty = node_id_type(bcx, ref_expr.id);
142142
match def {
143143
def::DefFn(did, _) if {
144-
let def_id = inline::maybe_instantiate_inline(bcx.ccx(), did);
145-
match bcx.tcx().map.find(def_id.node) {
144+
let maybe_def_id = inline::get_local_instance(bcx.ccx(), did);
145+
let maybe_ast_node = maybe_def_id.and_then(|def_id| bcx.tcx().map
146+
.find(def_id.node));
147+
match maybe_ast_node {
146148
Some(ast_map::NodeStructCtor(_)) => true,
147149
_ => false
148150
}

0 commit comments

Comments
 (0)