mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-23 05:30:52 +00:00
This commit implements a system that will assert that all `#[wasm_bindgen]` attributes are actually used during compilation. This should help ensure that we don't sneak in stray attributes that don't actually end up having any meaning, and hopefully make it a bit easier to learn `#[wasm_bindgen]`!
15 lines
328 B
Plaintext
15 lines
328 B
Plaintext
error: unused #[wasm_bindgen] attribute
|
|
--> $DIR/unused-attributes.rs:7:20
|
|
|
|
|
7 | #[wasm_bindgen(method)]
|
|
| ^^^^^^
|
|
|
|
error: unused #[wasm_bindgen] attribute
|
|
--> $DIR/unused-attributes.rs:8:20
|
|
|
|
|
8 | #[wasm_bindgen(method)]
|
|
| ^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|