diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index 584586f66ce..05daf5eeb1d 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -29,6 +29,7 @@ tag def { def_obj(def_id); def_obj_field(def_id); def_mod(def_id); + def_native_mod(def_id); def_const(def_id); def_arg(def_id); def_local(def_id); diff --git a/src/comp/middle/resolve.rs b/src/comp/middle/resolve.rs index 5b6db631665..7102e442fac 100644 --- a/src/comp/middle/resolve.rs +++ b/src/comp/middle/resolve.rs @@ -71,6 +71,13 @@ fn unwrap_def(def_wrap d) -> def { } } } + case (def_wrap_native_mod(?m)) { + alt (m.node) { + case (ast.item_native_mod(_, _, ?id)) { + ret ast.def_native_mod(id); + } + } + } case (def_wrap_other(?d)) { ret d; }