Update to new rust commit. Fix uses of bare function types in DOM bindings code.

This commit is contained in:
Brian J. Burg 2012-11-07 14:35:21 -08:00
parent 65781484d8
commit b3d502b29a
4 changed files with 5 additions and 5 deletions

View file

@ -8,7 +8,7 @@ against a released version of Rust will not work, nor will the Rust
'master' branch. The commit below will *probably* work. If it does not
then the topic in #servo might know better.
* Last known-good Rust commit: 94f05c1
* Last known-good Rust commit: 13c01dd
[rust]: http://www.rust-lang.org

@ -1 +1 @@
Subproject commit 9b8febc24a910dd3b6e905f85ebf9808ff8ec905
Subproject commit 51e8805aedd9ba7d4b3c7f794741d4a0a9b225e7

@ -1 +1 @@
Subproject commit cdedc9a50d0c59de945867c72f15e9694f7a73e9
Subproject commit 95f701540d9b7171d46d041095bbe583710b4e2d

View file

@ -95,7 +95,7 @@ extern fn has_instance(_cx: *JSContext, obj: **JSObject, v: *JSVal, bp: *mut JSB
return 1;
}
pub fn prototype_jsclass(name: ~str) -> fn(compartment: &bare_compartment) -> JSClass {
pub fn prototype_jsclass(name: ~str) -> @fn(compartment: &bare_compartment) -> JSClass {
|compartment: &bare_compartment, move name| {
{name: compartment.add_name(copy name),
flags: 0,
@ -124,7 +124,7 @@ pub fn prototype_jsclass(name: ~str) -> fn(compartment: &bare_compartment) -> JS
}
pub fn instance_jsclass(name: ~str, finalize: *u8)
-> fn(compartment: &bare_compartment) -> JSClass {
-> @fn(compartment: &bare_compartment) -> JSClass {
|compartment: &bare_compartment, move name| {
{name: compartment.add_name(copy name),
flags: JSCLASS_HAS_RESERVED_SLOTS(1),