aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/lints/inheritance_integrity.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-11-07 22:40:18 +0530
committerJosh Matthews <josh@joshmatthews.net>2015-11-27 00:15:29 -0500
commitdc0e467945e7fb8eaf93f9e40e7ebcb2d5f52b0c (patch)
tree5a4f80662d4c7b5b18adc49a325015e971380225 /components/plugins/lints/inheritance_integrity.rs
parentbc618b0d535e0e67a7ea845c026678113f000d64 (diff)
downloadservo-dc0e467945e7fb8eaf93f9e40e7ebcb2d5f52b0c.tar.gz
servo-dc0e467945e7fb8eaf93f9e40e7ebcb2d5f52b0c.zip
Upgrade to rustc 1.6.0-nightly (d5fde83ae 2015-11-12)
… and libc 0.2 and many other dependencies
Diffstat (limited to 'components/plugins/lints/inheritance_integrity.rs')
-rw-r--r--components/plugins/lints/inheritance_integrity.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/plugins/lints/inheritance_integrity.rs b/components/plugins/lints/inheritance_integrity.rs
index 4f5770948aa..8ced4fb4c69 100644
--- a/components/plugins/lints/inheritance_integrity.rs
+++ b/components/plugins/lints/inheritance_integrity.rs
@@ -24,13 +24,13 @@ impl LintPass for InheritancePass {
}
impl LateLintPass for InheritancePass {
- fn check_struct_def(&mut self, cx: &LateContext, def: &hir::StructDef, _n: ast::Name,
+ fn check_struct_def(&mut self, cx: &LateContext, def: &hir::VariantData, _n: ast::Name,
_gen: &hir::Generics, id: ast::NodeId) {
// Lints are run post expansion, so it's fine to use
// #[_dom_struct_marker] here without also checking for #[dom_struct]
if cx.tcx.has_attr(cx.tcx.map.local_def_id(id), "_dom_struct_marker") {
// Find the reflector, if any
- let reflector_span = def.fields.iter().enumerate()
+ let reflector_span = def.fields().iter().enumerate()
.find(|&(ctr, f)| {
if match_lang_ty(cx, &*f.node.ty, "reflector") {
if ctr > 0 {
@@ -44,7 +44,7 @@ impl LateLintPass for InheritancePass {
})
.map(|(_, f)| f.span);
// Find all #[dom_struct] fields
- let dom_spans: Vec<_> = def.fields.iter().enumerate().filter_map(|(ctr, f)| {
+ let dom_spans: Vec<_> = def.fields().iter().enumerate().filter_map(|(ctr, f)| {
if let hir::TyPath(..) = f.node.ty.node {
if let Some(&def::PathResolution { base_def: def::DefTy(def_id, _), .. }) =
cx.tcx.def_map.borrow().get(&f.node.ty.id) {