]> git.proxmox.com Git - rustc.git/blobdiff - src/librustc_trans/trans/monomorphize.rs
Imported Upstream version 1.1.0+dfsg1
[rustc.git] / src / librustc_trans / trans / monomorphize.rs
index 1c8d020494fabfa0788d0c053d3ea0a37d38c3bb..03fdd0c45c16ae6aa37d19e01b8673ca26956ed5 100644 (file)
@@ -236,11 +236,9 @@ pub fn monomorphic_fn<'a, 'tcx>(ccx: &CrateContext<'a, 'tcx>,
                     }
                     d
                 }
-                ast::TypeImplItem(_) => {
-                    ccx.sess().bug("can't monomorphize an associated type")
-                }
-                ast::MacImplItem(_) => {
-                    ccx.sess().bug("can't monomorphize an unexpanded macro")
+                _ => {
+                    ccx.sess().bug(&format!("can't monomorphize a {:?}",
+                                           map_node))
                 }
             }
         }