Last login: Sat Jan 26 10:54:40 on ttys002 request-animation-frame $ cargo clippy --verbose Fresh unicode-xid v0.1.0 Fresh autocfg v0.1.2 Fresh cfg-if v0.1.6 Fresh rustc-demangle v0.1.13 Fresh ucd-util v0.1.3 Fresh lazy_static v1.2.0 Fresh utf8-ranges v1.0.2 Fresh unicode-segmentation v1.2.1 Fresh quick-error v1.2.2 Fresh termcolor v1.0.4 Fresh sourcefile v0.1.4 Fresh log v0.4.6 Fresh regex-syntax v0.6.4 Fresh thread_local v0.3.6 Fresh heck v0.3.1 Fresh humantime v1.2.0 Fresh proc-macro2 v0.4.26 Fresh libc v0.2.48 Fresh wasm-bindgen-shared v0.2.33 (/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/crates/shared) Fresh quote v0.6.11 Fresh memchr v2.1.3 Fresh atty v0.2.11 Fresh backtrace v0.3.13 Fresh syn v0.15.26 Fresh nom v4.1.1 Fresh aho-corasick v0.6.9 Fresh synstructure v0.10.1 Compiling wasm-bindgen-backend v0.2.33 (/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/crates/backend) Fresh weedle v0.8.0 Running `/Users/misakimakino/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/clippy-driver rustc --crate-name wasm_bindgen_backend crates/backend/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="spans"' -C metadata=3554d8ad7e145443 -C extra-filename=-3554d8ad7e145443 --out-dir /Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps -C incremental=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/incremental -L dependency=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps --extern lazy_static=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/liblazy_static-fcf55004426244f5.rlib --extern log=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/liblog-45ef69e8215812e9.rlib --extern proc_macro2=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libproc_macro2-17e36e282c84be40.rlib --extern quote=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libquote-af4db6a3f849bcbe.rlib --extern syn=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libsyn-d7df2a3e3523cd86.rlib --extern wasm_bindgen_shared=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libwasm_bindgen_shared-152fd91db8d44993.rlib` Fresh regex v1.1.0 Fresh failure_derive v0.1.5 Fresh env_logger v0.6.0 Fresh failure v0.1.5 Compiling wasm-bindgen-macro-support v0.2.33 (/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/crates/macro-support) Compiling wasm-bindgen-webidl v0.2.27 (/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/crates/webidl) Running `/Users/misakimakino/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/clippy-driver rustc --crate-name wasm_bindgen_macro_support crates/macro-support/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 --cfg 'feature="spans"' --cfg 'feature="wasm-bindgen-backend"' -C metadata=4ed09d0bea064f58 -C extra-filename=-4ed09d0bea064f58 --out-dir /Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps -C incremental=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/incremental -L dependency=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps --extern proc_macro2=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libproc_macro2-17e36e282c84be40.rlib --extern quote=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libquote-af4db6a3f849bcbe.rlib --extern syn=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libsyn-d7df2a3e3523cd86.rlib --extern wasm_bindgen_backend=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libwasm_bindgen_backend-3554d8ad7e145443.rlib --extern wasm_bindgen_shared=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libwasm_bindgen_shared-152fd91db8d44993.rlib` Running `/Users/misakimakino/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/clippy-driver rustc --crate-name wasm_bindgen_webidl crates/webidl/src/lib.rs --color always --crate-type lib --emit=dep-info,link -C debuginfo=2 -C metadata=4a8154a136330644 -C extra-filename=-4a8154a136330644 --out-dir /Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps -C incremental=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/incremental -L dependency=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps --extern failure=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libfailure-d4d3c758e2802579.rlib --extern heck=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libheck-563b7994f02e64e3.rlib --extern log=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/liblog-45ef69e8215812e9.rlib --extern proc_macro2=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libproc_macro2-17e36e282c84be40.rlib --extern quote=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libquote-af4db6a3f849bcbe.rlib --extern syn=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libsyn-d7df2a3e3523cd86.rlib --extern wasm_bindgen_backend=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libwasm_bindgen_backend-3554d8ad7e145443.rlib --extern weedle=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libweedle-ae38f86a38f1c35d.rlib` Compiling wasm-bindgen-macro v0.2.33 (/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/crates/macro) Running `/Users/misakimakino/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/clippy-driver rustc --crate-name wasm_bindgen_macro crates/macro/src/lib.rs --color always --crate-type proc-macro --emit=dep-info,link -C prefer-dynamic -C debuginfo=2 --cfg 'feature="spans"' --cfg 'feature="wasm-bindgen-macro-support"' -C metadata=d843520d3f710f54 -C extra-filename=-d843520d3f710f54 --out-dir /Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps -C incremental=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/incremental -L dependency=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps --extern quote=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libquote-af4db6a3f849bcbe.rlib --extern wasm_bindgen_macro_support=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libwasm_bindgen_macro_support-4ed09d0bea064f58.rlib` Compiling web-sys v0.3.10 (/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/crates/web-sys) Running `/Users/misakimakino/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/clippy-driver rustc --crate-name build_script_build crates/web-sys/build.rs --color always --crate-type bin --emit=dep-info,link -C debuginfo=2 --cfg 'feature="Document"' --cfg 'feature="Element"' --cfg 'feature="HtmlElement"' --cfg 'feature="Node"' --cfg 'feature="Window"' -C metadata=00e19fe493816f15 -C extra-filename=-00e19fe493816f15 --out-dir /Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/build/web-sys-00e19fe493816f15 -C incremental=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/incremental -L dependency=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps --extern env_logger=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libenv_logger-18fa5bcb14311fed.rlib --extern failure=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libfailure-d4d3c758e2802579.rlib --extern sourcefile=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libsourcefile-39188885d11ab72b.rlib --extern wasm_bindgen_webidl=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libwasm_bindgen_webidl-4a8154a136330644.rlib` Checking wasm-bindgen v0.2.33 (/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen) Running `/Users/misakimakino/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/clippy-driver rustc --crate-name wasm_bindgen src/lib.rs --color always --crate-type lib --emit=dep-info,metadata -C debuginfo=2 --cfg 'feature="default"' --cfg 'feature="spans"' --cfg 'feature="std"' --cfg 'feature="wasm-bindgen-macro"' -C metadata=923b21ba55b1ad0c -C extra-filename=-923b21ba55b1ad0c --out-dir /Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps -C incremental=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/incremental -L dependency=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps --extern wasm_bindgen_macro=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libwasm_bindgen_macro-d843520d3f710f54.dylib` warning: long literal lacking separators --> src/convert/impls.rs:137:32 | 137 | fn none() -> u32 { 0xFFFFFFu32 } | ^^^^^^^^^^^ help: consider: `0x00FF_FFFFu32` ... 147 | type_abi_as_u32!(i8 u8 i16 u16); | -------------------------------- in this macro invocation | = note: #[warn(clippy::unreadable_literal)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal warning: long literal lacking separators --> src/convert/impls.rs:142:51 | 142 | fn is_none(js: &u32) -> bool { *js == 0xFFFFFFu32 } | ^^^^^^^^^^^ help: consider: `0x00FF_FFFFu32` ... 147 | type_abi_as_u32!(i8 u8 i16 u16); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal warning: long literal lacking separators --> src/convert/impls.rs:137:32 | 137 | fn none() -> u32 { 0xFFFFFFu32 } | ^^^^^^^^^^^ help: consider: `0x00FF_FFFFu32` ... 147 | type_abi_as_u32!(i8 u8 i16 u16); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal warning: long literal lacking separators --> src/convert/impls.rs:232:9 | 232 | 0xFFFFFFu32 | ^^^^^^^^^^^ help: consider: `0x00FF_FFFFu32` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal warning: long literal lacking separators --> src/convert/impls.rs:239:16 | 239 | *js == 0xFFFFFFu32 | ^^^^^^^^^^^ help: consider: `0x00FF_FFFFu32` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unreadable_literal warning: unneeded return statement --> src/convert/impls.rs:331:9 | 331 | return ret; | ^^^^^^^^^^^ help: remove `return` as shown: `ret` | = note: #[warn(clippy::needless_return)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_return warning: unneeded unit return type --> src/convert/impls.rs:406:43 | 406 | fn into_abi(self, _extra: &mut Stack) -> () { | ^^^^^ help: remove the `-> ()` | = note: #[warn(clippy::unused_unit)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit warning: casting function pointer `$invoke::<$($var,)* R>` to `u32`, which truncates the value --> src/convert/closures.rs:52:24 | 52 | inform($invoke::<$($var,)* R> as u32); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `$invoke::<$($var,)* R> as usize` ... 110 | / stack_closures! { 111 | | (0 invoke0 invoke0_mut) 112 | | (1 invoke1 invoke1_mut A) 113 | | (2 invoke2 invoke2_mut A B) ... | 118 | | (7 invoke7 invoke7_mut A B C D E F G) 119 | | } | |_- in this macro invocation | = note: #[warn(clippy::fn_to_numeric_cast_with_truncation)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation warning: casting function pointer `$invoke_mut::<$($var,)* R>` to `u32`, which truncates the value --> src/convert/closures.rs:101:24 | 101 | inform($invoke_mut::<$($var,)* R> as u32); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `$invoke_mut::<$($var,)* R> as usize` ... 110 | / stack_closures! { 111 | | (0 invoke0 invoke0_mut) 112 | | (1 invoke1 invoke1_mut A) 113 | | (2 invoke2 invoke2_mut A B) ... | 118 | | (7 invoke7 invoke7_mut A B C D E F G) 119 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation warning: casting function pointer `$invoke::<$($var,)* R>` to `u32`, which truncates the value --> src/convert/closures.rs:52:24 | 52 | inform($invoke::<$($var,)* R> as u32); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `$invoke::<$($var,)* R> as usize` ... 110 | / stack_closures! { 111 | | (0 invoke0 invoke0_mut) 112 | | (1 invoke1 invoke1_mut A) 113 | | (2 invoke2 invoke2_mut A B) ... | 118 | | (7 invoke7 invoke7_mut A B C D E F G) 119 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation warning: casting i32 to f64 may become silently lossy if types change --> src/convert/impls.rs:85:32 | 85 | value: 0 as $c, | ^ help: try: `f64::from(0)` ... 110 | / type_wasm_native!( 111 | | i32 as i32 => WasmOptionalI32 112 | | isize as i32 => WasmOptionalI32 113 | | u32 as u32 => WasmOptionalU32 ... | 116 | | f64 as f64 => WasmOptionalF64 117 | | ); | |__- in this macro invocation | = note: #[warn(clippy::cast_lossless)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless warning: casting u8 to u32 may become silently lossy if types change --> src/convert/impls.rs:125:60 | 125 | fn into_abi(self, _extra: &mut Stack) -> u32 { self as u32 } | ^^^^^^^^^^^ help: try: `u32::from(self)` ... 147 | type_abi_as_u32!(i8 u8 i16 u16); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless warning: casting u16 to u32 may become silently lossy if types change --> src/convert/impls.rs:125:60 | 125 | fn into_abi(self, _extra: &mut Stack) -> u32 { self as u32 } | ^^^^^^^^^^^ help: try: `u32::from(self)` ... 147 | type_abi_as_u32!(i8 u8 i16 u16); | -------------------------------- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless warning: casting u32 to i64 may become silently lossy if types change --> src/convert/impls.rs:168:17 | 168 | (js.low as $t) | ((js.high as $t) << 32) | ^^^^^^^^^^^^^^ help: try: `i64::from(js.low)` ... 209 | type_64!(i64 u64); | ------------------ in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless warning: casting u32 to i64 may become silently lossy if types change --> src/convert/impls.rs:168:35 | 168 | (js.low as $t) | ((js.high as $t) << 32) | ^^^^^^^^^^^^^^^ help: try: `i64::from(js.high)` ... 209 | type_64!(i64 u64); | ------------------ in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless warning: casting u32 to i64 may become silently lossy if types change --> src/convert/impls.rs:202:26 | 202 | Some((js.low as $t) | ((js.high as $t) << 32)) | ^^^^^^^^^^^^^^ help: try: `i64::from(js.low)` ... 209 | type_64!(i64 u64); | ------------------ in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless warning: casting u32 to i64 may become silently lossy if types change --> src/convert/impls.rs:202:44 | 202 | Some((js.low as $t) | ((js.high as $t) << 32)) | ^^^^^^^^^^^^^^^ help: try: `i64::from(js.high)` ... 209 | type_64!(i64 u64); | ------------------ in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless warning: casting u32 to u64 may become silently lossy if types change --> src/convert/impls.rs:168:17 | 168 | (js.low as $t) | ((js.high as $t) << 32) | ^^^^^^^^^^^^^^ help: try: `u64::from(js.low)` ... 209 | type_64!(i64 u64); | ------------------ in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless warning: casting u32 to u64 may become silently lossy if types change --> src/convert/impls.rs:168:35 | 168 | (js.low as $t) | ((js.high as $t) << 32) | ^^^^^^^^^^^^^^^ help: try: `u64::from(js.high)` ... 209 | type_64!(i64 u64); | ------------------ in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless warning: casting u32 to u64 may become silently lossy if types change --> src/convert/impls.rs:202:26 | 202 | Some((js.low as $t) | ((js.high as $t) << 32)) | ^^^^^^^^^^^^^^ help: try: `u64::from(js.low)` ... 209 | type_64!(i64 u64); | ------------------ in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless warning: casting u32 to u64 may become silently lossy if types change --> src/convert/impls.rs:202:44 | 202 | Some((js.low as $t) | ((js.high as $t) << 32)) | ^^^^^^^^^^^^^^^ help: try: `u64::from(js.high)` ... 209 | type_64!(i64 u64); | ------------------ in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cast_lossless warning: use of `offset` with a `usize` casted to an `isize` --> src/convert/mod.rs:29:14 | 29 | *global_ptr().offset(self.next as isize) = val; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `global_ptr().add(self.next)` | = note: #[warn(clippy::ptr_offset_with_cast)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#ptr_offset_with_cast warning: casting function pointer `describe::` to `u32`, which truncates the value --> src/closure.rs:204:17 | 204 | describe:: as u32, | ^^^^^^^^^^^^^^^^^^^^ help: try: `describe:: as usize` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation warning: casting function pointer `invoke::<$($var,)* R>` to `u32`, which truncates the value --> src/closure.rs:342:24 | 342 | inform(invoke::<$($var,)* R> as u32); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `invoke::<$($var,)* R> as usize` ... 408 | / doit! { 409 | | () 410 | | (A) 411 | | (A B) ... | 416 | | (A B C D E F G) 417 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation warning: casting function pointer `destroy::<$($var,)* R>` to `u32`, which truncates the value --> src/closure.rs:353:24 | 353 | inform(destroy::<$($var,)* R> as u32); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `destroy::<$($var,)* R> as usize` ... 408 | / doit! { 409 | | () 410 | | (A) 411 | | (A B) ... | 416 | | (A B C D E F G) 417 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation warning: casting function pointer `invoke::<$($var,)* R>` to `u32`, which truncates the value --> src/closure.rs:389:24 | 389 | inform(invoke::<$($var,)* R> as u32); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `invoke::<$($var,)* R> as usize` ... 408 | / doit! { 409 | | () 410 | | (A) 411 | | (A B) ... | 416 | | (A B C D E F G) 417 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation warning: casting function pointer `destroy::<$($var,)* R>` to `u32`, which truncates the value --> src/closure.rs:400:24 | 400 | inform(destroy::<$($var,)* R> as u32); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `destroy::<$($var,)* R> as usize` ... 408 | / doit! { 409 | | () 410 | | (A) 411 | | (A B) ... | 416 | | (A B C D E F G) 417 | | } | |_- in this macro invocation | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#fn_to_numeric_cast_with_truncation warning: the operation is ineffective. Consider reducing it to `JSIDX_OFFSET` --> src/lib.rs:71:30 | 71 | const JSIDX_UNDEFINED: u32 = JSIDX_OFFSET + 0; | ^^^^^^^^^^^^^^^^ | = note: #[warn(clippy::identity_op)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#identity_op warning: defining a method called `from_str` on this type; consider implementing the `std::str::FromStr` trait or choosing a less ambiguous name --> src/lib.rs:115:5 | 115 | / pub fn from_str(s: &str) -> JsValue { 116 | | unsafe { JsValue::_new(__wbindgen_string_new(s.as_ptr(), s.len())) } 117 | | } | |_____^ | = note: #[warn(clippy::should_implement_trait)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#should_implement_trait Checking js-sys v0.3.10 (/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/crates/js-sys) Running `/Users/misakimakino/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/clippy-driver rustc --crate-name js_sys crates/js-sys/src/lib.rs --color always --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=9613c1c50894a9e1 -C extra-filename=-9613c1c50894a9e1 --out-dir /Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps -C incremental=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/incremental -L dependency=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps --extern wasm_bindgen=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libwasm_bindgen-923b21ba55b1ad0c.rmeta` Running `/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/build/web-sys-00e19fe493816f15/build-script-build` error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:129:1 | 129 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: #[deny(clippy::drop_ref)] on by default = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:394:1 | 394 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:469:1 | 469 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:489:1 | 489 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:721:1 | 721 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:760:1 | 760 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:776:1 | 776 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:865:1 | 865 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:954:1 | 954 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref warning: transmute from a reference to a reference --> crates/js-sys/src/lib.rs:1053:27 | 1053 | Some(unsafe { mem::transmute(val) }) | ^^^^^^^^^^^^^^^^^^^ help: try: `&*(val as *const wasm_bindgen::JsValue as *const Function)` | = note: #[warn(clippy::transmute_ptr_to_ptr)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1061:1 | 1061 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1089:1 | 1089 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1178:1 | 1178 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1267:1 | 1267 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1356:1 | 1356 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1444:1 | 1444 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1573:1 | 1573 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1598:1 | 1598 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1846:1 | 1846 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:1944:1 | 1944 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2291:1 | 2291 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref warning: transmute from a reference to a reference --> crates/js-sys/src/lib.rs:2527:27 | 2527 | Some(unsafe { mem::transmute(val) }) | ^^^^^^^^^^^^^^^^^^^ help: try: `&*(val as *const wasm_bindgen::JsValue as *const Object)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2535:1 | 2535 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2557:1 | 2557 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2576:1 | 2576 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2595:1 | 2595 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2738:1 | 2738 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:2915:1 | 2915 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3000:1 | 3000 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3021:1 | 3021 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3040:1 | 3040 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3129:1 | 3129 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3220:1 | 3220 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3309:1 | 3309 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3398:1 | 3398 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3417:1 | 3417 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3461:1 | 3461 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3543:5 | 3543 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3564:5 | 3564 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3596:5 | 3596 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3617:5 | 3617 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3638:5 | 3638 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3681:5 | 3681 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3730:5 | 3730 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3769:1 | 3769 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:3832:1 | 3832 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref warning: this function has too many arguments (8/7) --> crates/js-sys/src/lib.rs:3832:15 | 3832 | #[wasm_bindgen] | ^ | = note: #[warn(clippy::too_many_arguments)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments warning: transmute from a reference to a reference --> crates/js-sys/src/lib.rs:4295:27 | 4295 | Some(unsafe { mem::transmute(val) }) | ^^^^^^^^^^^^^^^^^^^ help: try: `&*(val as *const wasm_bindgen::JsValue as *const JsString)` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#transmute_ptr_to_ptr warning: this creates an owned instance just for comparison --> crates/js-sys/src/lib.rs:4304:9 | 4304 | String::from(self) == other | ^^^^^^^^^^^^^^^^^^ help: try: `self` | = note: #[warn(clippy::cmp_owned)] on by default = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cmp_owned error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:4359:1 | 4359 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:4503:5 | 4503 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:4547:5 | 4547 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:4598:5 | 4598 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:4648:5 | 4648 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: calls to `std::mem::drop` with a reference instead of an owned value. Dropping a reference does nothing. --> crates/js-sys/src/lib.rs:4691:1 | 4691 | #[wasm_bindgen] | ^^^^^^^^^^^^^^^ | = note: argument has type &wasm_bindgen::JsValue = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#drop_ref error: aborting due to 50 previous errors error: Could not compile `js-sys`. Caused by: process didn't exit successfully: `/Users/misakimakino/.rustup/toolchains/nightly-x86_64-apple-darwin/bin/clippy-driver rustc --crate-name js_sys crates/js-sys/src/lib.rs --color always --crate-type lib --emit=dep-info,metadata -C debuginfo=2 -C metadata=9613c1c50894a9e1 -C extra-filename=-9613c1c50894a9e1 --out-dir /Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps -C incremental=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/incremental -L dependency=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps --extern wasm_bindgen=/Users/misakimakino/Works/clones/fork-wasm-bindgen/wasm-bindgen/target/debug/deps/libwasm_bindgen-923b21ba55b1ad0c.rmeta` (exit code: 1) request-animation-frame $