mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +00:00
Handle resolving to native modules.
This commit is contained in:
parent
bc5a8393e7
commit
0117cf2fc2
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user