summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen-macro
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/wasm-bindgen-macro')
-rw-r--r--vendor/wasm-bindgen-macro/.cargo-checksum.json2
-rw-r--r--vendor/wasm-bindgen-macro/Cargo.toml13
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr50
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/invalid-imports.rs2
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/invalid-imports.stderr32
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/invalid-methods.stderr24
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/main-async.rs7
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/main-async.stderr5
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/main-debug.rs18
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/main-debug.stderr5
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/main-infallible.rs10
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/main-infallible.stderr5
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/main-jsvalue.rs9
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/main-jsvalue.stderr5
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/main-unit.rs7
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/main-unit.stderr5
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/main.rs7
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/main.stderr5
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/missing-catch.stderr21
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/start-function.stderr80
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/struct-fields.rs15
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/struct-fields.stderr28
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/traits-not-implemented.stderr21
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/unknown-type-in-import.stderr11
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/unused-attributes.stderr12
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/wasm-bindgen.rs43
-rw-r--r--vendor/wasm-bindgen-macro/ui-tests/wasm-bindgen.stderr19
27 files changed, 309 insertions, 152 deletions
diff --git a/vendor/wasm-bindgen-macro/.cargo-checksum.json b/vendor/wasm-bindgen-macro/.cargo-checksum.json
index 6c78e5167..5c19e213b 100644
--- a/vendor/wasm-bindgen-macro/.cargo-checksum.json
+++ b/vendor/wasm-bindgen-macro/.cargo-checksum.json
@@ -1 +1 @@
-{"files":{"Cargo.toml":"9be0ee1f3cbfb997ad380ad079fe3e50224229512ddfc35dfb70e2682e0c5b13","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"ef5ffff199bf75993b81c3c1de8dbe19babb22b89170763323fa11a85c62f045","src/lib.rs":"8ba70e362eeb15efaf686df366c3525c24272d61141e31585e1f642b030a54c9","src/worker.js":"cb5c33dd41cfad622abce5464a3ceae478904ea16ddc3c6c769ee33e0c086692","tests/ui.rs":"aed1b0f4e8c99b06657c54f3a74de4b3535ce567fb20e4d2fc6911b361c3d934","ui-tests/async-errors.rs":"f3ab249b3741b38c6213651a5cd36f8b9873bad34bd49d13b780d21bed47272b","ui-tests/async-errors.stderr":"bbfc704c145bfd69d993f2ac6890b89df1e1a3a1c24fde1fc824164a69ffefaf","ui-tests/attribute-fails-to-parse.rs":"c21c2a250534ca7e80fc462804efc0db8a71b6b0cdb0c57c5cab444d081f68de","ui-tests/attribute-fails-to-parse.stderr":"3bc77befbbe7e2d0744dd81067a75cb70c3f2d8bd9c60ec5bcb2dfb65fc1a593","ui-tests/bad-signatures.rs":"96b53e9327cc75747510b548b97cff86429532d5cdf65cc991211bca5646abc2","ui-tests/bad-signatures.stderr":"931e934ccbc43e4cee41a46ecaa3953c3ccdef69450519a838b9af428f75fa72","ui-tests/import-local.rs":"783ef9ebb792111ec7fd335cbc4f684381609c86c0af660fd5ab35cf04cacbf4","ui-tests/import-local.stderr":"6e90ad05c3783d7c69ff4e156458c63ee45ceb7ea8ebc38e1ca52e7f46e8bcf8","ui-tests/invalid-attr.rs":"603cf0bcb95a42a35e535a7d9577dc8c5e6175af4cd27d83fdf77cd6b67acf48","ui-tests/invalid-attr.stderr":"e1fd9450e16f1d672cb708bcbaf99a07f916c48d3e961c1dd1e92bd835d3ec53","ui-tests/invalid-enums.rs":"bf473e1bbafbcde82c946311e824d97bd1f941cfc5c1495025d8a7a513b90a19","ui-tests/invalid-enums.stderr":"ecd549ab69e7d7d645922857e2a83b7171f97a276afeb9f113407a4181b2b9e2","ui-tests/invalid-imports.rs":"452e9df87229ebea5442f384b0bd27a2c082d731a3b99fc7617e9a583392cf3a","ui-tests/invalid-imports.stderr":"4f59f109ec9d5acacf5f22f1467dca7d81e6dbabde95e7bd025ef330c275774a","ui-tests/invalid-items.rs":"ca919f7fe6c0d9fd4218ec43c85d7b43f478ed3042959479eb42adc23f4edf02","ui-tests/invalid-items.stderr":"a7392f1b918cac6eda3cefa5244dc555e4b6332836cab0bbd341b992672cd064","ui-tests/invalid-methods.rs":"c463bee9962d936ef2aeb4051ebc5558c0b7fefe6e459f3a325482763746969f","ui-tests/invalid-methods.stderr":"9666dcd88bc3824b7f7e75093f16a298cb3ba726cc67bc7bd70d698648201fe4","ui-tests/invalid-setter.rs":"db9666df889b58246a51ebc7d753e41ac4382475257a589499a4e886e6fbc45f","ui-tests/invalid-setter.stderr":"d1629836ec39727bfa4737538e9f991cda6fbaeb1c0f8c878cb13757e66daac5","ui-tests/link-to.rs":"be7003f80bf05cffa1301d049bd8f3792513a3f3922da3e74f4b58086970bb85","ui-tests/link-to.stderr":"c582600658db54acf3c16ffde723320a4cbcca3514cc30659badb524a06f66e7","ui-tests/missing-catch.rs":"705bf784db641b30131510b5c47192014e19aeeeb6f73ede1d5356ad2c29915c","ui-tests/missing-catch.stderr":"b67a2a6e2d49bb36eb3078ce06c7c7475e20fcb041a668ed2dac549a7f7ba03c","ui-tests/non-public-function.rs":"0fe075b32c211870bcde0f7dce0eceaffb61a4f8a6ffbd90946a59d7d220343c","ui-tests/non-public-function.stderr":"c9f6f5123b6c3462b8952d6e468ed13c566635d4939b98c9098d2a713f5aa2df","ui-tests/pub-not-copy.rs":"1e50f0b63a6e6363b0926cf947b0492a9803ddb35370f32e733a32506df9b556","ui-tests/pub-not-copy.stderr":"1090980d08622552b82c13da82b4c26ce309314b6062f0c5443a65eff5255d00","ui-tests/start-function.rs":"a56f1309182e597370555c18aa31e240e70e82585d6e72ab4c42e2229a8c1a53","ui-tests/start-function.stderr":"391a244fd07e94372bbd963e46b2e50133e976fc5c3ff1ebfb48126d6aa45f9f","ui-tests/structural-and-final.rs":"1571b078a9d0be6c96ab97be10f1bf369dbb740f04fa312834f49a64130f8d30","ui-tests/structural-and-final.stderr":"cf21dec2851d3f667b93a317ba9e4657a623c49e8b779ea64669452297ba0a17","ui-tests/traits-not-implemented.rs":"3445e15b9c61f84a1f8d703a3a4fe2d2e2d85960ff6b2ac718644d97bf1564e1","ui-tests/traits-not-implemented.stderr":"f1c2fce2efac88c2b1bc23a30d77cb64dc73a9fcb2ceb1ecf926f7ed9b739e48","ui-tests/unknown-type-in-import.rs":"7fbc95bb82d0d60568b8daf27236418219c57447d1dc2e2e384e5f907bac3e3e","ui-tests/unknown-type-in-import.stderr":"2d213673be2dfcb6b56b9efacea9e968c5ae4faab9fabd6c5c66495008d5fe20","ui-tests/unused-attributes.rs":"7c20441c30e53376c9e72fcf82da0cc6e7462eec3087f9eb74f9682eaf7fb3e6","ui-tests/unused-attributes.stderr":"d4557e356289d0775d29b64797079c623e6d7db1ce319ee59cafb0de6d6a32eb","ui-tests/update-all-references.sh":"8b8dbf31e7ada1314956db7a20ab14b13af3ae246a6295afdc7dc96af8ec3773","ui-tests/update-references.sh":"65375c25981646e08e8589449a06be4505b1a2c9e10d35f650be4b1b495dff22"},"package":"4c21f77c0bedc37fd5dc21f897894a5ca01e7bb159884559461862ae90c0b4c5"} \ No newline at end of file
+{"files":{"Cargo.toml":"a795edb195ad34f5c56a6254007c8a4292890c7feb94a2d57f1efb5eb80cbdce","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"378f5840b258e2779c39418f3f2d7b2ba96f1c7917dd6be0713f88305dbda397","README.md":"ef5ffff199bf75993b81c3c1de8dbe19babb22b89170763323fa11a85c62f045","src/lib.rs":"8ba70e362eeb15efaf686df366c3525c24272d61141e31585e1f642b030a54c9","src/worker.js":"cb5c33dd41cfad622abce5464a3ceae478904ea16ddc3c6c769ee33e0c086692","tests/ui.rs":"aed1b0f4e8c99b06657c54f3a74de4b3535ce567fb20e4d2fc6911b361c3d934","ui-tests/async-errors.rs":"f3ab249b3741b38c6213651a5cd36f8b9873bad34bd49d13b780d21bed47272b","ui-tests/async-errors.stderr":"5000b1fa11677c0c4224349e051c653e6ceab6f9b304d32fa3dec2def7269d00","ui-tests/attribute-fails-to-parse.rs":"c21c2a250534ca7e80fc462804efc0db8a71b6b0cdb0c57c5cab444d081f68de","ui-tests/attribute-fails-to-parse.stderr":"3bc77befbbe7e2d0744dd81067a75cb70c3f2d8bd9c60ec5bcb2dfb65fc1a593","ui-tests/bad-signatures.rs":"96b53e9327cc75747510b548b97cff86429532d5cdf65cc991211bca5646abc2","ui-tests/bad-signatures.stderr":"931e934ccbc43e4cee41a46ecaa3953c3ccdef69450519a838b9af428f75fa72","ui-tests/import-local.rs":"783ef9ebb792111ec7fd335cbc4f684381609c86c0af660fd5ab35cf04cacbf4","ui-tests/import-local.stderr":"6e90ad05c3783d7c69ff4e156458c63ee45ceb7ea8ebc38e1ca52e7f46e8bcf8","ui-tests/invalid-attr.rs":"603cf0bcb95a42a35e535a7d9577dc8c5e6175af4cd27d83fdf77cd6b67acf48","ui-tests/invalid-attr.stderr":"e1fd9450e16f1d672cb708bcbaf99a07f916c48d3e961c1dd1e92bd835d3ec53","ui-tests/invalid-enums.rs":"bf473e1bbafbcde82c946311e824d97bd1f941cfc5c1495025d8a7a513b90a19","ui-tests/invalid-enums.stderr":"ecd549ab69e7d7d645922857e2a83b7171f97a276afeb9f113407a4181b2b9e2","ui-tests/invalid-imports.rs":"94724ba9f08fde1830d82b332aa1833850018d8738daefda3fe2516190b6842f","ui-tests/invalid-imports.stderr":"21c96f9bb3b9d0951161b05ad413739ab436242a107e4fe0f9b029b9fa4b061e","ui-tests/invalid-items.rs":"ca919f7fe6c0d9fd4218ec43c85d7b43f478ed3042959479eb42adc23f4edf02","ui-tests/invalid-items.stderr":"a7392f1b918cac6eda3cefa5244dc555e4b6332836cab0bbd341b992672cd064","ui-tests/invalid-methods.rs":"c463bee9962d936ef2aeb4051ebc5558c0b7fefe6e459f3a325482763746969f","ui-tests/invalid-methods.stderr":"ca21b68621674208b7f95b4a201b9726e4bc07ffa127140dc13656d68db2e2e2","ui-tests/invalid-setter.rs":"db9666df889b58246a51ebc7d753e41ac4382475257a589499a4e886e6fbc45f","ui-tests/invalid-setter.stderr":"d1629836ec39727bfa4737538e9f991cda6fbaeb1c0f8c878cb13757e66daac5","ui-tests/link-to.rs":"be7003f80bf05cffa1301d049bd8f3792513a3f3922da3e74f4b58086970bb85","ui-tests/link-to.stderr":"c582600658db54acf3c16ffde723320a4cbcca3514cc30659badb524a06f66e7","ui-tests/main-async.rs":"0d9aedf6158295d9b4c9ed391f979073c1e294c0be8cdd310444d941826b02bb","ui-tests/main-async.stderr":"ef9b711e9db3bbc3d0cbc315044eb6f72139bea4b1785b12f33d521e280d5056","ui-tests/main-debug.rs":"b9fa920c4fc28b0815aed752b90e77723c3291670b6e35372d9d2b05a1ac19eb","ui-tests/main-debug.stderr":"67f5ccb2df878c02a3b394273ccf531fad68f289712140956186c0e9fd83f8f3","ui-tests/main-infallible.rs":"a75d80b13fed301181d69bb6f67ad082c3f1976ec9effef17aadb31bb1160f2a","ui-tests/main-infallible.stderr":"11629a59febd8874c1a87791f82e43cfefc9e10d7c5352f322c80293518b8f47","ui-tests/main-jsvalue.rs":"5f9be90d6603c836aa7eaba0a6014975b6974e895602f4171f5631bf937a4278","ui-tests/main-jsvalue.stderr":"9d6989822f1656100be44f5a99f3a6c0d8127fbd0d47b7a34f2c8806aa957f3d","ui-tests/main-unit.rs":"88c746ad86b282c0da5271a335126396db6701b963d7db3286271edfd5b0a503","ui-tests/main-unit.stderr":"5ca86669158c9bff919785ad330745ed80d38e3ff8d1d32c3ff47752fcec8196","ui-tests/main.rs":"0dbbca3882dcec75e1137e6043fd053d8c8cc6a17276ee1dc9088cfaaf565e88","ui-tests/main.stderr":"dd04c49d88dab17ffa0add6603b81407b7f4f43cef63c1afc19bcf0e25a11128","ui-tests/missing-catch.rs":"705bf784db641b30131510b5c47192014e19aeeeb6f73ede1d5356ad2c29915c","ui-tests/missing-catch.stderr":"e8e0f31e0be84a9a932ec899eae358c3b448732d4c1962461d0d321ddd0d7055","ui-tests/non-public-function.rs":"0fe075b32c211870bcde0f7dce0eceaffb61a4f8a6ffbd90946a59d7d220343c","ui-tests/non-public-function.stderr":"c9f6f5123b6c3462b8952d6e468ed13c566635d4939b98c9098d2a713f5aa2df","ui-tests/pub-not-copy.rs":"1e50f0b63a6e6363b0926cf947b0492a9803ddb35370f32e733a32506df9b556","ui-tests/pub-not-copy.stderr":"1090980d08622552b82c13da82b4c26ce309314b6062f0c5443a65eff5255d00","ui-tests/start-function.rs":"a56f1309182e597370555c18aa31e240e70e82585d6e72ab4c42e2229a8c1a53","ui-tests/start-function.stderr":"b93aeac4cb81cb2d03cfe6d7952e1a3a2568cb719e199df5292c2210058c9219","ui-tests/struct-fields.rs":"8e70ca9716e4432a014a279cf2714aa4e15d2d9dfb198ad93f2fe9b6037ff8c4","ui-tests/struct-fields.stderr":"f1cd67f6c12de58b3cda3642f0ba199ab634ec0fe280d5d98d0b6306cbd00475","ui-tests/structural-and-final.rs":"1571b078a9d0be6c96ab97be10f1bf369dbb740f04fa312834f49a64130f8d30","ui-tests/structural-and-final.stderr":"cf21dec2851d3f667b93a317ba9e4657a623c49e8b779ea64669452297ba0a17","ui-tests/traits-not-implemented.rs":"3445e15b9c61f84a1f8d703a3a4fe2d2e2d85960ff6b2ac718644d97bf1564e1","ui-tests/traits-not-implemented.stderr":"73a585b5cbc646289d830c8bd696869f0ea643ac24f3eeddaadbb711490b7934","ui-tests/unknown-type-in-import.rs":"7fbc95bb82d0d60568b8daf27236418219c57447d1dc2e2e384e5f907bac3e3e","ui-tests/unknown-type-in-import.stderr":"348350a2591544623f96246d860b47c64ef43933b8ac447ec7ff6fab7bac00c0","ui-tests/unused-attributes.rs":"7c20441c30e53376c9e72fcf82da0cc6e7462eec3087f9eb74f9682eaf7fb3e6","ui-tests/unused-attributes.stderr":"461a3724155d6007e75191233d0ff9a4897eeaed04f2ab8582636f17e62f46ac","ui-tests/update-all-references.sh":"8b8dbf31e7ada1314956db7a20ab14b13af3ae246a6295afdc7dc96af8ec3773","ui-tests/update-references.sh":"65375c25981646e08e8589449a06be4505b1a2c9e10d35f650be4b1b495dff22","ui-tests/wasm-bindgen.rs":"49ba1dc3f1847d564afb472ff965e1bf00398e660771b2481bd65515f28439ab","ui-tests/wasm-bindgen.stderr":"32bb74ff13adb4361d75be7deef95e0158f53b0449ae73cd67cc82ff0d7a83a2"},"package":"dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d"} \ No newline at end of file
diff --git a/vendor/wasm-bindgen-macro/Cargo.toml b/vendor/wasm-bindgen-macro/Cargo.toml
index 9bdda78c4..178e9c5cb 100644
--- a/vendor/wasm-bindgen-macro/Cargo.toml
+++ b/vendor/wasm-bindgen-macro/Cargo.toml
@@ -11,8 +11,9 @@
[package]
edition = "2018"
+rust-version = "1.56"
name = "wasm-bindgen-macro"
-version = "0.2.84"
+version = "0.2.87"
authors = ["The wasm-bindgen Developers"]
description = """
Definition of the `#[wasm_bindgen]` attribute, an internal dependency
@@ -22,6 +23,7 @@ documentation = "https://docs.rs/wasm-bindgen"
readme = "README.md"
license = "MIT/Apache-2.0"
repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/macro"
+resolver = "2"
[lib]
proc-macro = true
@@ -30,19 +32,20 @@ proc-macro = true
version = "1.0"
[dependencies.wasm-bindgen-macro-support]
-version = "=0.2.84"
+version = "=0.2.87"
[dev-dependencies.trybuild]
version = "1.0"
[dev-dependencies.wasm-bindgen]
-version = "0.2.84"
+version = "0.2.87"
[dev-dependencies.wasm-bindgen-futures]
-version = "0.4.34"
+version = "0.4.37"
[dev-dependencies.web-sys]
-version = "0.3.61"
+version = "0.3.64"
+features = ["Worker"]
[features]
spans = ["wasm-bindgen-macro-support/spans"]
diff --git a/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr b/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr
index c1fec077d..cf833c87d 100644
--- a/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr
+++ b/vendor/wasm-bindgen-macro/ui-tests/async-errors.stderr
@@ -4,14 +4,9 @@ error[E0277]: the trait bound `Result<(), ()>: IntoJsResult` is not satisfied
30 | #[wasm_bindgen]
| ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), ()>`
|
- = help: the following implementations were found:
- <Result<(), E> as IntoJsResult>
- <Result<T, E> as IntoJsResult>
-note: required by `into_js_result`
- --> $WORKSPACE/src/lib.rs
- |
- | fn into_js_result(self) -> Result<JsValue, JsValue>;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ = help: the following other types implement trait `IntoJsResult`:
+ Result<(), E>
+ Result<T, E>
= note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Result<(), BadType>: IntoJsResult` is not satisfied
@@ -20,14 +15,9 @@ error[E0277]: the trait bound `Result<(), BadType>: IntoJsResult` is not satisfi
32 | #[wasm_bindgen]
| ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<(), BadType>`
|
- = help: the following implementations were found:
- <Result<(), E> as IntoJsResult>
- <Result<T, E> as IntoJsResult>
-note: required by `into_js_result`
- --> $WORKSPACE/src/lib.rs
- |
- | fn into_js_result(self) -> Result<JsValue, JsValue>;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ = help: the following other types implement trait `IntoJsResult`:
+ Result<(), E>
+ Result<T, E>
= note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `wasm_bindgen::JsValue: From<BadType>` is not satisfied
@@ -36,19 +26,18 @@ error[E0277]: the trait bound `wasm_bindgen::JsValue: From<BadType>` is not sati
34 | #[wasm_bindgen]
| ^^^^^^^^^^^^^^^ the trait `From<BadType>` is not implemented for `wasm_bindgen::JsValue`
|
- = help: the following implementations were found:
+ = help: the following other types implement trait `From<T>`:
<wasm_bindgen::JsValue as From<&'a String>>
<wasm_bindgen::JsValue as From<&'a T>>
<wasm_bindgen::JsValue as From<&'a str>>
<wasm_bindgen::JsValue as From<*const T>>
- and $N others
- = note: required because of the requirements on the impl of `Into<wasm_bindgen::JsValue>` for `BadType`
- = note: required because of the requirements on the impl of `IntoJsResult` for `BadType`
-note: required by `into_js_result`
- --> $WORKSPACE/src/lib.rs
- |
- | fn into_js_result(self) -> Result<JsValue, JsValue>;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ <wasm_bindgen::JsValue as From<*mut T>>
+ <wasm_bindgen::JsValue as From<JsError>>
+ <wasm_bindgen::JsValue as From<MyType>>
+ <wasm_bindgen::JsValue as From<Option<T>>>
+ and 72 others
+ = note: required for `BadType` to implement `Into<wasm_bindgen::JsValue>`
+ = note: required for `BadType` to implement `IntoJsResult`
= note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Result<BadType, wasm_bindgen::JsValue>: IntoJsResult` is not satisfied
@@ -57,12 +46,7 @@ error[E0277]: the trait bound `Result<BadType, wasm_bindgen::JsValue>: IntoJsRes
36 | #[wasm_bindgen]
| ^^^^^^^^^^^^^^^ the trait `IntoJsResult` is not implemented for `Result<BadType, wasm_bindgen::JsValue>`
|
- = help: the following implementations were found:
- <Result<(), E> as IntoJsResult>
- <Result<T, E> as IntoJsResult>
-note: required by `into_js_result`
- --> $WORKSPACE/src/lib.rs
- |
- | fn into_js_result(self) -> Result<JsValue, JsValue>;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ = help: the following other types implement trait `IntoJsResult`:
+ Result<(), E>
+ Result<T, E>
= note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/wasm-bindgen-macro/ui-tests/invalid-imports.rs b/vendor/wasm-bindgen-macro/ui-tests/invalid-imports.rs
index ecd223b70..ceb7d33bf 100644
--- a/vendor/wasm-bindgen-macro/ui-tests/invalid-imports.rs
+++ b/vendor/wasm-bindgen-macro/ui-tests/invalid-imports.rs
@@ -19,7 +19,7 @@ extern "C" {
#[wasm_bindgen(method)]
fn f4(x: &Bar<T>);
#[wasm_bindgen(method)]
- fn f4(x: &Fn(T));
+ fn f4(x: &dyn Fn(T));
#[wasm_bindgen(constructor)]
fn f();
diff --git a/vendor/wasm-bindgen-macro/ui-tests/invalid-imports.stderr b/vendor/wasm-bindgen-macro/ui-tests/invalid-imports.stderr
index aeb09c574..c83c040e8 100644
--- a/vendor/wasm-bindgen-macro/ui-tests/invalid-imports.stderr
+++ b/vendor/wasm-bindgen-macro/ui-tests/invalid-imports.stderr
@@ -1,71 +1,71 @@
error: it is currently not sound to use lifetimes in function signatures
- --> $DIR/invalid-imports.rs:7:16
+ --> ui-tests/invalid-imports.rs:7:16
|
7 | fn f() -> &'static u32;
| ^^^^^^^
error: imported methods must have at least one argument
- --> $DIR/invalid-imports.rs:10:5
+ --> ui-tests/invalid-imports.rs:10:5
|
10 | fn f1();
| ^^^^^^^^
error: first argument of method must be a shared reference
- --> $DIR/invalid-imports.rs:12:14
+ --> ui-tests/invalid-imports.rs:12:14
|
12 | fn f2(x: u32);
| ^^^
error: first argument of method must be a path
- --> $DIR/invalid-imports.rs:14:14
+ --> ui-tests/invalid-imports.rs:14:15
|
14 | fn f3(x: &&u32);
- | ^^^^^
+ | ^^^^
error: paths with type parameters are not supported yet
- --> $DIR/invalid-imports.rs:20:15
+ --> ui-tests/invalid-imports.rs:20:15
|
20 | fn f4(x: &Bar<T>);
| ^^^^^^
-error: paths with type parameters are not supported yet
- --> $DIR/invalid-imports.rs:22:15
+error: first argument of method must be a path
+ --> ui-tests/invalid-imports.rs:22:15
|
-22 | fn f4(x: &Fn(T));
- | ^^^^^
+22 | fn f4(x: &dyn Fn(T));
+ | ^^^^^^^^^
error: constructor returns must be bare types
- --> $DIR/invalid-imports.rs:25:5
+ --> ui-tests/invalid-imports.rs:25:5
|
25 | fn f();
| ^^^^^^^
error: return value of constructor must be a bare path
- --> $DIR/invalid-imports.rs:29:5
+ --> ui-tests/invalid-imports.rs:29:5
|
29 | fn f() -> &Bar;
| ^^^^^^^^^^^^^^^
error: must be Result<...>
- --> $DIR/invalid-imports.rs:32:15
+ --> ui-tests/invalid-imports.rs:32:15
|
32 | fn f() -> u32;
| ^^^
error: must be Result<...>
- --> $DIR/invalid-imports.rs:34:15
+ --> ui-tests/invalid-imports.rs:34:15
|
34 | fn f() -> &u32;
| ^^^^
error: must have at least one generic parameter
- --> $DIR/invalid-imports.rs:36:15
+ --> ui-tests/invalid-imports.rs:36:15
|
36 | fn f() -> Result<>;
| ^^^^^^^^
error: it is currently not sound to use lifetimes in function signatures
- --> $DIR/invalid-imports.rs:38:22
+ --> ui-tests/invalid-imports.rs:38:22
|
38 | fn f() -> Result<'a>;
| ^^
diff --git a/vendor/wasm-bindgen-macro/ui-tests/invalid-methods.stderr b/vendor/wasm-bindgen-macro/ui-tests/invalid-methods.stderr
index a785fc1ff..798e1af9a 100644
--- a/vendor/wasm-bindgen-macro/ui-tests/invalid-methods.stderr
+++ b/vendor/wasm-bindgen-macro/ui-tests/invalid-methods.stderr
@@ -1,61 +1,61 @@
error: #[wasm_bindgen] default impls are not supported
- --> $DIR/invalid-methods.rs:7:1
+ --> ui-tests/invalid-methods.rs:7:1
|
7 | default impl A {
| ^^^^^^^
error: #[wasm_bindgen] unsafe impls are not supported
- --> $DIR/invalid-methods.rs:11:1
+ --> ui-tests/invalid-methods.rs:11:1
|
11 | unsafe impl A {
| ^^^^^^
error: #[wasm_bindgen] trait impls are not supported
- --> $DIR/invalid-methods.rs:15:6
+ --> ui-tests/invalid-methods.rs:15:6
|
15 | impl Clone for A {
| ^^^^^
error: #[wasm_bindgen] generic impls aren't supported
- --> $DIR/invalid-methods.rs:19:5
+ --> ui-tests/invalid-methods.rs:19:5
|
19 | impl<T> A {
| ^^^
error: unsupported self type in #[wasm_bindgen] impl
- --> $DIR/invalid-methods.rs:23:6
+ --> ui-tests/invalid-methods.rs:23:6
|
23 | impl &'static A {
| ^^^^^^^^^^
error: const definitions aren't supported with #[wasm_bindgen]
- --> $DIR/invalid-methods.rs:30:5
+ --> ui-tests/invalid-methods.rs:30:5
|
30 | const X: u32 = 3;
| ^^^^^^^^^^^^^^^^^
error: type definitions in impls aren't supported with #[wasm_bindgen]
- --> $DIR/invalid-methods.rs:31:5
+ --> ui-tests/invalid-methods.rs:31:5
|
31 | type Y = u32;
| ^^^^^^^^^^^^^
error: macros in impls aren't supported
- --> $DIR/invalid-methods.rs:32:5
+ --> ui-tests/invalid-methods.rs:32:5
|
32 | x!();
| ^^^^^
error: can only #[wasm_bindgen] non-const functions
- --> $DIR/invalid-methods.rs:39:9
+ --> ui-tests/invalid-methods.rs:39:9
|
39 | pub const fn foo() {}
| ^^^^^
-warning: unused macro definition
- --> $DIR/invalid-methods.rs:26:1
+warning: unused macro definition: `x`
+ --> ui-tests/invalid-methods.rs:26:14
|
26 | macro_rules! x { () => () }
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+ | ^
|
= note: `#[warn(unused_macros)]` on by default
diff --git a/vendor/wasm-bindgen-macro/ui-tests/main-async.rs b/vendor/wasm-bindgen-macro/ui-tests/main-async.rs
new file mode 100644
index 000000000..8e11f45b3
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/main-async.rs
@@ -0,0 +1,7 @@
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen(main)]
+async fn main() {}
+
+#[wasm_bindgen(main)]
+fn fail() {}
diff --git a/vendor/wasm-bindgen-macro/ui-tests/main-async.stderr b/vendor/wasm-bindgen-macro/ui-tests/main-async.stderr
new file mode 100644
index 000000000..71c4689a0
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/main-async.stderr
@@ -0,0 +1,5 @@
+error: the main function has to be called main
+ --> ui-tests/main-async.rs:7:4
+ |
+7 | fn fail() {}
+ | ^^^^
diff --git a/vendor/wasm-bindgen-macro/ui-tests/main-debug.rs b/vendor/wasm-bindgen-macro/ui-tests/main-debug.rs
new file mode 100644
index 000000000..2fc9aa7ca
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/main-debug.rs
@@ -0,0 +1,18 @@
+use std::fmt;
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen(main)]
+fn main() -> Result<(), Test> {
+ unimplemented!()
+}
+
+struct Test;
+
+impl fmt::Debug for Test {
+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
+ unimplemented!()
+ }
+}
+
+#[wasm_bindgen(main)]
+fn fail() {}
diff --git a/vendor/wasm-bindgen-macro/ui-tests/main-debug.stderr b/vendor/wasm-bindgen-macro/ui-tests/main-debug.stderr
new file mode 100644
index 000000000..2b3c670ec
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/main-debug.stderr
@@ -0,0 +1,5 @@
+error: the main function has to be called main
+ --> ui-tests/main-debug.rs:18:4
+ |
+18 | fn fail() {}
+ | ^^^^
diff --git a/vendor/wasm-bindgen-macro/ui-tests/main-infallible.rs b/vendor/wasm-bindgen-macro/ui-tests/main-infallible.rs
new file mode 100644
index 000000000..75ccd429a
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/main-infallible.rs
@@ -0,0 +1,10 @@
+use std::convert::Infallible;
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen(main)]
+fn main() -> Infallible {
+ unimplemented!()
+}
+
+#[wasm_bindgen(main)]
+fn fail() {}
diff --git a/vendor/wasm-bindgen-macro/ui-tests/main-infallible.stderr b/vendor/wasm-bindgen-macro/ui-tests/main-infallible.stderr
new file mode 100644
index 000000000..fd8c9c997
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/main-infallible.stderr
@@ -0,0 +1,5 @@
+error: the main function has to be called main
+ --> ui-tests/main-infallible.rs:10:4
+ |
+10 | fn fail() {}
+ | ^^^^
diff --git a/vendor/wasm-bindgen-macro/ui-tests/main-jsvalue.rs b/vendor/wasm-bindgen-macro/ui-tests/main-jsvalue.rs
new file mode 100644
index 000000000..d2f5816ac
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/main-jsvalue.rs
@@ -0,0 +1,9 @@
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen(main)]
+fn main() -> Result<(), JsValue> {
+ unimplemented!()
+}
+
+#[wasm_bindgen(main)]
+fn fail() {}
diff --git a/vendor/wasm-bindgen-macro/ui-tests/main-jsvalue.stderr b/vendor/wasm-bindgen-macro/ui-tests/main-jsvalue.stderr
new file mode 100644
index 000000000..6d32d6209
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/main-jsvalue.stderr
@@ -0,0 +1,5 @@
+error: the main function has to be called main
+ --> ui-tests/main-jsvalue.rs:9:4
+ |
+9 | fn fail() {}
+ | ^^^^
diff --git a/vendor/wasm-bindgen-macro/ui-tests/main-unit.rs b/vendor/wasm-bindgen-macro/ui-tests/main-unit.rs
new file mode 100644
index 000000000..5e04c8dc7
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/main-unit.rs
@@ -0,0 +1,7 @@
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen(main)]
+fn main() -> () {}
+
+#[wasm_bindgen(main)]
+fn fail() {}
diff --git a/vendor/wasm-bindgen-macro/ui-tests/main-unit.stderr b/vendor/wasm-bindgen-macro/ui-tests/main-unit.stderr
new file mode 100644
index 000000000..f49066e90
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/main-unit.stderr
@@ -0,0 +1,5 @@
+error: the main function has to be called main
+ --> ui-tests/main-unit.rs:7:4
+ |
+7 | fn fail() {}
+ | ^^^^
diff --git a/vendor/wasm-bindgen-macro/ui-tests/main.rs b/vendor/wasm-bindgen-macro/ui-tests/main.rs
new file mode 100644
index 000000000..5babfb92a
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/main.rs
@@ -0,0 +1,7 @@
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen(main)]
+fn main() {}
+
+#[wasm_bindgen(main)]
+fn fail() {}
diff --git a/vendor/wasm-bindgen-macro/ui-tests/main.stderr b/vendor/wasm-bindgen-macro/ui-tests/main.stderr
new file mode 100644
index 000000000..94f13b1db
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/main.stderr
@@ -0,0 +1,5 @@
+error: the main function has to be called main
+ --> ui-tests/main.rs:7:4
+ |
+7 | fn fail() {}
+ | ^^^^
diff --git a/vendor/wasm-bindgen-macro/ui-tests/missing-catch.stderr b/vendor/wasm-bindgen-macro/ui-tests/missing-catch.stderr
index d08553b1b..55466de06 100644
--- a/vendor/wasm-bindgen-macro/ui-tests/missing-catch.stderr
+++ b/vendor/wasm-bindgen-macro/ui-tests/missing-catch.stderr
@@ -4,14 +4,13 @@ error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsVal
6 | pub fn foo() -> Result<JsValue, JsValue>;
| ^^^ the trait `FromWasmAbi` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
|
-note: required by a bound in `FromWasmAbi`
- --> $WORKSPACE/src/convert/traits.rs
- |
- | / pub trait FromWasmAbi: WasmDescribe {
- | | /// The wasm ABI type that this converts from when coming back out from the
- | | /// ABI boundary.
- | | type Abi: WasmAbi;
-... |
- | | unsafe fn from_abi(js: Self::Abi) -> Self;
- | | }
- | |_^ required by this bound in `FromWasmAbi`
+ = help: the following other types implement trait `FromWasmAbi`:
+ *const T
+ *mut T
+ Box<[T]>
+ Box<[f32]>
+ Box<[f64]>
+ Box<[i16]>
+ Box<[i32]>
+ Box<[i64]>
+ and 35 others
diff --git a/vendor/wasm-bindgen-macro/ui-tests/start-function.stderr b/vendor/wasm-bindgen-macro/ui-tests/start-function.stderr
index aac6fccf0..9cd119761 100644
--- a/vendor/wasm-bindgen-macro/ui-tests/start-function.stderr
+++ b/vendor/wasm-bindgen-macro/ui-tests/start-function.stderr
@@ -11,61 +11,37 @@ error: the start function cannot have generics
| ^^^
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
- --> ui-tests/start-function.rs:15:1
- |
-15 | #[wasm_bindgen(start)]
- | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, ()>`
- |
- = help: the following implementations were found:
- <Result<(), E> as wasm_bindgen::__rt::Start>
-note: required by `start`
- --> $WORKSPACE/src/lib.rs
- |
- | fn start(self);
- | ^^^^^^^^^^^^^^^
- = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
+ --> ui-tests/start-function.rs:15:1
+ |
+15 | #[wasm_bindgen(start)]
+ | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, ()>`
+ |
+ = help: the trait `wasm_bindgen::__rt::Start` is implemented for `Result<(), E>`
+ = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied
- --> ui-tests/start-function.rs:18:1
- |
-18 | #[wasm_bindgen(start)]
- | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
- |
- = help: the following implementations were found:
- <Result<(), E> as wasm_bindgen::__rt::Start>
-note: required by `start`
- --> $WORKSPACE/src/lib.rs
- |
- | fn start(self);
- | ^^^^^^^^^^^^^^^
- = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
+ --> ui-tests/start-function.rs:18:1
+ |
+18 | #[wasm_bindgen(start)]
+ | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
+ |
+ = help: the trait `wasm_bindgen::__rt::Start` is implemented for `Result<(), E>`
+ = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, ()>: wasm_bindgen::__rt::Start` is not satisfied
- --> ui-tests/start-function.rs:27:1
- |
-27 | #[wasm_bindgen(start)]
- | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, ()>`
- |
- = help: the following implementations were found:
- <Result<(), E> as wasm_bindgen::__rt::Start>
-note: required by `start`
- --> $WORKSPACE/src/lib.rs
- |
- | fn start(self);
- | ^^^^^^^^^^^^^^^
- = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
+ --> ui-tests/start-function.rs:27:1
+ |
+27 | #[wasm_bindgen(start)]
+ | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, ()>`
+ |
+ = help: the trait `wasm_bindgen::__rt::Start` is implemented for `Result<(), E>`
+ = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>: wasm_bindgen::__rt::Start` is not satisfied
- --> ui-tests/start-function.rs:30:1
- |
-30 | #[wasm_bindgen(start)]
- | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
- |
- = help: the following implementations were found:
- <Result<(), E> as wasm_bindgen::__rt::Start>
-note: required by `start`
- --> $WORKSPACE/src/lib.rs
- |
- | fn start(self);
- | ^^^^^^^^^^^^^^^
- = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
+ --> ui-tests/start-function.rs:30:1
+ |
+30 | #[wasm_bindgen(start)]
+ | ^^^^^^^^^^^^^^^^^^^^^^ the trait `wasm_bindgen::__rt::Start` is not implemented for `Result<wasm_bindgen::JsValue, wasm_bindgen::JsValue>`
+ |
+ = help: the trait `wasm_bindgen::__rt::Start` is implemented for `Result<(), E>`
+ = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/wasm-bindgen-macro/ui-tests/struct-fields.rs b/vendor/wasm-bindgen-macro/ui-tests/struct-fields.rs
new file mode 100644
index 000000000..dee2c8934
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/struct-fields.rs
@@ -0,0 +1,15 @@
+use wasm_bindgen::prelude::*;
+
+#[wasm_bindgen]
+extern "C" {
+ pub type Foo;
+}
+
+#[wasm_bindgen]
+struct Bar {
+ pub a: Foo,
+ #[wasm_bindgen(getter_with_clone)]
+ pub b: Foo,
+}
+
+fn main() {}
diff --git a/vendor/wasm-bindgen-macro/ui-tests/struct-fields.stderr b/vendor/wasm-bindgen-macro/ui-tests/struct-fields.stderr
new file mode 100644
index 000000000..ab1754695
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/struct-fields.stderr
@@ -0,0 +1,28 @@
+error[E0277]: the trait bound `Foo: std::marker::Copy` is not satisfied
+ --> ui-tests/struct-fields.rs:10:12
+ |
+10 | pub a: Foo,
+ | ^^^ the trait `std::marker::Copy` is not implemented for `Foo`
+ |
+note: required by a bound in `__wbg_get_bar_a::assert_copy`
+ --> ui-tests/struct-fields.rs:8:1
+ |
+8 | #[wasm_bindgen]
+ | ^^^^^^^^^^^^^^^ required by this bound in `assert_copy`
+ = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error[E0277]: the trait bound `Foo: Clone` is not satisfied
+ --> ui-tests/struct-fields.rs:11:20
+ |
+11 | #[wasm_bindgen(getter_with_clone)]
+ | ^----------------
+ | |
+ | ____________________required by a bound introduced by this call
+ | |
+12 | | pub b: Foo,
+ | |_________^ the trait `Clone` is not implemented for `Foo`
+ |
+help: consider annotating `Foo` with `#[derive(Clone)]`
+ |
+3 | #[derive(Clone)]
+ |
diff --git a/vendor/wasm-bindgen-macro/ui-tests/traits-not-implemented.stderr b/vendor/wasm-bindgen-macro/ui-tests/traits-not-implemented.stderr
index aaad988af..5b8e12228 100644
--- a/vendor/wasm-bindgen-macro/ui-tests/traits-not-implemented.stderr
+++ b/vendor/wasm-bindgen-macro/ui-tests/traits-not-implemented.stderr
@@ -4,15 +4,14 @@ error[E0277]: the trait bound `A: IntoWasmAbi` is not satisfied
5 | #[wasm_bindgen]
| ^^^^^^^^^^^^^^^ the trait `IntoWasmAbi` is not implemented for `A`
|
-note: required by a bound in `IntoWasmAbi`
- --> $WORKSPACE/src/convert/traits.rs
- |
- | / pub trait IntoWasmAbi: WasmDescribe {
- | | /// The wasm ABI type that this converts into when crossing the ABI
- | | /// boundary.
- | | type Abi: WasmAbi;
-... |
- | | fn into_abi(self) -> Self::Abi;
- | | }
- | |_^ required by this bound in `IntoWasmAbi`
+ = help: the following other types implement trait `IntoWasmAbi`:
+ &'a (dyn Fn() -> R + 'b)
+ &'a (dyn Fn(A) -> R + 'b)
+ &'a (dyn Fn(A, B) -> R + 'b)
+ &'a (dyn Fn(A, B, C) -> R + 'b)
+ &'a (dyn Fn(A, B, C, D) -> R + 'b)
+ &'a (dyn Fn(A, B, C, D, E) -> R + 'b)
+ &'a (dyn Fn(A, B, C, D, E, F) -> R + 'b)
+ &'a (dyn Fn(A, B, C, D, E, F, G) -> R + 'b)
+ and 84 others
= note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
diff --git a/vendor/wasm-bindgen-macro/ui-tests/unknown-type-in-import.stderr b/vendor/wasm-bindgen-macro/ui-tests/unknown-type-in-import.stderr
index e7bb64c53..af11dc2c6 100644
--- a/vendor/wasm-bindgen-macro/ui-tests/unknown-type-in-import.stderr
+++ b/vendor/wasm-bindgen-macro/ui-tests/unknown-type-in-import.stderr
@@ -1,7 +1,10 @@
error[E0412]: cannot find type `A` in this scope
- --> $DIR/unknown-type-in-import.rs:6:19
+ --> ui-tests/unknown-type-in-import.rs:6:19
|
6 | pub fn foo(a: A);
- | - ^ not found in this scope
- | |
- | help: you might be missing a type parameter: `<A>`
+ | ^ not found in this scope
+ |
+help: you might be missing a type parameter
+ |
+6 | pub fn foo<A>(a: A);
+ | +++
diff --git a/vendor/wasm-bindgen-macro/ui-tests/unused-attributes.stderr b/vendor/wasm-bindgen-macro/ui-tests/unused-attributes.stderr
index c4ba32f08..1df8f26a0 100644
--- a/vendor/wasm-bindgen-macro/ui-tests/unused-attributes.stderr
+++ b/vendor/wasm-bindgen-macro/ui-tests/unused-attributes.stderr
@@ -22,6 +22,12 @@ error: unused variable: `readonly`
21 | #[wasm_bindgen(readonly)]
| ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_readonly`
+error: unused variable: `typescript_type`
+ --> ui-tests/unused-attributes.rs:26:28
+ |
+26 | #[wasm_bindgen(getter, typescript_type = "Thing[]")]
+ | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_typescript_type`
+
error: unused variable: `getter_with_clone`
--> ui-tests/unused-attributes.rs:24:16
|
@@ -33,9 +39,3 @@ error: unused variable: `final`
|
24 | #[wasm_bindgen(getter_with_clone, final)]
| ^^^^^ help: if this is intentional, prefix it with an underscore: `_final`
-
-error: unused variable: `typescript_type`
- --> ui-tests/unused-attributes.rs:26:28
- |
-26 | #[wasm_bindgen(getter, typescript_type = "Thing[]")]
- | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_typescript_type`
diff --git a/vendor/wasm-bindgen-macro/ui-tests/wasm-bindgen.rs b/vendor/wasm-bindgen-macro/ui-tests/wasm-bindgen.rs
new file mode 100644
index 000000000..1675034a4
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/wasm-bindgen.rs
@@ -0,0 +1,43 @@
+extern crate wasm_bindgen as extern_test;
+
+use wasm_bindgen::prelude::*;
+
+mod test {
+ pub use wasm_bindgen as test;
+ pub use wasm_bindgen;
+}
+
+#[wasm_bindgen(wasm_bindgen = wasm_bindgen)]
+pub fn good1() {}
+
+#[wasm_bindgen(wasm_bindgen = ::wasm_bindgen)]
+pub fn good2() {}
+
+#[wasm_bindgen(wasm_bindgen = test::wasm_bindgen)]
+pub fn good3() {}
+
+#[wasm_bindgen(wasm_bindgen = test::test)]
+pub fn good4() {}
+
+#[wasm_bindgen(wasm_bindgen = extern_test)]
+pub fn good5() {}
+
+#[wasm_bindgen(wasm_bindgen_futures = wasm_bindgen_futures)]
+pub fn good6() {}
+
+#[wasm_bindgen(wasm_bindgen = wasm_bindgen)]
+pub async fn good7() {}
+
+#[wasm_bindgen(wasm_bindgen_futures = wasm_bindgen_futures)]
+pub async fn good8() {}
+
+#[wasm_bindgen(wasm_bindgen = wasm_bindgen, wasm_bindgen_futures = wasm_bindgen_futures)]
+pub async fn good9() {}
+
+#[wasm_bindgen(wasm_bindgen = test)]
+pub fn bad1() {}
+
+#[wasm_bindgen(wasm_bindgen_futures = test)]
+pub async fn bad2() {}
+
+fn main() {}
diff --git a/vendor/wasm-bindgen-macro/ui-tests/wasm-bindgen.stderr b/vendor/wasm-bindgen-macro/ui-tests/wasm-bindgen.stderr
new file mode 100644
index 000000000..7ed892ebb
--- /dev/null
+++ b/vendor/wasm-bindgen-macro/ui-tests/wasm-bindgen.stderr
@@ -0,0 +1,19 @@
+error[E0433]: failed to resolve: could not find `convert` in `test`
+ --> ui-tests/wasm-bindgen.rs:37:1
+ |
+37 | #[wasm_bindgen(wasm_bindgen = test)]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could not find `convert` in `test`
+ |
+ = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
+
+error[E0425]: cannot find function `future_to_promise` in module `test`
+ --> ui-tests/wasm-bindgen.rs:40:1
+ |
+40 | #[wasm_bindgen(wasm_bindgen_futures = test)]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `test`
+ |
+ = note: this error originates in the attribute macro `wasm_bindgen` (in Nightly builds, run with -Z macro-backtrace for more info)
+help: consider importing this function
+ |
+3 | use wasm_bindgen_futures::future_to_promise;
+ |