]> git.lizzy.rs Git - rust.git/commitdiff
debuginfo: Fixed issue 7712.
authorMichael Woerister <michaelwoerister@gmail>
Wed, 17 Jul 2013 15:51:33 +0000 (17:51 +0200)
committerMichael Woerister <michaelwoerister@gmail>
Fri, 19 Jul 2013 05:58:28 +0000 (07:58 +0200)
src/librustc/middle/trans/debuginfo.rs

index 9684dbd6bf97a73894b1c1d7e04a7f3fc004ad0c..b4e168356b3b6b4358309625cf0fb4df41fede95 100644 (file)
@@ -289,8 +289,15 @@ pub fn create_function_metadata(fcx: fn_ctxt) -> DISubprogram {
                                            "create_function_metadata: item bound to non-function")
             }
         }
-        ast_map::node_method(@ast::method { decl: ast::fn_decl { output: ref ty, _ },
-                             id: id, ident: ident, _}, _, _) => {
+        ast_map::node_method(
+            @ast::method {
+                decl: ast::fn_decl { output: ref ty, _ },
+                id: id,
+                ident: ident,
+                _
+            },
+            _,
+            _) => {
             (ident, ty, id)
         }
         ast_map::node_expr(ref expr) => {
@@ -309,10 +316,10 @@ pub fn create_function_metadata(fcx: fn_ctxt) -> DISubprogram {
                     decl: ast::fn_decl { output: ref ty, _ },
                     id: id,
                     ident: ident,
-                    _}
-            ),
-            _def_id,
-            _path) => {
+                    _
+                }),
+            _,
+            _) => {
             (ident, ty, id)
         }
         _ => fcx.ccx.sess.bug("create_function_metadata: unexpected sort of node")