Change a use of map::get to map::find

This commit is contained in:
Tim Chevalier 2012-10-16 22:13:41 -07:00
parent a92c3db0b3
commit 1679960889

View File

@ -640,8 +640,8 @@ fn determine_rp_in_ty(ty: @ast::Ty,
// that as a direct dependency.
match ty.node {
ast::ty_path(path, id) => {
match cx.def_map.get(id) {
ast::def_ty(did) | ast::def_class(did) => {
match cx.def_map.find(id) {
Some(ast::def_ty(did)) | Some(ast::def_class(did)) => {
if did.crate == ast::local_crate {
if cx.opt_region_is_relevant(path.rp) {
cx.add_dep(did.node);