[INFO] cloning repository https://github.com/arnetheduck/nbindgen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/arnetheduck/nbindgen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farnetheduck%2Fnbindgen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farnetheduck%2Fnbindgen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e80a85f1505d78eeae78ce33b6f406603be27d35 [INFO] checking arnetheduck/nbindgen/e80a85f1505d78eeae78ce33b6f406603be27d35 against master#f2abf827c128120ed7a874d02973947968c158b8 for pr-132268 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Farnetheduck%2Fnbindgen" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/arnetheduck/nbindgen on toolchain f2abf827c128120ed7a874d02973947968c158b8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f2abf827c128120ed7a874d02973947968c158b8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-0-tc1/source/rust-toolchain.toml [INFO] started tweaking git repo https://github.com/arnetheduck/nbindgen [INFO] finished tweaking git repo https://github.com/arnetheduck/nbindgen [INFO] tweaked toml for git repo https://github.com/arnetheduck/nbindgen written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/arnetheduck/nbindgen 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" "+f2abf827c128120ed7a874d02973947968c158b8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+f2abf827c128120ed7a874d02973947968c158b8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8c5ba83db1f364762b5afe2907b4538b61a7b1a8e5df8af7ddf0d79a0960a063 [INFO] running `Command { std: "docker" "start" "-a" "8c5ba83db1f364762b5afe2907b4538b61a7b1a8e5df8af7ddf0d79a0960a063", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c5ba83db1f364762b5afe2907b4538b61a7b1a8e5df8af7ddf0d79a0960a063", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c5ba83db1f364762b5afe2907b4538b61a7b1a8e5df8af7ddf0d79a0960a063", kill_on_drop: false }` [INFO] [stdout] 8c5ba83db1f364762b5afe2907b4538b61a7b1a8e5df8af7ddf0d79a0960a063 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+f2abf827c128120ed7a874d02973947968c158b8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1aca3f710dc8ebea56707ccba0a345bb6343130e94c513f2c112be5f47cc9464 [INFO] running `Command { std: "docker" "start" "-a" "1aca3f710dc8ebea56707ccba0a345bb6343130e94c513f2c112be5f47cc9464", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.69 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.149 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.189 [INFO] [stderr] Compiling rustix v0.38.19 [INFO] [stderr] Checking hashbrown v0.12.3 [INFO] [stderr] Checking bitflags v2.4.1 [INFO] [stderr] Compiling serde_json v1.0.107 [INFO] [stderr] Checking os_str_bytes v6.6.1 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Checking linux-raw-sys v0.4.10 [INFO] [stderr] Checking textwrap v0.16.0 [INFO] [stderr] Checking instant v0.1.12 [INFO] [stderr] Checking itoa v1.0.9 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking fastrand v2.0.1 [INFO] [stderr] Checking ryu v1.0.15 [INFO] [stderr] Compiling nbindgen v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking smallvec v1.11.1 [INFO] [stderr] Checking scopeguard v1.2.0 [INFO] [stderr] Checking termcolor v1.3.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Checking clap_lex v0.2.4 [INFO] [stderr] Checking log v0.4.20 [INFO] [stderr] Checking heck v0.4.1 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Checking quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.38 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v3.2.25 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Checking tempfile v3.8.0 [INFO] [stderr] Compiling serde_derive v1.0.189 [INFO] [stderr] Compiling serial_test_derive v0.5.1 [INFO] [stderr] Checking serial_test v0.5.1 [INFO] [stderr] Checking toml v0.5.11 [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/builder.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language, Profile}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/cdecl.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bindgen::{Config, Language, reserved}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::ir::PrimitiveType` [INFO] [stdout] --> src/bindgen/cdecl.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use super::ir::PrimitiveType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/builder.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language, Profile}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/cdecl.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bindgen::{Config, Language, reserved}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::ir::PrimitiveType` [INFO] [stdout] --> src/bindgen/cdecl.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use super::ir::PrimitiveType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/annotation.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/cfg.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bindgen::declarationtyperesolver::DeclarationTypeResolver` [INFO] [stdout] --> src/bindgen/ir/constant.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::bindgen::declarationtyperesolver::DeclarationTypeResolver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/documentation.rs:7:79 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::bindgen::config::{Config, DocumentationLength, DocumentationStyle, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeprecatedNoteKind` [INFO] [stdout] --> src/bindgen/ir/enumeration.rs:13:58 [INFO] [stdout] | [INFO] [stdout] 13 | AnnotationSet, AnnotationValue, Cfg, ConditionWrite, DeprecatedNoteKind, Documentation, Field, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/field.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/annotation.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/function.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bindgen::config::{Config, Language, Layout}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/cfg.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bindgen::declarationtyperesolver::DeclarationTypeResolver` [INFO] [stdout] --> src/bindgen/ir/constant.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::bindgen::declarationtyperesolver::DeclarationTypeResolver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/generic_path.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/documentation.rs:7:79 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::bindgen::config::{Config, DocumentationLength, DocumentationStyle, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeprecatedNoteKind` [INFO] [stdout] --> src/bindgen/ir/enumeration.rs:13:58 [INFO] [stdout] | [INFO] [stdout] 13 | AnnotationSet, AnnotationValue, Cfg, ConditionWrite, DeprecatedNoteKind, Documentation, Field, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/opaque.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/ty.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/field.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/function.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bindgen::config::{Config, Language, Layout}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/generic_path.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/typedef.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Field` [INFO] [stdout] --> src/bindgen/ir/typedef.rs:14:56 [INFO] [stdout] | [INFO] [stdout] 14 | AnnotationSet, Cfg, ConditionWrite, Documentation, Field, GenericArgument, GenericParams, Item, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/opaque.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/union.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language, LayoutConfig}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/library.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language, SortKey}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/bindgen/mangle.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/ty.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::writer::Source` [INFO] [stdout] --> src/bindgen/mangle.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use super::writer::Source; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/typedef.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Braces` and `Language` [INFO] [stdout] --> src/bindgen/writer.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Braces, Config, Language}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Field` [INFO] [stdout] --> src/bindgen/ir/typedef.rs:14:56 [INFO] [stdout] | [INFO] [stdout] 14 | AnnotationSet, Cfg, ConditionWrite, Documentation, Field, GenericArgument, GenericParams, Item, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/union.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language, LayoutConfig}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/library.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language, SortKey}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/bindgen/mangle.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::writer::Source` [INFO] [stdout] --> src/bindgen/mangle.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use super::writer::Source; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Braces` and `Language` [INFO] [stdout] --> src/bindgen/writer.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Braces, Config, Language}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_is_pointer` [INFO] [stdout] --> src/bindgen/cdecl.rs:347:17 [INFO] [stdout] | [INFO] [stdout] 347 | let next_is_pointer = iter_rev.peek().map_or(false, |x| x.is_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_is_pointer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_const` [INFO] [stdout] --> src/bindgen/cdecl.rs:351:21 [INFO] [stdout] | [INFO] [stdout] 351 | is_const, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `is_const: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_nullable` [INFO] [stdout] --> src/bindgen/cdecl.rs:352:21 [INFO] [stdout] | [INFO] [stdout] 352 | is_nullable, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `is_nullable: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_ref` [INFO] [stdout] --> src/bindgen/cdecl.rs:353:21 [INFO] [stdout] | [INFO] [stdout] 353 | is_ref, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `is_ref: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_was_pointer` [INFO] [stdout] --> src/bindgen/cdecl.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | let mut last_was_pointer = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_was_pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constant` [INFO] [stdout] --> src/bindgen/cdecl.rs:389:40 [INFO] [stdout] | [INFO] [stdout] 389 | CDeclarator::Array(ref constant) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/bindgen/cdecl.rs:398:21 [INFO] [stdout] | [INFO] [stdout] 398 | ref args, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout` [INFO] [stdout] --> src/bindgen/cdecl.rs:399:21 [INFO] [stdout] | [INFO] [stdout] 399 | ref layout, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `layout: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_return` [INFO] [stdout] --> src/bindgen/cdecl.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | is_return, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `is_return: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bindgen/cdecl.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | let mut last_was_pointer = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_is_pointer` [INFO] [stdout] --> src/bindgen/cdecl.rs:347:17 [INFO] [stdout] | [INFO] [stdout] 347 | let next_is_pointer = iter_rev.peek().map_or(false, |x| x.is_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_is_pointer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_const` [INFO] [stdout] --> src/bindgen/cdecl.rs:351:21 [INFO] [stdout] | [INFO] [stdout] 351 | is_const, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `is_const: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_nullable` [INFO] [stdout] --> src/bindgen/cdecl.rs:352:21 [INFO] [stdout] | [INFO] [stdout] 352 | is_nullable, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `is_nullable: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_ref` [INFO] [stdout] --> src/bindgen/cdecl.rs:353:21 [INFO] [stdout] | [INFO] [stdout] 353 | is_ref, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `is_ref: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_was_pointer` [INFO] [stdout] --> src/bindgen/cdecl.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | let mut last_was_pointer = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_was_pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constant` [INFO] [stdout] --> src/bindgen/cdecl.rs:389:40 [INFO] [stdout] | [INFO] [stdout] 389 | CDeclarator::Array(ref constant) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/bindgen/cdecl.rs:398:21 [INFO] [stdout] | [INFO] [stdout] 398 | ref args, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout` [INFO] [stdout] --> src/bindgen/cdecl.rs:399:21 [INFO] [stdout] | [INFO] [stdout] 399 | ref layout, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `layout: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_return` [INFO] [stdout] --> src/bindgen/cdecl.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | is_return, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `is_return: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bindgen/cdecl.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | let mut last_was_pointer = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/bindgen/ir/cfg.rs:332:37 [INFO] [stdout] | [INFO] [stdout] 332 | fn write_after(&self, config: &Config, out: &mut SourceWriter) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inline_tag_field` [INFO] [stdout] --> src/bindgen/ir/enumeration.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | inline_tag_field: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inline_tag_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/bindgen/ir/cfg.rs:332:37 [INFO] [stdout] | [INFO] [stdout] 332 | fn write_after(&self, config: &Config, out: &mut SourceWriter) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inline_tag_field` [INFO] [stdout] --> src/bindgen/ir/enumeration.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | inline_tag_field: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inline_tag_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bindgen/cargo/cargo_lock.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | Io(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 14 | Io(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bindgen/cargo/cargo_lock.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Toml(toml::de::Error), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | Toml(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `typedef` is never used [INFO] [stdout] --> src/bindgen/config.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 52 | impl Language { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 53 | pub(crate) fn typedef(self) -> &'static str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `derive_constructor`, `derive_lt`, `derive_lte`, `derive_gt`, `derive_gte`, and `derive_ostream` are never used [INFO] [stdout] --> src/bindgen/config.rs:453:19 [INFO] [stdout] | [INFO] [stdout] 452 | impl StructConfig { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 453 | pub(crate) fn derive_constructor(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub(crate) fn derive_lt(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 477 | pub(crate) fn derive_lte(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 483 | pub(crate) fn derive_gt(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 489 | pub(crate) fn derive_gte(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 495 | pub(crate) fn derive_ostream(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `enum_class` is never used [INFO] [stdout] --> src/bindgen/config.rs:629:19 [INFO] [stdout] | [INFO] [stdout] 580 | impl EnumConfig { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 629 | pub(crate) fn enum_class(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_str` is never used [INFO] [stdout] --> src/bindgen/declarationtyperesolver.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl DeclarationType { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 10 | pub fn to_str(self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Enum` is never constructed [INFO] [stdout] --> src/bindgen/ir/annotation.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum DeprecatedNoteKind { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 45 | Enum, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_be_constexpr` and `has_pointer_casts` are never used [INFO] [stdout] --> src/bindgen/ir/constant.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl Literal { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 186 | fn can_be_constexpr(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | fn has_pointer_casts(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `documentation` is never read [INFO] [stdout] --> src/bindgen/ir/constant.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 552 | pub struct Constant { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 559 | pub documentation: Documentation, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Constant` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_declaration` is never used [INFO] [stdout] --> src/bindgen/ir/constant.rs:664:12 [INFO] [stdout] | [INFO] [stdout] 663 | impl Constant { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 664 | pub fn write_declaration( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_with_default` is never used [INFO] [stdout] --> src/bindgen/ir/generic_path.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl GenericParams { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn write_with_default(&self, config: &Config, out: &mut SourceWriter) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `documentation` is never read [INFO] [stdout] --> src/bindgen/ir/global.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Static { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub documentation: Documentation, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Static` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `emit_bitflags_binop` is never used [INFO] [stdout] --> src/bindgen/ir/structure.rs:206:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Struct { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 206 | fn emit_bitflags_binop( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_cmp_order` is never used [INFO] [stdout] --> src/bindgen/ir/ty.rs:302:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl PrimitiveType { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 302 | fn can_cmp_order(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_ptr` and `can_cmp_order` are never used [INFO] [stdout] --> src/bindgen/ir/ty.rs:547:12 [INFO] [stdout] | [INFO] [stdout] 411 | impl Type { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 547 | pub fn is_ptr(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 985 | pub fn can_cmp_order(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bindgen/cargo/cargo_lock.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | Io(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 14 | Io(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bindgen/cargo/cargo_lock.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Toml(toml::de::Error), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | Toml(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `typedef` is never used [INFO] [stdout] --> src/bindgen/config.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 52 | impl Language { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 53 | pub(crate) fn typedef(self) -> &'static str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `derive_constructor`, `derive_lt`, `derive_lte`, `derive_gt`, `derive_gte`, and `derive_ostream` are never used [INFO] [stdout] --> src/bindgen/config.rs:453:19 [INFO] [stdout] | [INFO] [stdout] 452 | impl StructConfig { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 453 | pub(crate) fn derive_constructor(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub(crate) fn derive_lt(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 477 | pub(crate) fn derive_lte(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 483 | pub(crate) fn derive_gt(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 489 | pub(crate) fn derive_gte(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 495 | pub(crate) fn derive_ostream(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `enum_class` is never used [INFO] [stdout] --> src/bindgen/config.rs:629:19 [INFO] [stdout] | [INFO] [stdout] 580 | impl EnumConfig { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 629 | pub(crate) fn enum_class(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_str` is never used [INFO] [stdout] --> src/bindgen/declarationtyperesolver.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl DeclarationType { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 10 | pub fn to_str(self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Enum` is never constructed [INFO] [stdout] --> src/bindgen/ir/annotation.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum DeprecatedNoteKind { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 45 | Enum, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_be_constexpr` and `has_pointer_casts` are never used [INFO] [stdout] --> src/bindgen/ir/constant.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl Literal { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 186 | fn can_be_constexpr(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | fn has_pointer_casts(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `documentation` is never read [INFO] [stdout] --> src/bindgen/ir/constant.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 552 | pub struct Constant { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 559 | pub documentation: Documentation, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Constant` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_declaration` is never used [INFO] [stdout] --> src/bindgen/ir/constant.rs:664:12 [INFO] [stdout] | [INFO] [stdout] 663 | impl Constant { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 664 | pub fn write_declaration( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_with_default` is never used [INFO] [stdout] --> src/bindgen/ir/generic_path.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl GenericParams { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn write_with_default(&self, config: &Config, out: &mut SourceWriter) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `documentation` is never read [INFO] [stdout] --> src/bindgen/ir/global.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Static { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub documentation: Documentation, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Static` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `emit_bitflags_binop` is never used [INFO] [stdout] --> src/bindgen/ir/structure.rs:206:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Struct { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 206 | fn emit_bitflags_binop( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_cmp_order` is never used [INFO] [stdout] --> src/bindgen/ir/ty.rs:302:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl PrimitiveType { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 302 | fn can_cmp_order(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_ptr` and `can_cmp_order` are never used [INFO] [stdout] --> src/bindgen/ir/ty.rs:547:12 [INFO] [stdout] | [INFO] [stdout] 411 | impl Type { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 547 | pub fn is_ptr(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 985 | pub fn can_cmp_order(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nbindgen::*` [INFO] [stdout] --> tests/tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use nbindgen::*; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/builder.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language, Profile}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/cdecl.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bindgen::{Config, Language, reserved}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::ir::PrimitiveType` [INFO] [stdout] --> src/bindgen/cdecl.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use super::ir::PrimitiveType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/annotation.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/cfg.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bindgen::declarationtyperesolver::DeclarationTypeResolver` [INFO] [stdout] --> src/bindgen/ir/constant.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::bindgen::declarationtyperesolver::DeclarationTypeResolver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/documentation.rs:7:79 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::bindgen::config::{Config, DocumentationLength, DocumentationStyle, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeprecatedNoteKind` [INFO] [stdout] --> src/bindgen/ir/enumeration.rs:13:58 [INFO] [stdout] | [INFO] [stdout] 13 | AnnotationSet, AnnotationValue, Cfg, ConditionWrite, DeprecatedNoteKind, Documentation, Field, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/field.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/function.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bindgen::config::{Config, Language, Layout}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/generic_path.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/opaque.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/ty.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/typedef.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Field` [INFO] [stdout] --> src/bindgen/ir/typedef.rs:14:56 [INFO] [stdout] | [INFO] [stdout] 14 | AnnotationSet, Cfg, ConditionWrite, Documentation, Field, GenericArgument, GenericParams, Item, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/union.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language, LayoutConfig}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/library.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language, SortKey}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/bindgen/mangle.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::writer::Source` [INFO] [stdout] --> src/bindgen/mangle.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use super::writer::Source; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Braces` and `Language` [INFO] [stdout] --> src/bindgen/writer.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Braces, Config, Language}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/builder.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language, Profile}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/cdecl.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bindgen::{Config, Language, reserved}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::ir::PrimitiveType` [INFO] [stdout] --> src/bindgen/cdecl.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use super::ir::PrimitiveType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/annotation.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/cfg.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::bindgen::declarationtyperesolver::DeclarationTypeResolver` [INFO] [stdout] --> src/bindgen/ir/constant.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::bindgen::declarationtyperesolver::DeclarationTypeResolver; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/documentation.rs:7:79 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::bindgen::config::{Config, DocumentationLength, DocumentationStyle, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DeprecatedNoteKind` [INFO] [stdout] --> src/bindgen/ir/enumeration.rs:13:58 [INFO] [stdout] | [INFO] [stdout] 13 | AnnotationSet, AnnotationValue, Cfg, ConditionWrite, DeprecatedNoteKind, Documentation, Field, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/field.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/function.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bindgen::config::{Config, Language, Layout}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/generic_path.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/opaque.rs:7:38 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/ty.rs:11:38 [INFO] [stdout] | [INFO] [stdout] 11 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/typedef.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::bindgen::config::{Config, Language}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Field` [INFO] [stdout] --> src/bindgen/ir/typedef.rs:14:56 [INFO] [stdout] | [INFO] [stdout] 14 | AnnotationSet, Cfg, ConditionWrite, Documentation, Field, GenericArgument, GenericParams, Item, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/ir/union.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language, LayoutConfig}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Language` [INFO] [stdout] --> src/bindgen/library.rs:9:38 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Config, Language, SortKey}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt` [INFO] [stdout] --> src/bindgen/mangle.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::fmt; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::writer::Source` [INFO] [stdout] --> src/bindgen/mangle.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use super::writer::Source; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Braces` and `Language` [INFO] [stdout] --> src/bindgen/writer.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::bindgen::config::{Braces, Config, Language}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_is_pointer` [INFO] [stdout] --> src/bindgen/cdecl.rs:347:17 [INFO] [stdout] | [INFO] [stdout] 347 | let next_is_pointer = iter_rev.peek().map_or(false, |x| x.is_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_is_pointer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_const` [INFO] [stdout] --> src/bindgen/cdecl.rs:351:21 [INFO] [stdout] | [INFO] [stdout] 351 | is_const, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `is_const: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_nullable` [INFO] [stdout] --> src/bindgen/cdecl.rs:352:21 [INFO] [stdout] | [INFO] [stdout] 352 | is_nullable, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `is_nullable: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_ref` [INFO] [stdout] --> src/bindgen/cdecl.rs:353:21 [INFO] [stdout] | [INFO] [stdout] 353 | is_ref, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `is_ref: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_was_pointer` [INFO] [stdout] --> src/bindgen/cdecl.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | let mut last_was_pointer = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_was_pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constant` [INFO] [stdout] --> src/bindgen/cdecl.rs:389:40 [INFO] [stdout] | [INFO] [stdout] 389 | CDeclarator::Array(ref constant) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/bindgen/cdecl.rs:398:21 [INFO] [stdout] | [INFO] [stdout] 398 | ref args, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout` [INFO] [stdout] --> src/bindgen/cdecl.rs:399:21 [INFO] [stdout] | [INFO] [stdout] 399 | ref layout, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `layout: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_return` [INFO] [stdout] --> src/bindgen/cdecl.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | is_return, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `is_return: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bindgen/cdecl.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | let mut last_was_pointer = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `next_is_pointer` [INFO] [stdout] --> src/bindgen/cdecl.rs:347:17 [INFO] [stdout] | [INFO] [stdout] 347 | let next_is_pointer = iter_rev.peek().map_or(false, |x| x.is_ptr()); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_next_is_pointer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_const` [INFO] [stdout] --> src/bindgen/cdecl.rs:351:21 [INFO] [stdout] | [INFO] [stdout] 351 | is_const, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `is_const: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_nullable` [INFO] [stdout] --> src/bindgen/cdecl.rs:352:21 [INFO] [stdout] | [INFO] [stdout] 352 | is_nullable, [INFO] [stdout] | ^^^^^^^^^^^ help: try ignoring the field: `is_nullable: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_ref` [INFO] [stdout] --> src/bindgen/cdecl.rs:353:21 [INFO] [stdout] | [INFO] [stdout] 353 | is_ref, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `is_ref: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_was_pointer` [INFO] [stdout] --> src/bindgen/cdecl.rs:381:17 [INFO] [stdout] | [INFO] [stdout] 381 | let mut last_was_pointer = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_was_pointer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `constant` [INFO] [stdout] --> src/bindgen/cdecl.rs:389:40 [INFO] [stdout] | [INFO] [stdout] 389 | CDeclarator::Array(ref constant) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_constant` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/bindgen/cdecl.rs:398:21 [INFO] [stdout] | [INFO] [stdout] 398 | ref args, [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `layout` [INFO] [stdout] --> src/bindgen/cdecl.rs:399:21 [INFO] [stdout] | [INFO] [stdout] 399 | ref layout, [INFO] [stdout] | ^^^^^^^^^^ help: try ignoring the field: `layout: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_return` [INFO] [stdout] --> src/bindgen/cdecl.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | is_return, [INFO] [stdout] | ^^^^^^^^^ help: try ignoring the field: `is_return: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bindgen/cdecl.rs:381:13 [INFO] [stdout] | [INFO] [stdout] 381 | let mut last_was_pointer = false; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/bindgen/ir/cfg.rs:332:37 [INFO] [stdout] | [INFO] [stdout] 332 | fn write_after(&self, config: &Config, out: &mut SourceWriter) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inline_tag_field` [INFO] [stdout] --> src/bindgen/ir/enumeration.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | inline_tag_field: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inline_tag_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `config` [INFO] [stdout] --> src/bindgen/ir/cfg.rs:332:37 [INFO] [stdout] | [INFO] [stdout] 332 | fn write_after(&self, config: &Config, out: &mut SourceWriter) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_config` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `inline_tag_field` [INFO] [stdout] --> src/bindgen/ir/enumeration.rs:112:13 [INFO] [stdout] | [INFO] [stdout] 112 | inline_tag_field: bool, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_inline_tag_field` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bindgen/cargo/cargo_lock.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | Io(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 14 | Io(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bindgen/cargo/cargo_lock.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Toml(toml::de::Error), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | Toml(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `typedef` is never used [INFO] [stdout] --> src/bindgen/config.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 52 | impl Language { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 53 | pub(crate) fn typedef(self) -> &'static str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `derive_constructor`, `derive_lt`, `derive_lte`, `derive_gt`, `derive_gte`, and `derive_ostream` are never used [INFO] [stdout] --> src/bindgen/config.rs:453:19 [INFO] [stdout] | [INFO] [stdout] 452 | impl StructConfig { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 453 | pub(crate) fn derive_constructor(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub(crate) fn derive_lt(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 477 | pub(crate) fn derive_lte(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 483 | pub(crate) fn derive_gt(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 489 | pub(crate) fn derive_gte(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 495 | pub(crate) fn derive_ostream(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `enum_class` is never used [INFO] [stdout] --> src/bindgen/config.rs:629:19 [INFO] [stdout] | [INFO] [stdout] 580 | impl EnumConfig { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 629 | pub(crate) fn enum_class(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_str` is never used [INFO] [stdout] --> src/bindgen/declarationtyperesolver.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl DeclarationType { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 10 | pub fn to_str(self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Enum` is never constructed [INFO] [stdout] --> src/bindgen/ir/annotation.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum DeprecatedNoteKind { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 45 | Enum, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_be_constexpr` and `has_pointer_casts` are never used [INFO] [stdout] --> src/bindgen/ir/constant.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl Literal { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 186 | fn can_be_constexpr(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | fn has_pointer_casts(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `documentation` is never read [INFO] [stdout] --> src/bindgen/ir/constant.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 552 | pub struct Constant { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 559 | pub documentation: Documentation, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Constant` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_declaration` is never used [INFO] [stdout] --> src/bindgen/ir/constant.rs:664:12 [INFO] [stdout] | [INFO] [stdout] 663 | impl Constant { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 664 | pub fn write_declaration( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_with_default` is never used [INFO] [stdout] --> src/bindgen/ir/generic_path.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl GenericParams { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn write_with_default(&self, config: &Config, out: &mut SourceWriter) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `documentation` is never read [INFO] [stdout] --> src/bindgen/ir/global.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Static { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub documentation: Documentation, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Static` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `emit_bitflags_binop` is never used [INFO] [stdout] --> src/bindgen/ir/structure.rs:206:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Struct { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 206 | fn emit_bitflags_binop( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_cmp_order` is never used [INFO] [stdout] --> src/bindgen/ir/ty.rs:302:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl PrimitiveType { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 302 | fn can_cmp_order(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_ptr` and `can_cmp_order` are never used [INFO] [stdout] --> src/bindgen/ir/ty.rs:547:12 [INFO] [stdout] | [INFO] [stdout] 411 | impl Type { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 547 | pub fn is_ptr(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 985 | pub fn can_cmp_order(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pop_set_spaces` is never used [INFO] [stdout] --> src/bindgen/writer.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl<'a, F: Write> SourceWriter<'a, F> { [INFO] [stdout] | -------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn pop_set_spaces(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bindgen/cargo/cargo_lock.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | Io(io::Error), [INFO] [stdout] | -- ^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 14 | Io(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/bindgen/cargo/cargo_lock.rs:16:10 [INFO] [stdout] | [INFO] [stdout] 16 | Toml(toml::de::Error), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 16 | Toml(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `typedef` is never used [INFO] [stdout] --> src/bindgen/config.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 52 | impl Language { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 53 | pub(crate) fn typedef(self) -> &'static str { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `derive_constructor`, `derive_lt`, `derive_lte`, `derive_gt`, `derive_gte`, and `derive_ostream` are never used [INFO] [stdout] --> src/bindgen/config.rs:453:19 [INFO] [stdout] | [INFO] [stdout] 452 | impl StructConfig { [INFO] [stdout] | ----------------- methods in this implementation [INFO] [stdout] 453 | pub(crate) fn derive_constructor(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 471 | pub(crate) fn derive_lt(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 477 | pub(crate) fn derive_lte(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 483 | pub(crate) fn derive_gt(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 489 | pub(crate) fn derive_gte(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 495 | pub(crate) fn derive_ostream(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `enum_class` is never used [INFO] [stdout] --> src/bindgen/config.rs:629:19 [INFO] [stdout] | [INFO] [stdout] 580 | impl EnumConfig { [INFO] [stdout] | --------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 629 | pub(crate) fn enum_class(&self, annotations: &AnnotationSet) -> bool { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_str` is never used [INFO] [stdout] --> src/bindgen/declarationtyperesolver.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl DeclarationType { [INFO] [stdout] | -------------------- method in this implementation [INFO] [stdout] 10 | pub fn to_str(self) -> &'static str { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Enum` is never constructed [INFO] [stdout] --> src/bindgen/ir/annotation.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 42 | pub enum DeprecatedNoteKind { [INFO] [stdout] | ------------------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 45 | Enum, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `can_be_constexpr` and `has_pointer_casts` are never used [INFO] [stdout] --> src/bindgen/ir/constant.rs:186:8 [INFO] [stdout] | [INFO] [stdout] 111 | impl Literal { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 186 | fn can_be_constexpr(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 215 | fn has_pointer_casts(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `documentation` is never read [INFO] [stdout] --> src/bindgen/ir/constant.rs:559:9 [INFO] [stdout] | [INFO] [stdout] 552 | pub struct Constant { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 559 | pub documentation: Documentation, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Constant` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_declaration` is never used [INFO] [stdout] --> src/bindgen/ir/constant.rs:664:12 [INFO] [stdout] | [INFO] [stdout] 663 | impl Constant { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] 664 | pub fn write_declaration( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `write_with_default` is never used [INFO] [stdout] --> src/bindgen/ir/generic_path.rs:128:12 [INFO] [stdout] | [INFO] [stdout] 65 | impl GenericParams { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 128 | pub fn write_with_default(&self, config: &Config, out: &mut SourceWriter) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `documentation` is never read [INFO] [stdout] --> src/bindgen/ir/global.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Static { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 23 | pub documentation: Documentation, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Static` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `emit_bitflags_binop` is never used [INFO] [stdout] --> src/bindgen/ir/structure.rs:206:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Struct { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 206 | fn emit_bitflags_binop( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `can_cmp_order` is never used [INFO] [stdout] --> src/bindgen/ir/ty.rs:302:8 [INFO] [stdout] | [INFO] [stdout] 53 | impl PrimitiveType { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 302 | fn can_cmp_order(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `is_ptr` and `can_cmp_order` are never used [INFO] [stdout] --> src/bindgen/ir/ty.rs:547:12 [INFO] [stdout] | [INFO] [stdout] 411 | impl Type { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 547 | pub fn is_ptr(&self) -> bool { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 985 | pub fn can_cmp_order(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pop_set_spaces` is never used [INFO] [stdout] --> src/bindgen/writer.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl<'a, F: Write> SourceWriter<'a, F> { [INFO] [stdout] | -------------------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 121 | pub fn pop_set_spaces(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.12s [INFO] running `Command { std: "docker" "inspect" "1aca3f710dc8ebea56707ccba0a345bb6343130e94c513f2c112be5f47cc9464", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1aca3f710dc8ebea56707ccba0a345bb6343130e94c513f2c112be5f47cc9464", kill_on_drop: false }` [INFO] [stdout] 1aca3f710dc8ebea56707ccba0a345bb6343130e94c513f2c112be5f47cc9464