Skip to content

Commit 1679960

Browse files
committed
Change a use of map::get to map::find
1 parent a92c3db commit 1679960

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rustc/middle/region.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,8 +640,8 @@ fn determine_rp_in_ty(ty: @ast::Ty,
640640
// that as a direct dependency.
641641
match ty.node {
642642
ast::ty_path(path, id) => {
643-
match cx.def_map.get(id) {
644-
ast::def_ty(did) | ast::def_class(did) => {
643+
match cx.def_map.find(id) {
644+
Some(ast::def_ty(did)) | Some(ast::def_class(did)) => {
645645
if did.crate == ast::local_crate {
646646
if cx.opt_region_is_relevant(path.rp) {
647647
cx.add_dep(did.node);

0 commit comments

Comments
 (0)