Rename host_binding to final

This commit is contained in:
Alex Crichton
2018-11-09 07:59:48 -08:00
parent 2c9084d0e2
commit cb246e38fb
10 changed files with 34 additions and 32 deletions

View File

@ -6,6 +6,6 @@ use wasm_bindgen::prelude::*;
extern "C" {
type Foo;
#[wasm_bindgen(method, structural, host_binding)]
#[wasm_bindgen(method, structural, final)]
fn bar(this: &Foo);
}

View File

@ -0,0 +1,8 @@
error: cannot specify both `structural` and `final`
--> $DIR/structural-and-final.rs:9:40
|
9 | #[wasm_bindgen(method, structural, final)]
| ^^^^^
error: aborting due to previous error

View File

@ -1,8 +0,0 @@
error: cannot specify both `structural` and `host_binding`
--> $DIR/structural-and-host-binding.rs:9:40
|
9 | #[wasm_bindgen(method, structural, host_binding)]
| ^^^^^^^^^^^^
error: aborting due to previous error