]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_trans/trans/debuginfo/mod.rs
Fix the fallout
[rust.git] / src / librustc_trans / trans / debuginfo / mod.rs
index 9e53d72cfb8b9d2702e3db527cd6c6fb55f4b624..ee1d834fc8a89efb638a271e2475184e65e21388 100644 (file)
@@ -145,7 +145,7 @@ fn should_be_ignored_message() -> &'static str {
     }
 }
 
-struct FunctionDebugContextData {
+pub struct FunctionDebugContextData {
     scope_map: RefCell<NodeMap<DIScope>>,
     fn_metadata: DISubprogram,
     argument_counter: Cell<usize>,
@@ -253,7 +253,7 @@ pub fn create_function_debug_context<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>,
         }
         hir_map::NodeImplItem(impl_item) => {
             match impl_item.node {
-                hir::MethodImplItem(ref sig, ref body) => {
+                hir::ImplItemKind::Method(ref sig, ref body) => {
                     if contains_nodebug_attribute(&impl_item.attrs) {
                         return FunctionDebugContext::FunctionWithoutDebugInfo;
                     }