[INFO] cloning repository https://github.com/openharmony/third_party_rust_bindgen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/openharmony/third_party_rust_bindgen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopenharmony%2Fthird_party_rust_bindgen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopenharmony%2Fthird_party_rust_bindgen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f5328e9caf948a2c6db874630ec183051e9e5e7a [INFO] checking openharmony/third_party_rust_bindgen against try#1f5783cbeb5da8b38566d718631d016891e9c912 for pr-142704 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fopenharmony%2Fthird_party_rust_bindgen" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/openharmony/third_party_rust_bindgen on toolchain 1f5783cbeb5da8b38566d718631d016891e9c912 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f5783cbeb5da8b38566d718631d016891e9c912" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/openharmony/third_party_rust_bindgen [INFO] finished tweaking git repo https://github.com/openharmony/third_party_rust_bindgen [INFO] tweaked toml for git repo https://github.com/openharmony/third_party_rust_bindgen written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/openharmony/third_party_rust_bindgen already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f5783cbeb5da8b38566d718631d016891e9c912" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: /workspace/builds/worker-3-tc2/source/bindgen-integration/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded prettyplease v0.2.7 [INFO] [stderr] Downloaded annotate-snippets v0.9.1 [INFO] [stderr] Downloaded clap_complete v4.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+1f5783cbeb5da8b38566d718631d016891e9c912" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 415a804597341339b1782c5cf2599e64eef9113a3025b1994fc5d9df4e716153 [INFO] running `Command { std: "docker" "start" "-a" "415a804597341339b1782c5cf2599e64eef9113a3025b1994fc5d9df4e716153", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "415a804597341339b1782c5cf2599e64eef9113a3025b1994fc5d9df4e716153", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "415a804597341339b1782c5cf2599e64eef9113a3025b1994fc5d9df4e716153", kill_on_drop: false }` [INFO] [stdout] 415a804597341339b1782c5cf2599e64eef9113a3025b1994fc5d9df4e716153 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+1f5783cbeb5da8b38566d718631d016891e9c912" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86c44f1a57dba5a088b126340a3d972d9bf3b3c474dcf2a7627627f59654733b [INFO] running `Command { std: "docker" "start" "-a" "86c44f1a57dba5a088b126340a3d972d9bf3b3c474dcf2a7627627f59654733b", kill_on_drop: false }` [INFO] [stderr] warning: /opt/rustwide/workdir/bindgen-integration/Cargo.toml: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.154 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling tests_expectations v0.0.0 (/opt/rustwide/workdir/bindgen-tests/tests/expectations) [INFO] [stderr] Checking block v0.1.6 [INFO] [stderr] Compiling proc-macro2 v1.0.60 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Checking libloading v0.7.4 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling io-lifetimes v1.0.4 [INFO] [stderr] Compiling rustix v0.37.7 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Checking linux-raw-sys v0.3.8 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Compiling prettyplease v0.2.7 [INFO] [stderr] Compiling syn v1.0.107 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Compiling clang-sys v1.4.0 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking os_str_bytes v6.4.1 [INFO] [stderr] Compiling bindgen v0.70.1 (/opt/rustwide/workdir/bindgen) [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Checking once_cell v1.17.0 [INFO] [stderr] Checking clap_lex v0.3.1 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking fastrand v1.8.0 [INFO] [stderr] Checking minimal-lexical v0.2.1 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking yansi-term v0.1.2 [INFO] [stderr] Checking either v1.8.1 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking syn v2.0.18 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking malloc_buf v0.0.6 [INFO] [stderr] Checking objc v0.2.7 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking regex v1.7.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking annotate-snippets v0.9.1 [INFO] [stderr] Checking bitflags v2.2.1 [INFO] [stderr] Checking shlex v1.3.0 [INFO] [stderr] Checking rustc-hash v1.1.0 [INFO] [stderr] Checking env_logger v0.8.4 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking is-terminal v0.4.7 [INFO] [stderr] Checking tempfile v3.5.0 [INFO] [stderr] Checking cexpr v0.6.0 [INFO] [stderr] Checking quickcheck v1.0.3 [INFO] [stderr] Compiling clap_derive v4.1.0 [INFO] [stderr] Compiling bindgen-tests v0.1.0 (/opt/rustwide/workdir/bindgen-tests) [INFO] [stderr] Compiling cc v1.0.78 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking similar v2.2.1 [INFO] [stderr] Checking owo-colors v3.5.0 [INFO] [stderr] Checking env_logger v0.10.0 [INFO] [stdout] error[E0277]: `CodegenConfig` doesn't implement `std::fmt::Debug` [INFO] [stdout] --> bindgen/options/mod.rs:96:34 [INFO] [stdout] | [INFO] [stdout] 96 | $($(#[doc = $docs])* pub(crate) $field: $ty,)* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ `CodegenConfig` cannot be formatted using `{:?}` [INFO] [stdout] ... [INFO] [stdout] 153 | / options! { [INFO] [stdout] 154 | | /// Types that have been blocklisted and should not appear anywhere in the generated code. [INFO] [stdout] 155 | | blocklisted_types: RegexSet { [INFO] [stdout] 156 | | methods: { [INFO] [stdout] ... | [INFO] [stdout] 2155 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Debug` is not implemented for `CodegenConfig` [INFO] [stdout] = note: add `#[derive(Debug)]` to `CodegenConfig` or manually `impl std::fmt::Debug for CodegenConfig` [INFO] [stdout] = note: this error originates in the derive macro `Debug` which comes from the expansion of the macro `options` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `CodegenConfig` with `#[derive(Debug)]` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bitflags-2.2.1/src/public.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(Debug)] [INFO] [stdout] 18 | $vis struct $BitFlags(<$BitFlags as $crate::__private::PublicFlags>::Internal); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CodegenConfig: Clone` is not satisfied [INFO] [stdout] --> bindgen/options/mod.rs:96:34 [INFO] [stdout] | [INFO] [stdout] 96 | $($(#[doc = $docs])* pub(crate) $field: $ty,)* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `CodegenConfig` [INFO] [stdout] ... [INFO] [stdout] 153 | / options! { [INFO] [stdout] 154 | | /// Types that have been blocklisted and should not appear anywhere in the generated code. [INFO] [stdout] 155 | | blocklisted_types: RegexSet { [INFO] [stdout] 156 | | methods: { [INFO] [stdout] ... | [INFO] [stdout] 2155 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Clone` which comes from the expansion of the macro `options` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `CodegenConfig` with `#[derive(Clone)]` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bitflags-2.2.1/src/public.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(Clone)] [INFO] [stdout] 18 | $vis struct $BitFlags(<$BitFlags as $crate::__private::PublicFlags>::Internal); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0570]: `"fastcall"` is not a supported ABI for the current target [INFO] [stdout] --> bindgen-tests/tests/expectations/tests/mangling-win32.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | / extern "fastcall" { [INFO] [stdout] 20 | | pub fn fast_call_func_no_args() -> ::std::os::raw::c_int; [INFO] [stdout] 21 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0570]: `"fastcall"` is not a supported ABI for the current target [INFO] [stdout] --> bindgen-tests/tests/expectations/tests/mangling-win32.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | / extern "fastcall" { [INFO] [stdout] 23 | | pub fn fast_call_func_many_args( [INFO] [stdout] 24 | | arg1: ::std::os::raw::c_int, [INFO] [stdout] 25 | | arg2: ::std::os::raw::c_int, [INFO] [stdout] 26 | | arg3: ::std::os::raw::c_int, [INFO] [stdout] 27 | | ) -> ::std::os::raw::c_int; [INFO] [stdout] 28 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0570]: `"stdcall"` is not a supported ABI for the current target [INFO] [stdout] --> bindgen-tests/tests/expectations/tests/mangling-win32.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | / extern "stdcall" { [INFO] [stdout] 30 | | pub fn std_call_func_no_args() -> ::std::os::raw::c_int; [INFO] [stdout] 31 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0570]: `"stdcall"` is not a supported ABI for the current target [INFO] [stdout] --> bindgen-tests/tests/expectations/tests/mangling-win32.rs:32:1 [INFO] [stdout] | [INFO] [stdout] 32 | / extern "stdcall" { [INFO] [stdout] 33 | | pub fn std_call_func_many_args( [INFO] [stdout] 34 | | arg1: ::std::os::raw::c_int, [INFO] [stdout] 35 | | arg2: ::std::os::raw::c_int, [INFO] [stdout] 36 | | arg3: ::std::os::raw::c_int, [INFO] [stdout] 37 | | ) -> ::std::os::raw::c_int; [INFO] [stdout] 38 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = help: if you need `extern "stdcall"` on win32 and `extern "C"` everywhere else, use `extern "system"` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0570`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tests_expectations` (test "mangling-win32") due to 4 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:218:22 [INFO] [stdout] | [INFO] [stdout] 218 | .filter_map(|&(flag, derive)| { [INFO] [stdout] | ^^----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | data moved here [INFO] [stdout] | move occurs because `flag` has type `DerivableTraits`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing the pattern binding [INFO] [stdout] | [INFO] [stdout] 218 | .filter_map(|&(ref flag, derive)| { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2548:16 [INFO] [stdout] | [INFO] [stdout] 2548 | if ctx.options().codegen_config.methods() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------- value moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because value has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::methods` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> bindgen/lib.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn methods(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2548:16 [INFO] [stdout] | [INFO] [stdout] 2548 | if ctx.options().codegen_config.methods() { [INFO] [stdout] | ---------------------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2561:16 [INFO] [stdout] | [INFO] [stdout] 2561 | if ctx.options().codegen_config.constructors() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -------------- value moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because value has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::constructors` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> bindgen/lib.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn constructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2561:16 [INFO] [stdout] | [INFO] [stdout] 2561 | if ctx.options().codegen_config.constructors() { [INFO] [stdout] | ---------------------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2579:16 [INFO] [stdout] | [INFO] [stdout] 2579 | if ctx.options().codegen_config.destructors() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------- value moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because value has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::destructors` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> bindgen/lib.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn destructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2579:16 [INFO] [stdout] | [INFO] [stdout] 2579 | if ctx.options().codegen_config.destructors() { [INFO] [stdout] | ---------------------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2849:44 [INFO] [stdout] | [INFO] [stdout] 2849 | MethodKind::Constructor => cc.constructors(), [INFO] [stdout] | ^^ -------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::constructors` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn constructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2849:44 [INFO] [stdout] | [INFO] [stdout] 2849 | MethodKind::Constructor => cc.constructors(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2850:43 [INFO] [stdout] | [INFO] [stdout] 2850 | MethodKind::Destructor => cc.destructors(), [INFO] [stdout] | ^^ ------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::destructors` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn destructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2850:43 [INFO] [stdout] | [INFO] [stdout] 2850 | MethodKind::Destructor => cc.destructors(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2851:57 [INFO] [stdout] | [INFO] [stdout] 2851 | MethodKind::VirtualDestructor { .. } => cc.destructors(), [INFO] [stdout] | ^^ ------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2851:57 [INFO] [stdout] | [INFO] [stdout] 2851 | MethodKind::VirtualDestructor { .. } => cc.destructors(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2854:47 [INFO] [stdout] | [INFO] [stdout] 2854 | MethodKind::Virtual { .. } => cc.methods(), [INFO] [stdout] | ^^ --------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::methods` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn methods(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2854:47 [INFO] [stdout] | [INFO] [stdout] 2854 | MethodKind::Virtual { .. } => cc.methods(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> bindgen/codegen/mod.rs:4331:9 [INFO] [stdout] | [INFO] [stdout] 4331 | item: &Item, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1311:17 [INFO] [stdout] | [INFO] [stdout] 1311 | if !codegen_config.functions() { [INFO] [stdout] | ^^^^^^^^^^^^^^ ----------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::functions` takes ownership of the receiver `self`, which moves `*codegen_config` [INFO] [stdout] --> bindgen/lib.rs:129:22 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn functions(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1311:17 [INFO] [stdout] | [INFO] [stdout] 1311 | if !codegen_config.functions() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1319:16 [INFO] [stdout] | [INFO] [stdout] 1319 | if codegen_config.functions() { [INFO] [stdout] | ^^^^^^^^^^^^^^ ----------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1319:16 [INFO] [stdout] | [INFO] [stdout] 1319 | if codegen_config.functions() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1323:16 [INFO] [stdout] | [INFO] [stdout] 1323 | if codegen_config.types() { [INFO] [stdout] | ^^^^^^^^^^^^^^ ------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::types` takes ownership of the receiver `self`, which moves `*codegen_config` [INFO] [stdout] --> bindgen/lib.rs:134:18 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn types(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1323:16 [INFO] [stdout] | [INFO] [stdout] 1323 | if codegen_config.types() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1327:16 [INFO] [stdout] | [INFO] [stdout] 1327 | if codegen_config.vars() { [INFO] [stdout] | ^^^^^^^^^^^^^^ ------ `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::vars` takes ownership of the receiver `self`, which moves `*codegen_config` [INFO] [stdout] --> bindgen/lib.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn vars(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1327:16 [INFO] [stdout] | [INFO] [stdout] 1327 | if codegen_config.vars() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1331:16 [INFO] [stdout] | [INFO] [stdout] 1331 | if codegen_config.methods() { [INFO] [stdout] | ^^^^^^^^^^^^^^ --------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::methods` takes ownership of the receiver `self`, which moves `*codegen_config` [INFO] [stdout] --> bindgen/lib.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn methods(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1331:16 [INFO] [stdout] | [INFO] [stdout] 1331 | if codegen_config.methods() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1335:16 [INFO] [stdout] | [INFO] [stdout] 1335 | if codegen_config.constructors() { [INFO] [stdout] | ^^^^^^^^^^^^^^ -------------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::constructors` takes ownership of the receiver `self`, which moves `*codegen_config` [INFO] [stdout] --> bindgen/lib.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn constructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1335:16 [INFO] [stdout] | [INFO] [stdout] 1335 | if codegen_config.constructors() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1339:16 [INFO] [stdout] | [INFO] [stdout] 1339 | if codegen_config.destructors() { [INFO] [stdout] | ^^^^^^^^^^^^^^ ------------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::destructors` takes ownership of the receiver `self`, which moves `*codegen_config` [INFO] [stdout] --> bindgen/lib.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn destructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1339:16 [INFO] [stdout] | [INFO] [stdout] 1339 | if codegen_config.destructors() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1345:17 [INFO] [stdout] | [INFO] [stdout] 1345 | if !codegen_config.methods() { [INFO] [stdout] | ^^^^^^^^^^^^^^ --------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1345:17 [INFO] [stdout] | [INFO] [stdout] 1345 | if !codegen_config.methods() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `CodegenConfig` doesn't implement `std::fmt::Debug` [INFO] [stdout] --> bindgen/options/mod.rs:96:34 [INFO] [stdout] | [INFO] [stdout] 96 | $($(#[doc = $docs])* pub(crate) $field: $ty,)* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ `CodegenConfig` cannot be formatted using `{:?}` [INFO] [stdout] ... [INFO] [stdout] 153 | / options! { [INFO] [stdout] 154 | | /// Types that have been blocklisted and should not appear anywhere in the generated code. [INFO] [stdout] 155 | | blocklisted_types: RegexSet { [INFO] [stdout] 156 | | methods: { [INFO] [stdout] ... | [INFO] [stdout] 2155 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Debug` is not implemented for `CodegenConfig` [INFO] [stdout] = note: add `#[derive(Debug)]` to `CodegenConfig` or manually `impl std::fmt::Debug for CodegenConfig` [INFO] [stdout] = note: this error originates in the derive macro `Debug` which comes from the expansion of the macro `options` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `CodegenConfig` with `#[derive(Debug)]` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bitflags-2.2.1/src/public.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(Debug)] [INFO] [stdout] 18 | $vis struct $BitFlags(<$BitFlags as $crate::__private::PublicFlags>::Internal); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `CodegenConfig: Clone` is not satisfied [INFO] [stdout] --> bindgen/options/mod.rs:96:34 [INFO] [stdout] | [INFO] [stdout] 96 | $($(#[doc = $docs])* pub(crate) $field: $ty,)* [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ the trait `Clone` is not implemented for `CodegenConfig` [INFO] [stdout] ... [INFO] [stdout] 153 | / options! { [INFO] [stdout] 154 | | /// Types that have been blocklisted and should not appear anywhere in the generated code. [INFO] [stdout] 155 | | blocklisted_types: RegexSet { [INFO] [stdout] 156 | | methods: { [INFO] [stdout] ... | [INFO] [stdout] 2155 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Clone` which comes from the expansion of the macro `options` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `CodegenConfig` with `#[derive(Clone)]` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/bitflags-2.2.1/src/public.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 + #[derive(Clone)] [INFO] [stdout] 18 | $vis struct $BitFlags(<$BitFlags as $crate::__private::PublicFlags>::Internal); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/item.rs:1012:33 [INFO] [stdout] | [INFO] [stdout] 1012 | ItemKind::Var(_) => cc.vars(), [INFO] [stdout] | ^^ ------ `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::vars` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn vars(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/item.rs:1012:33 [INFO] [stdout] | [INFO] [stdout] 1012 | ItemKind::Var(_) => cc.vars(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/item.rs:1013:34 [INFO] [stdout] | [INFO] [stdout] 1013 | ItemKind::Type(_) => cc.types(), [INFO] [stdout] | ^^ ------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::types` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:134:18 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn types(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/item.rs:1013:34 [INFO] [stdout] | [INFO] [stdout] 1013 | ItemKind::Type(_) => cc.types(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/item.rs:1015:43 [INFO] [stdout] | [INFO] [stdout] 1015 | FunctionKind::Function => cc.functions(), [INFO] [stdout] | ^^ ----------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::functions` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:129:22 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn functions(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/item.rs:1015:43 [INFO] [stdout] | [INFO] [stdout] 1015 | FunctionKind::Function => cc.functions(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/item.rs:1017:21 [INFO] [stdout] | [INFO] [stdout] 1017 | cc.constructors() [INFO] [stdout] | ^^ -------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::constructors` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn constructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/item.rs:1017:21 [INFO] [stdout] | [INFO] [stdout] 1017 | cc.constructors() [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/item.rs:1022:23 [INFO] [stdout] | [INFO] [stdout] 1022 | }) => cc.destructors(), [INFO] [stdout] | ^^ ------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::destructors` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn destructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/item.rs:1022:23 [INFO] [stdout] | [INFO] [stdout] 1022 | }) => cc.destructors(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/item.rs:1026:21 [INFO] [stdout] | [INFO] [stdout] 1026 | cc.methods() [INFO] [stdout] | ^^ --------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::methods` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn methods(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/item.rs:1026:21 [INFO] [stdout] | [INFO] [stdout] 1026 | cc.methods() [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/traversal.rs:226:36 [INFO] [stdout] | [INFO] [stdout] 226 | EdgeKind::TypeReference => cc.types(), [INFO] [stdout] | ^^ ------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::types` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:134:18 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn types(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/traversal.rs:226:36 [INFO] [stdout] | [INFO] [stdout] 226 | EdgeKind::TypeReference => cc.types(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/traversal.rs:227:31 [INFO] [stdout] | [INFO] [stdout] 227 | EdgeKind::InnerVar => cc.vars(), [INFO] [stdout] | ^^ ------ `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::vars` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn vars(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/traversal.rs:227:31 [INFO] [stdout] | [INFO] [stdout] 227 | EdgeKind::InnerVar => cc.vars(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/traversal.rs:228:29 [INFO] [stdout] | [INFO] [stdout] 228 | EdgeKind::Method => cc.methods(), [INFO] [stdout] | ^^ --------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::methods` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn methods(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/traversal.rs:228:29 [INFO] [stdout] | [INFO] [stdout] 228 | EdgeKind::Method => cc.methods(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/traversal.rs:229:34 [INFO] [stdout] | [INFO] [stdout] 229 | EdgeKind::Constructor => cc.constructors(), [INFO] [stdout] | ^^ -------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::constructors` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn constructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/traversal.rs:229:34 [INFO] [stdout] | [INFO] [stdout] 229 | EdgeKind::Constructor => cc.constructors(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/traversal.rs:230:33 [INFO] [stdout] | [INFO] [stdout] 230 | EdgeKind::Destructor => cc.destructors(), [INFO] [stdout] | ^^ ------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::destructors` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn destructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/traversal.rs:230:33 [INFO] [stdout] | [INFO] [stdout] 230 | EdgeKind::Destructor => cc.destructors(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set` [INFO] [stdout] --> bindgen/regex_set.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | set: &RegexSet, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> bindgen/regex_set.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | err: regex::Error, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> bindgen/regex_set.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | name: &'static str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> bindgen/lib.rs:586:33 [INFO] [stdout] | [INFO] [stdout] 586 | fn deprecated_target_diagnostic(target: RustTarget, _options: &BindgenOptions) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bindgen` (lib) due to 29 previous errors; 5 warnings emitted [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:218:22 [INFO] [stdout] | [INFO] [stdout] 218 | .filter_map(|&(flag, derive)| { [INFO] [stdout] | ^^----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | data moved here [INFO] [stdout] | move occurs because `flag` has type `DerivableTraits`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing the pattern binding [INFO] [stdout] | [INFO] [stdout] 218 | .filter_map(|&(ref flag, derive)| { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2548:16 [INFO] [stdout] | [INFO] [stdout] 2548 | if ctx.options().codegen_config.methods() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --------- value moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because value has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::methods` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> bindgen/lib.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn methods(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2548:16 [INFO] [stdout] | [INFO] [stdout] 2548 | if ctx.options().codegen_config.methods() { [INFO] [stdout] | ---------------------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2561:16 [INFO] [stdout] | [INFO] [stdout] 2561 | if ctx.options().codegen_config.constructors() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -------------- value moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because value has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::constructors` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> bindgen/lib.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn constructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2561:16 [INFO] [stdout] | [INFO] [stdout] 2561 | if ctx.options().codegen_config.constructors() { [INFO] [stdout] | ---------------------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2579:16 [INFO] [stdout] | [INFO] [stdout] 2579 | if ctx.options().codegen_config.destructors() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ------------- value moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because value has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::destructors` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> bindgen/lib.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn destructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2579:16 [INFO] [stdout] | [INFO] [stdout] 2579 | if ctx.options().codegen_config.destructors() { [INFO] [stdout] | ---------------------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2849:44 [INFO] [stdout] | [INFO] [stdout] 2849 | MethodKind::Constructor => cc.constructors(), [INFO] [stdout] | ^^ -------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::constructors` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn constructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2849:44 [INFO] [stdout] | [INFO] [stdout] 2849 | MethodKind::Constructor => cc.constructors(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2850:43 [INFO] [stdout] | [INFO] [stdout] 2850 | MethodKind::Destructor => cc.destructors(), [INFO] [stdout] | ^^ ------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::destructors` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn destructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2850:43 [INFO] [stdout] | [INFO] [stdout] 2850 | MethodKind::Destructor => cc.destructors(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2851:57 [INFO] [stdout] | [INFO] [stdout] 2851 | MethodKind::VirtualDestructor { .. } => cc.destructors(), [INFO] [stdout] | ^^ ------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2851:57 [INFO] [stdout] | [INFO] [stdout] 2851 | MethodKind::VirtualDestructor { .. } => cc.destructors(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/codegen/mod.rs:2854:47 [INFO] [stdout] | [INFO] [stdout] 2854 | MethodKind::Virtual { .. } => cc.methods(), [INFO] [stdout] | ^^ --------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::methods` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn methods(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/codegen/mod.rs:2854:47 [INFO] [stdout] | [INFO] [stdout] 2854 | MethodKind::Virtual { .. } => cc.methods(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> bindgen/codegen/mod.rs:4331:9 [INFO] [stdout] | [INFO] [stdout] 4331 | item: &Item, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1311:17 [INFO] [stdout] | [INFO] [stdout] 1311 | if !codegen_config.functions() { [INFO] [stdout] | ^^^^^^^^^^^^^^ ----------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::functions` takes ownership of the receiver `self`, which moves `*codegen_config` [INFO] [stdout] --> bindgen/lib.rs:129:22 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn functions(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1311:17 [INFO] [stdout] | [INFO] [stdout] 1311 | if !codegen_config.functions() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1319:16 [INFO] [stdout] | [INFO] [stdout] 1319 | if codegen_config.functions() { [INFO] [stdout] | ^^^^^^^^^^^^^^ ----------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1319:16 [INFO] [stdout] | [INFO] [stdout] 1319 | if codegen_config.functions() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1323:16 [INFO] [stdout] | [INFO] [stdout] 1323 | if codegen_config.types() { [INFO] [stdout] | ^^^^^^^^^^^^^^ ------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::types` takes ownership of the receiver `self`, which moves `*codegen_config` [INFO] [stdout] --> bindgen/lib.rs:134:18 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn types(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1323:16 [INFO] [stdout] | [INFO] [stdout] 1323 | if codegen_config.types() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1327:16 [INFO] [stdout] | [INFO] [stdout] 1327 | if codegen_config.vars() { [INFO] [stdout] | ^^^^^^^^^^^^^^ ------ `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::vars` takes ownership of the receiver `self`, which moves `*codegen_config` [INFO] [stdout] --> bindgen/lib.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn vars(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1327:16 [INFO] [stdout] | [INFO] [stdout] 1327 | if codegen_config.vars() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1331:16 [INFO] [stdout] | [INFO] [stdout] 1331 | if codegen_config.methods() { [INFO] [stdout] | ^^^^^^^^^^^^^^ --------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::methods` takes ownership of the receiver `self`, which moves `*codegen_config` [INFO] [stdout] --> bindgen/lib.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn methods(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1331:16 [INFO] [stdout] | [INFO] [stdout] 1331 | if codegen_config.methods() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1335:16 [INFO] [stdout] | [INFO] [stdout] 1335 | if codegen_config.constructors() { [INFO] [stdout] | ^^^^^^^^^^^^^^ -------------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::constructors` takes ownership of the receiver `self`, which moves `*codegen_config` [INFO] [stdout] --> bindgen/lib.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn constructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1335:16 [INFO] [stdout] | [INFO] [stdout] 1335 | if codegen_config.constructors() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1339:16 [INFO] [stdout] | [INFO] [stdout] 1339 | if codegen_config.destructors() { [INFO] [stdout] | ^^^^^^^^^^^^^^ ------------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::destructors` takes ownership of the receiver `self`, which moves `*codegen_config` [INFO] [stdout] --> bindgen/lib.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn destructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1339:16 [INFO] [stdout] | [INFO] [stdout] 1339 | if codegen_config.destructors() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*codegen_config` which is behind a shared reference [INFO] [stdout] --> bindgen/options/mod.rs:1345:17 [INFO] [stdout] | [INFO] [stdout] 1345 | if !codegen_config.methods() { [INFO] [stdout] | ^^^^^^^^^^^^^^ --------- `*codegen_config` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*codegen_config` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/options/mod.rs:1345:17 [INFO] [stdout] | [INFO] [stdout] 1345 | if !codegen_config.methods() { [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/item.rs:1012:33 [INFO] [stdout] | [INFO] [stdout] 1012 | ItemKind::Var(_) => cc.vars(), [INFO] [stdout] | ^^ ------ `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::vars` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn vars(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/item.rs:1012:33 [INFO] [stdout] | [INFO] [stdout] 1012 | ItemKind::Var(_) => cc.vars(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/item.rs:1013:34 [INFO] [stdout] | [INFO] [stdout] 1013 | ItemKind::Type(_) => cc.types(), [INFO] [stdout] | ^^ ------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::types` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:134:18 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn types(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/item.rs:1013:34 [INFO] [stdout] | [INFO] [stdout] 1013 | ItemKind::Type(_) => cc.types(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/item.rs:1015:43 [INFO] [stdout] | [INFO] [stdout] 1015 | FunctionKind::Function => cc.functions(), [INFO] [stdout] | ^^ ----------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::functions` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:129:22 [INFO] [stdout] | [INFO] [stdout] 129 | pub fn functions(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/item.rs:1015:43 [INFO] [stdout] | [INFO] [stdout] 1015 | FunctionKind::Function => cc.functions(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/item.rs:1017:21 [INFO] [stdout] | [INFO] [stdout] 1017 | cc.constructors() [INFO] [stdout] | ^^ -------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::constructors` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn constructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/item.rs:1017:21 [INFO] [stdout] | [INFO] [stdout] 1017 | cc.constructors() [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/item.rs:1022:23 [INFO] [stdout] | [INFO] [stdout] 1022 | }) => cc.destructors(), [INFO] [stdout] | ^^ ------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::destructors` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn destructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/item.rs:1022:23 [INFO] [stdout] | [INFO] [stdout] 1022 | }) => cc.destructors(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/item.rs:1026:21 [INFO] [stdout] | [INFO] [stdout] 1026 | cc.methods() [INFO] [stdout] | ^^ --------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::methods` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn methods(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/item.rs:1026:21 [INFO] [stdout] | [INFO] [stdout] 1026 | cc.methods() [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/traversal.rs:226:36 [INFO] [stdout] | [INFO] [stdout] 226 | EdgeKind::TypeReference => cc.types(), [INFO] [stdout] | ^^ ------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::types` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:134:18 [INFO] [stdout] | [INFO] [stdout] 134 | pub fn types(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/traversal.rs:226:36 [INFO] [stdout] | [INFO] [stdout] 226 | EdgeKind::TypeReference => cc.types(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/traversal.rs:227:31 [INFO] [stdout] | [INFO] [stdout] 227 | EdgeKind::InnerVar => cc.vars(), [INFO] [stdout] | ^^ ------ `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::vars` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 139 | pub fn vars(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/traversal.rs:227:31 [INFO] [stdout] | [INFO] [stdout] 227 | EdgeKind::InnerVar => cc.vars(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/traversal.rs:228:29 [INFO] [stdout] | [INFO] [stdout] 228 | EdgeKind::Method => cc.methods(), [INFO] [stdout] | ^^ --------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::methods` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:144:20 [INFO] [stdout] | [INFO] [stdout] 144 | pub fn methods(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/traversal.rs:228:29 [INFO] [stdout] | [INFO] [stdout] 228 | EdgeKind::Method => cc.methods(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/traversal.rs:229:34 [INFO] [stdout] | [INFO] [stdout] 229 | EdgeKind::Constructor => cc.constructors(), [INFO] [stdout] | ^^ -------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::constructors` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:149:25 [INFO] [stdout] | [INFO] [stdout] 149 | pub fn constructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/traversal.rs:229:34 [INFO] [stdout] | [INFO] [stdout] 229 | EdgeKind::Constructor => cc.constructors(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*cc` which is behind a shared reference [INFO] [stdout] --> bindgen/ir/traversal.rs:230:33 [INFO] [stdout] | [INFO] [stdout] 230 | EdgeKind::Destructor => cc.destructors(), [INFO] [stdout] | ^^ ------------- `*cc` moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | move occurs because `*cc` has type `CodegenConfig`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `CodegenConfig::destructors` takes ownership of the receiver `self`, which moves `*cc` [INFO] [stdout] --> bindgen/lib.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn destructors(self) -> bool { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: if `CodegenConfig` implemented `Clone`, you could clone the value [INFO] [stdout] --> bindgen/lib.rs:109:1 [INFO] [stdout] | [INFO] [stdout] 109 | / bitflags! { [INFO] [stdout] 110 | | /// A type used to indicate which kind of items we have to generate. [INFO] [stdout] 111 | | pub struct CodegenConfig: u32 { [INFO] [stdout] 112 | | /// Whether to generate functions. [INFO] [stdout] ... | [INFO] [stdout] 125 | | } [INFO] [stdout] | |_^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: bindgen/ir/traversal.rs:230:33 [INFO] [stdout] | [INFO] [stdout] 230 | EdgeKind::Destructor => cc.destructors(), [INFO] [stdout] | -- you could clone this value [INFO] [stdout] = note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `set` [INFO] [stdout] --> bindgen/regex_set.rs:130:5 [INFO] [stdout] | [INFO] [stdout] 130 | set: &RegexSet, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_set` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> bindgen/regex_set.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | err: regex::Error, [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> bindgen/regex_set.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | name: &'static str, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target` [INFO] [stdout] --> bindgen/lib.rs:586:33 [INFO] [stdout] | [INFO] [stdout] 586 | fn deprecated_target_diagnostic(target: RustTarget, _options: &BindgenOptions) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_target` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bindgen` (lib test) due to 29 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "86c44f1a57dba5a088b126340a3d972d9bf3b3c474dcf2a7627627f59654733b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86c44f1a57dba5a088b126340a3d972d9bf3b3c474dcf2a7627627f59654733b", kill_on_drop: false }` [INFO] [stdout] 86c44f1a57dba5a088b126340a3d972d9bf3b3c474dcf2a7627627f59654733b