File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
branches/snap-stage3/src/librustc/middle/trans Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: ee72e46638f2b2ae92e99df2a7ea92690baa0d07
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 10935de0cdb34b9405c71a813cc89eb1cb44fd01
4
+ refs/heads/snap-stage3: 808e039d401bfa4a5f22484086409e3861511940
5
5
refs/heads/try: a2473a89da106f7dd3be86e9d52fe23f43d5bfa5
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change @@ -141,8 +141,10 @@ fn trans<'a>(bcx: &'a Block<'a>, expr: &ast::Expr) -> Callee<'a> {
141
141
let expr_ty = node_id_type ( bcx, ref_expr. id ) ;
142
142
match def {
143
143
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 {
146
148
Some ( ast_map:: NodeStructCtor ( _) ) => true ,
147
149
_ => false
148
150
}
You can’t perform that action at this time.
0 commit comments