mirror of
https://github.com/servo/servo.git
synced 2025-07-29 10:10:34 +01:00
Upgrade to rustc 1.3.0-dev (87055a68c 2015-07-30)
This commit is contained in:
parent
a3c0366bd6
commit
930921b0c3
7 changed files with 170 additions and 77 deletions
|
@ -121,9 +121,9 @@ impl LintPass for UnrootedPass {
|
|||
block: &ast::Block, _span: codemap::Span, id: ast::NodeId) {
|
||||
match kind {
|
||||
visit::FkItemFn(i, _, _, _, _, _) |
|
||||
visit::FkMethod(i, _, _) if i.as_str() == "new"
|
||||
|| i.as_str() == "new_inherited"
|
||||
|| i.as_str() == "new_initialized" => {
|
||||
visit::FkMethod(i, _, _) if i.name.as_str() == "new"
|
||||
|| i.name.as_str() == "new_inherited"
|
||||
|| i.name.as_str() == "new_initialized" => {
|
||||
self.in_new_function = true;
|
||||
return;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue