mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Upgrade to SM 39
This commit is contained in:
parent
a256f39796
commit
675267b782
205 changed files with 6546 additions and 5340 deletions
|
@ -34,8 +34,7 @@ pub struct UnrootedPass;
|
|||
// TODO (#3874, sort of): unwrap other types like Vec/Option/HashMap/etc
|
||||
fn lint_unrooted_ty(cx: &Context, ty: &ast::Ty, warning: &str) {
|
||||
match ty.node {
|
||||
ast::TyVec(ref t) | ast::TyFixedLengthVec(ref t, _) |
|
||||
ast::TyPtr(ast::MutTy { ty: ref t, ..}) | ast::TyRptr(_, ast::MutTy { ty: ref t, ..}) =>
|
||||
ast::TyVec(ref t) | ast::TyFixedLengthVec(ref t, _) =>
|
||||
lint_unrooted_ty(cx, &**t, warning),
|
||||
ast::TyPath(..) => {
|
||||
match cx.tcx.def_map.borrow()[&ty.id] {
|
||||
|
@ -47,7 +46,7 @@ fn lint_unrooted_ty(cx: &Context, ty: &ast::Ty, warning: &str) {
|
|||
_ => (),
|
||||
}
|
||||
}
|
||||
_ => (),
|
||||
_ => (),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -25,6 +25,9 @@ pub fn expand_reflector(cx: &mut ExtCtxt, span: Span, _: &MetaItem, annotatable:
|
|||
fn reflector<'a>(&'a self) -> &'a ::dom::bindings::utils::Reflector {
|
||||
&self.$field_name
|
||||
}
|
||||
fn init_reflector(&mut self, obj: *mut ::js::jsapi::JSObject) {
|
||||
self.$field_name.set_jsobject(obj);
|
||||
}
|
||||
}
|
||||
);
|
||||
impl_item.map(|it| push(Annotatable::Item(it)))
|
||||
|
@ -37,6 +40,9 @@ pub fn expand_reflector(cx: &mut ExtCtxt, span: Span, _: &MetaItem, annotatable:
|
|||
fn reflector<'a>(&'a self) -> &'a ::dom::bindings::utils::Reflector {
|
||||
self.$field_name.reflector()
|
||||
}
|
||||
fn init_reflector(&mut self, obj: *mut ::js::jsapi::JSObject) {
|
||||
self.$field_name.init_reflector(obj);
|
||||
}
|
||||
}
|
||||
);
|
||||
impl_item.map(|it| push(Annotatable::Item(it)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue