aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/lints/unrooted_must_root.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-03-06 02:37:48 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2016-03-06 10:36:49 +0100
commit7c1dd54895032ece871d6ec727fbd643b8214331 (patch)
treef59cff6ef1c934e874f4109d9524b9602e30b3f2 /components/plugins/lints/unrooted_must_root.rs
parent64fb09ca2d5d077b4d3e0815ee3e094f67b7cf4e (diff)
downloadservo-7c1dd54895032ece871d6ec727fbd643b8214331.tar.gz
servo-7c1dd54895032ece871d6ec727fbd643b8214331.zip
Update to Rust 2016-03-05
Diffstat (limited to 'components/plugins/lints/unrooted_must_root.rs')
-rw-r--r--components/plugins/lints/unrooted_must_root.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/plugins/lints/unrooted_must_root.rs b/components/plugins/lints/unrooted_must_root.rs
index 6c8b32698bd..71cb3b246c0 100644
--- a/components/plugins/lints/unrooted_must_root.rs
+++ b/components/plugins/lints/unrooted_must_root.rs
@@ -92,7 +92,7 @@ impl LateLintPass for UnrootedPass {
};
if item.attrs.iter().all(|a| !a.check_name("must_root")) {
for ref field in def.fields() {
- if is_unrooted_ty(cx, cx.tcx.node_id_to_type(field.node.id), false) {
+ if is_unrooted_ty(cx, cx.tcx.node_id_to_type(field.id), false) {
cx.span_lint(UNROOTED_MUST_ROOT, field.span,
"Type must be rooted, use #[must_root] on the struct definition to propagate")
}
@@ -107,9 +107,9 @@ impl LateLintPass for UnrootedPass {
match var.node.data {
hir::VariantData::Tuple(ref vec, _) => {
for ty in vec {
- cx.tcx.ast_ty_to_ty_cache.borrow().get(&ty.node.id).map(|t| {
+ cx.tcx.ast_ty_to_ty_cache.borrow().get(&ty.id).map(|t| {
if is_unrooted_ty(cx, t, false) {
- cx.span_lint(UNROOTED_MUST_ROOT, ty.node.ty.span,
+ cx.span_lint(UNROOTED_MUST_ROOT, ty.ty.span,
"Type must be rooted, use #[must_root] on \
the enum definition to propagate")
}