aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/lints.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-09-25 16:01:21 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-09-29 17:41:45 +0100
commitb3245fa407b8bbb9d893406bb810e122d3f5074a (patch)
tree7d9b25a99d67b54d9ac52faf6b57e36c2e0788a2 /components/plugins/lints.rs
parenta58324f25b6f87d005026d8f9405c9f0d89a1f74 (diff)
downloadservo-b3245fa407b8bbb9d893406bb810e122d3f5074a.tar.gz
servo-b3245fa407b8bbb9d893406bb810e122d3f5074a.zip
Upgrade to rustc d2b30f7d3 2014-09-23
Diffstat (limited to 'components/plugins/lints.rs')
-rw-r--r--components/plugins/lints.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/plugins/lints.rs b/components/plugins/lints.rs
index 3d77b90a92f..605240d74e9 100644
--- a/components/plugins/lints.rs
+++ b/components/plugins/lints.rs
@@ -54,7 +54,7 @@ fn lint_unrooted_ty(cx: &Context, ty: &ast::Ty, warning: &str) {
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) {
- def::DefTy(def_id) => {
+ def::DefTy(def_id, _) => {
if ty::has_attr(cx.tcx, def_id, "must_root") {
cx.span_lint(UNROOTED_MUST_ROOT, ty.span, warning);
}