Skip to content

Commit 3edbf00

Browse files
committed
servo: Merge #6243 - Upgrade to rustc 1.2.0-dev (474c6e0ae 2015-05-30) (from servo:rustup_20150601); r=nox
cc nox r? Ms2ger kmcallister larsbergstrom Source-Repo: https://github.com/servo/servo Source-Revision: 83a0b7822181b26862f26fd0cd1da02da7ea6210 UltraBlame original commit: 87d72783e44ba474502e5df10fb36c4dca3706b7
1 parent 3abdc55 commit 3edbf00

File tree

8 files changed

+330
-222
lines changed

8 files changed

+330
-222
lines changed

servo/components/plugins/jstraceable.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub fn expand_dom_struct(cx: &mut ExtCtxt, sp: Span, _: &MetaItem, anno: Annotat
3434

3535

3636

37-
pub fn expand_jstraceable(cx: &mut ExtCtxt, span: Span, mitem: &MetaItem, item: Annotatable,
37+
pub fn expand_jstraceable(cx: &mut ExtCtxt, span: Span, mitem: &MetaItem, item: &Annotatable,
3838
push: &mut FnMut(Annotatable)) {
3939
let trait_def = TraitDef {
4040
span: span,
@@ -57,7 +57,7 @@ pub fn expand_jstraceable(cx: &mut ExtCtxt, span: Span, mitem: &MetaItem, item:
5757
],
5858
associated_types: vec![],
5959
};
60-
trait_def.expand(cx, mitem, &item, push)
60+
trait_def.expand(cx, mitem, item, push)
6161
}
6262

6363

servo/components/plugins/lints/unrooted_must_root.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ impl LintPass for UnrootedPass {
9191
fn check_fn(&mut self, cx: &Context, kind: visit::FnKind, decl: &ast::FnDecl,
9292
block: &ast::Block, _span: codemap::Span, id: ast::NodeId) {
9393
match kind {
94-
visit::FkItemFn(i, _, _, _, _) |
94+
visit::FkItemFn(i, _, _, _, _, _) |
9595
visit::FkMethod(i, _, _) if i.as_str() == "new" || i.as_str() == "new_inherited" => {
9696
return;
9797
},
98-
visit::FkItemFn(_, _, style, _, _) => match style {
98+
visit::FkItemFn(_, _, style, _, _, _) => match style {
9999
ast::Unsafety::Unsafe => return,
100100
_ => ()
101101
},

servo/components/plugins/reflector.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ use syntax::ast;
99
use utils::match_ty_unwrap;
1010

1111

12-
pub fn expand_reflector(cx: &mut ExtCtxt, span: Span, _: &MetaItem, annotatable: Annotatable,
12+
pub fn expand_reflector(cx: &mut ExtCtxt, span: Span, _: &MetaItem, annotatable: &Annotatable,
1313
push: &mut FnMut(Annotatable)) {
14-
if let Annotatable::Item(item) = annotatable {
14+
if let &Annotatable::Item(ref item) = annotatable {
1515
if let ast::ItemStruct(ref def, _) = item.node {
1616
let struct_name = item.ident;
1717

servo/components/plugins/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub fn unsafe_context(map: &ast_map::Map, id: ast::NodeId) -> bool {
7676
},
7777
Some(ast_map::NodeItem(itm)) => {
7878
match itm.node {
79-
ast::ItemFn(_, style, _, _, _) => match style {
79+
ast::ItemFn(_, style, _, _, _, _) => match style {
8080
ast::Unsafety::Unsafe => true,
8181
_ => false,
8282
},

0 commit comments

Comments
 (0)