diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2014-12-18 11:17:09 +0000 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2014-12-18 11:17:09 +0000 |
commit | e689f9c1606ec89b8efc5e93a48786f7f942d693 (patch) | |
tree | d0b4b2754866eee41fbf87232d79fae26e803690 /components/plugins/lints.rs | |
parent | 084a63df45ff1d673f5201a072f49cb285f6dd7b (diff) | |
download | servo-e689f9c1606ec89b8efc5e93a48786f7f942d693.tar.gz servo-e689f9c1606ec89b8efc5e93a48786f7f942d693.zip |
Remove usage of deprecated HashMap::get_copy
Diffstat (limited to 'components/plugins/lints.rs')
-rw-r--r-- | components/plugins/lints.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/plugins/lints.rs b/components/plugins/lints.rs index c48eeed9c80..d5891cc9c5a 100644 --- a/components/plugins/lints.rs +++ b/components/plugins/lints.rs @@ -78,7 +78,7 @@ fn lint_unrooted_ty(cx: &Context, ty: &ast::Ty, warning: &str) { ast::TyVec(ref t) | ast::TyFixedLengthVec(ref t, _) | ast::TyPtr(ast::MutTy { ty: ref t, ..}) | ast::TyRptr(_, ast::MutTy { ty: ref t, ..}) => lint_unrooted_ty(cx, &**t, warning), ast::TyPath(_, _, id) => { - match cx.tcx.def_map.borrow().get_copy(&id) { + match cx.tcx.def_map.borrow()[id].clone() { def::DefTy(def_id, _) => { if ty::has_attr(cx.tcx, def_id, "must_root") { cx.span_lint(UNROOTED_MUST_ROOT, ty.span, warning); |