Skip to content

Commit d8c27c3

Browse files
debuginfo: Fixed issue 7712.
1 parent 72cf2ee commit d8c27c3

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

src/librustc/middle/trans/debuginfo.rs

+13-6
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,15 @@ pub fn create_function_metadata(fcx: fn_ctxt) -> DISubprogram {
289289
"create_function_metadata: item bound to non-function")
290290
}
291291
}
292-
ast_map::node_method(@ast::method { decl: ast::fn_decl { output: ref ty, _ },
293-
id: id, ident: ident, _}, _, _) => {
292+
ast_map::node_method(
293+
@ast::method {
294+
decl: ast::fn_decl { output: ref ty, _ },
295+
id: id,
296+
ident: ident,
297+
_
298+
},
299+
_,
300+
_) => {
294301
(ident, ty, id)
295302
}
296303
ast_map::node_expr(ref expr) => {
@@ -309,10 +316,10 @@ pub fn create_function_metadata(fcx: fn_ctxt) -> DISubprogram {
309316
decl: ast::fn_decl { output: ref ty, _ },
310317
id: id,
311318
ident: ident,
312-
_}
313-
),
314-
_def_id,
315-
_path) => {
319+
_
320+
}),
321+
_,
322+
_) => {
316323
(ident, ty, id)
317324
}
318325
_ => fcx.ccx.sess.bug("create_function_metadata: unexpected sort of node")

0 commit comments

Comments
 (0)