mirror of
https://github.com/servo/servo.git
synced 2025-06-09 00:53:26 +00:00
Upgrade to rustc 1.4.0-dev (cb9323ec0 2015-09-01)
This commit is contained in:
parent
ba2cb77c26
commit
40b4348824
28 changed files with 349 additions and 338 deletions
|
@ -4,7 +4,8 @@
|
|||
|
||||
use rustc::lint::{Context, LintPass, LintArray, Level};
|
||||
use rustc::middle::def;
|
||||
use syntax::{ast, ast_util};
|
||||
use rustc::middle::def_id::DefId;
|
||||
use syntax::ast;
|
||||
|
||||
use utils::match_lang_ty;
|
||||
|
||||
|
@ -26,7 +27,7 @@ impl LintPass for InheritancePass {
|
|||
_gen: &ast::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(ast_util::local_def(id), "_dom_struct_marker") {
|
||||
if cx.tcx.has_attr(DefId::local(id), "_dom_struct_marker") {
|
||||
// Find the reflector, if any
|
||||
let reflector_span = def.fields.iter().enumerate()
|
||||
.find(|&(ctr, f)| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue