From 1679960889498d389af1869429b30a7a4360a929 Mon Sep 17 00:00:00 2001 From: Tim Chevalier Date: Tue, 16 Oct 2012 22:13:41 -0700 Subject: [PATCH] Change a use of map::get to map::find --- src/rustc/middle/region.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rustc/middle/region.rs b/src/rustc/middle/region.rs index 5c70cd3e279..95280032ae0 100644 --- a/src/rustc/middle/region.rs +++ b/src/rustc/middle/region.rs @@ -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);