[Pkg-rust-maintainers] Bug#1106609: rust-hurl ftbfs with libxml 2.14.x from experimental

Matthias Klose doko at debian.org
Tue May 27 07:25:24 BST 2025


Package: src:rust-hurl
Version: 6.0.0-1
Tags: ftbfs sid forky
User: debian-xml-sgml-pkgs at lists.alioth.debian.org
Usertags: libxml2.14

[this bug is NOT targeted to the upcoming trixie release]

[...]
      Running `CARGO=/usr/lib/rust-1.84/bin/cargo 
CARGO_CRATE_NAME=curl_sys 
CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/curl-sys-0.4.67 
CARGO_MANIFEST_PATH=/<<PKGBUILDDIR>>/debian/cargo_registry/curl-sys-0.4.67/Cargo.toml 
CARGO_PKG_AUTHORS='Alex Crichton <alex at alexcrichton.com>' 
CARGO_PKG_DESCRIPTION='Native bindings to the libcurl library' 
CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT CARGO_PKG_LICENSE_FILE='' 
CARGO_PKG_NAME=curl-sys CARGO_PKG_README='' 
CARGO_PKG_REPOSITORY='https://github.com/alexcrichton/curl-rust' 
CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.4.67+curl-8.3.0 
CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=4 
CARGO_PKG_VERSION_PATCH=67 CARGO_PKG_VERSION_PRE='' 
LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps 
OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/curl-sys-6fe16c003246f88c/out 
rustc --crate-name curl_sys --edition=2018 
/<<PKGBUILDDIR>>/debian/cargo_registry/curl-sys-0.4.67/lib.rs 
--error-format=json 
--json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type 
lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 
--cfg 'feature="default"' --cfg 'feature="openssl-sys"' --cfg 
'feature="ssl"' --check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, 
values("default", "http2", "libnghttp2-sys", "ntlm", "openssl-sys", 
"poll_7_68_0", "protocol-ftp", "spnego", "ssl", "static-curl", 
"static-ssl", "upkeep_7_62_0"))' -C metadata=e313e5ace572c22d -C 
extra-filename=-e313e5ace572c22d --out-dir 
/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target 
x86_64-unknown-linux-gnu -L 
dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps 
-L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern 
libc=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/liblibc-5ce1704bd434d021.rmeta 
--extern 
openssl_sys=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libopenssl_sys-9afe390ac0771107.rmeta 
--cap-lints warn -C debuginfo=2 -C strip=none --cap-lints warn -C 
linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-Bsymbolic-functions -C 
link-arg=-flto=auto -C link-arg=-ffat-lto-objects -C 
link-arg=-Wl,-z,relro --remap-path-prefix 
/<<PKGBUILDDIR>>=/usr/share/cargo/registry/hurl-6.0.0 
--remap-path-prefix 
/<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry 
-Cforce-frame-pointers=yes -L native=/usr/lib/x86_64-linux-gnu -l curl`
warning: unexpected `cfg` condition name: `link_libz`
  --> /usr/share/cargo/registry/curl-sys-0.4.67/lib.rs:7:7
   |
7 | #[cfg(link_libz)]
   |       ^^^^^^^^^
   |
   = help: expected names are: `clippy`, `debug_assertions`, `doc`, 
`docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, 
`panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, 
`sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, 
`target_abi`, `target_arch`, `target_endian`, `target_env`, 
`target_family`, `target_feature`, `target_has_atomic`, 
`target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, 
`target_os`, `target_pointer_width`, `target_thread_local`, 
`target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
   = help: consider using a Cargo feature instead
   = help: or consider adding in `Cargo.toml` the `check-cfg` lint 
config for the lint:
            [lints.rust]
            unexpected_cfgs = { level = "warn", check-cfg = 
['cfg(link_libz)'] }
   = help: or consider adding 
`println!("cargo::rustc-check-cfg=cfg(link_libz)");` to the top of the 
`build.rs`
   = note: see 
<https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> 
for more information about checking conditional configuration
   = note: `#[warn(unexpected_cfgs)]` on by default

warning: unexpected `cfg` condition value: `rustls`
   --> /usr/share/cargo/registry/curl-sys-0.4.67/lib.rs:11:7
    |
11 | #[cfg(feature = "rustls")]
    |       ^^^^^^^^^^^^^^^^^^
    |
    = note: expected values for `feature` are: `default`, `http2`, 
`libnghttp2-sys`, `ntlm`, `openssl-sys`, `poll_7_68_0`, `protocol-ftp`, 
`spnego`, `ssl`, `static-curl`, `static-ssl`, and `upkeep_7_62_0`
    = help: consider adding `rustls` as a feature in `Cargo.toml`
    = note: see 
<https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> 
for more information about checking conditional configuration

warning: unexpected `cfg` condition name: `libcurl_vendored`
     --> /usr/share/cargo/registry/curl-sys-0.4.67/lib.rs:1172:10
      |
1172 |     cfg!(libcurl_vendored)
      |          ^^^^^^^^^^^^^^^^
      |
      = help: consider using a Cargo feature instead
      = help: or consider adding in `Cargo.toml` the `check-cfg` lint 
config for the lint:
               [lints.rust]
               unexpected_cfgs = { level = "warn", check-cfg = 
['cfg(libcurl_vendored)'] }
      = help: or consider adding 
`println!("cargo::rustc-check-cfg=cfg(libcurl_vendored)");` to the top 
of the `build.rs`
      = note: see 
<https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> 
for more information about checking conditional configuration

warning: `curl-sys` (lib) generated 3 warnings
    Compiling digest v0.10.7
      Running `CARGO=/usr/lib/rust-1.84/bin/cargo 
CARGO_CRATE_NAME=digest 
CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/digest-0.10.7 
CARGO_MANIFEST_PATH=/<<PKGBUILDDIR>>/debian/cargo_registry/digest-0.10.7/Cargo.toml 
CARGO_PKG_AUTHORS='RustCrypto Developers' CARGO_PKG_DESCRIPTION='Traits 
for cryptographic hash functions and message authentication codes' 
CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE='MIT OR Apache-2.0' 
CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=digest 
CARGO_PKG_README=README.md 
CARGO_PKG_REPOSITORY='https://github.com/RustCrypto/traits' 
CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.10.7 
CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=10 
CARGO_PKG_VERSION_PATCH=7 CARGO_PKG_VERSION_PRE='' 
LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps rustc --crate-name 
digest --edition=2018 
/<<PKGBUILDDIR>>/debian/cargo_registry/digest-0.10.7/src/lib.rs 
--error-format=json 
--json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type 
lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 
--cfg 'feature="alloc"' --cfg 'feature="block-buffer"' --cfg 
'feature="core-api"' --cfg 'feature="default"' --cfg 'feature="std"' 
--check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("alloc", 
"blobby", "block-buffer", "const-oid", "core-api", "default", "dev", 
"mac", "oid", "rand_core", "std", "subtle"))' -C 
metadata=ec9649134cbf989a -C extra-filename=-ec9649134cbf989a --out-dir 
/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target 
x86_64-unknown-linux-gnu -L 
dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps 
-L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern 
block_buffer=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libblock_buffer-f1c8f7e30429c7a1.rmeta 
--extern 
crypto_common=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/libcrypto_common-f78d3d3b83935bcf.rmeta 
--cap-lints warn -C debuginfo=2 -C strip=none --cap-lints warn -C 
linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-Bsymbolic-functions -C 
link-arg=-flto=auto -C link-arg=-ffat-lto-objects -C 
link-arg=-Wl,-z,relro --remap-path-prefix 
/<<PKGBUILDDIR>>=/usr/share/cargo/registry/hurl-6.0.0 
--remap-path-prefix 
/<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry 
-Cforce-frame-pointers=yes`
      Running `CARGO=/usr/lib/rust-1.84/bin/cargo 
CARGO_CRATE_NAME=num_traits 
CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/num-traits-0.2.19 
CARGO_MANIFEST_PATH=/<<PKGBUILDDIR>>/debian/cargo_registry/num-traits-0.2.19/Cargo.toml 
CARGO_PKG_AUTHORS='The Rust Project Developers' 
CARGO_PKG_DESCRIPTION='Numeric traits for generic mathematics' 
CARGO_PKG_HOMEPAGE='https://github.com/rust-num/num-traits' 
CARGO_PKG_LICENSE='MIT OR Apache-2.0' CARGO_PKG_LICENSE_FILE='' 
CARGO_PKG_NAME=num-traits CARGO_PKG_README=README.md 
CARGO_PKG_REPOSITORY='https://github.com/rust-num/num-traits' 
CARGO_PKG_RUST_VERSION=1.60 CARGO_PKG_VERSION=0.2.19 
CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 
CARGO_PKG_VERSION_PATCH=19 CARGO_PKG_VERSION_PRE='' 
LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps 
OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/num-traits-5712e94b16727ac8/out 
rustc --crate-name num_traits --edition=2021 
/<<PKGBUILDDIR>>/debian/cargo_registry/num-traits-0.2.19/src/lib.rs 
--error-format=json 
--json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type 
lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 
--check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values("default", 
"i128", "libm", "std"))' -C metadata=90986dfb6d9da9cb -C 
extra-filename=-90986dfb6d9da9cb --out-dir 
/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target 
x86_64-unknown-linux-gnu -L 
dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps 
-L dependency=/<<PKGBUILDDIR>>/target/debug/deps --cap-lints warn -C 
debuginfo=2 -C strip=none --cap-lints warn -C 
linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-Bsymbolic-functions -C 
link-arg=-flto=auto -C link-arg=-ffat-lto-objects -C 
link-arg=-Wl,-z,relro --remap-path-prefix 
/<<PKGBUILDDIR>>=/usr/share/cargo/registry/hurl-6.0.0 
--remap-path-prefix 
/<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry 
-Cforce-frame-pointers=yes --cfg has_total_cmp`
[libxml 0.3.4] Failed to run rustfmt: No such file or directory (os 
error 2) (non-fatal, continuing)
      Running `CARGO=/usr/lib/rust-1.84/bin/cargo 
CARGO_CRATE_NAME=libxml 
CARGO_MANIFEST_DIR=/<<PKGBUILDDIR>>/debian/cargo_registry/libxml-0.3.4 
CARGO_MANIFEST_PATH=/<<PKGBUILDDIR>>/debian/cargo_registry/libxml-0.3.4/Cargo.toml 
CARGO_PKG_AUTHORS='Andreas Franzén <andreas at devil.se>:Deyan Ginev 
<deyan.ginev at gmail.com>:Jan Frederik Schaefer 
<j.schaefer at jacobs-university.de>' CARGO_PKG_DESCRIPTION='A Rust wrapper 
for libxml2 - the XML C parser and toolkit developed for the Gnome 
project' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=MIT 
CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=libxml 
CARGO_PKG_README=README.md 
CARGO_PKG_REPOSITORY='https://github.com/KWARC/rust-libxml' 
CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.3.4 
CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=3 
CARGO_PKG_VERSION_PATCH=4 CARGO_PKG_VERSION_PRE='' 
LD_LIBRARY_PATH=/<<PKGBUILDDIR>>/target/debug/deps 
OUT_DIR=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/build/libxml-0a6017b3b7acf863/out 
rustc --crate-name libxml --edition=2021 
/<<PKGBUILDDIR>>/debian/cargo_registry/libxml-0.3.4/src/lib.rs 
--error-format=json 
--json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type 
lib --emit=dep-info,metadata,link -C embed-bitcode=no -C debuginfo=2 
--check-cfg 'cfg(docsrs)' --check-cfg 'cfg(feature, values())' -C 
metadata=8034cf5212267f2a -C extra-filename=-8034cf5212267f2a --out-dir 
/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps --target 
x86_64-unknown-linux-gnu -L 
dependency=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps 
-L dependency=/<<PKGBUILDDIR>>/target/debug/deps --extern 
libc=/<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/debug/deps/liblibc-5ce1704bd434d021.rmeta 
--cap-lints warn -C debuginfo=2 -C strip=none --cap-lints warn -C 
linker=x86_64-linux-gnu-gcc -C link-arg=-Wl,-Bsymbolic-functions -C 
link-arg=-flto=auto -C link-arg=-ffat-lto-objects -C 
link-arg=-Wl,-z,relro --remap-path-prefix 
/<<PKGBUILDDIR>>=/usr/share/cargo/registry/hurl-6.0.0 
--remap-path-prefix 
/<<PKGBUILDDIR>>/debian/cargo_registry=/usr/share/cargo/registry 
-Cforce-frame-pointers=yes -L native=/usr/lib/x86_64-linux-gnu -l xml2`
warning: unexpected `cfg` condition name: `has_total_cmp`
     --> /usr/share/cargo/registry/num-traits-0.2.19/src/float.rs:2305:19
      |
2305 |             #[cfg(has_total_cmp)]
      |                   ^^^^^^^^^^^^^
...
2325 | totalorder_impl!(f64, i64, u64, 64);
      | ----------------------------------- in this macro invocation
      |
      = help: expected names are: `clippy`, `debug_assertions`, `doc`, 
`docsrs`, `doctest`, `feature`, `fmt_debug`, `miri`, `overflow_checks`, 
`panic`, `proc_macro`, `relocation_model`, `rustfmt`, `sanitize`, 
`sanitizer_cfi_generalize_pointers`, `sanitizer_cfi_normalize_integers`, 
`target_abi`, `target_arch`, `target_endian`, `target_env`, 
`target_family`, `target_feature`, `target_has_atomic`, 
`target_has_atomic_equal_alignment`, `target_has_atomic_load_store`, 
`target_os`, `target_pointer_width`, `target_thread_local`, 
`target_vendor`, `test`, `ub_checks`, `unix`, and `windows`
      = help: consider using a Cargo feature instead
      = help: or consider adding in `Cargo.toml` the `check-cfg` lint 
config for the lint:
               [lints.rust]
               unexpected_cfgs = { level = "warn", check-cfg = 
['cfg(has_total_cmp)'] }
      = help: or consider adding 
`println!("cargo::rustc-check-cfg=cfg(has_total_cmp)");` to the top of 
the `build.rs`
      = note: see 
<https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> 
for more information about checking conditional configuration
      = note: `#[warn(unexpected_cfgs)]` on by default
      = note: this warning originates in the macro `totalorder_impl` (in 
Nightly builds, run with -Z macro-backtrace for more info)

warning: unexpected `cfg` condition name: `has_total_cmp`
     --> /usr/share/cargo/registry/num-traits-0.2.19/src/float.rs:2311:23
      |
2311 |             #[cfg(not(has_total_cmp))]
      |                       ^^^^^^^^^^^^^
...
2325 | totalorder_impl!(f64, i64, u64, 64);
      | ----------------------------------- in this macro invocation
      |
      = help: consider using a Cargo feature instead
      = help: or consider adding in `Cargo.toml` the `check-cfg` lint 
config for the lint:
               [lints.rust]
               unexpected_cfgs = { level = "warn", check-cfg = 
['cfg(has_total_cmp)'] }
      = help: or consider adding 
`println!("cargo::rustc-check-cfg=cfg(has_total_cmp)");` to the top of 
the `build.rs`
      = note: see 
<https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> 
for more information about checking conditional configuration
      = note: this warning originates in the macro `totalorder_impl` (in 
Nightly builds, run with -Z macro-backtrace for more info)

warning: unexpected `cfg` condition name: `has_total_cmp`
     --> /usr/share/cargo/registry/num-traits-0.2.19/src/float.rs:2305:19
      |
2305 |             #[cfg(has_total_cmp)]
      |                   ^^^^^^^^^^^^^
...
2326 | totalorder_impl!(f32, i32, u32, 32);
      | ----------------------------------- in this macro invocation
      |
      = help: consider using a Cargo feature instead
      = help: or consider adding in `Cargo.toml` the `check-cfg` lint 
config for the lint:
               [lints.rust]
               unexpected_cfgs = { level = "warn", check-cfg = 
['cfg(has_total_cmp)'] }
      = help: or consider adding 
`println!("cargo::rustc-check-cfg=cfg(has_total_cmp)");` to the top of 
the `build.rs`
      = note: see 
<https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> 
for more information about checking conditional configuration
      = note: this warning originates in the macro `totalorder_impl` (in 
Nightly builds, run with -Z macro-backtrace for more info)

warning: unexpected `cfg` condition name: `has_total_cmp`
     --> /usr/share/cargo/registry/num-traits-0.2.19/src/float.rs:2311:23
      |
2311 |             #[cfg(not(has_total_cmp))]
      |                       ^^^^^^^^^^^^^
...
2326 | totalorder_impl!(f32, i32, u32, 32);
      | ----------------------------------- in this macro invocation
      |
      = help: consider using a Cargo feature instead
      = help: or consider adding in `Cargo.toml` the `check-cfg` lint 
config for the lint:
               [lints.rust]
               unexpected_cfgs = { level = "warn", check-cfg = 
['cfg(has_total_cmp)'] }
      = help: or consider adding 
`println!("cargo::rustc-check-cfg=cfg(has_total_cmp)");` to the top of 
the `build.rs`
      = note: see 
<https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> 
for more information about checking conditional configuration
      = note: this warning originates in the macro `totalorder_impl` (in 
Nightly builds, run with -Z macro-backtrace for more info)

error[E0308]: mismatched types
    --> /usr/share/cargo/registry/libxml-0.3.4/src/c_helpers.rs:112:57
     |
112 |     xmlSetStructuredErrorFunc(ctxt as *mut c_void, 
Some(_ignoreInvalidTagsErrorFunc));
     |                                                    ---- 
^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in mutability
     |                                                    |
     |                                                    arguments to 
this enum variant are incorrect
     |
     = note: expected fn pointer `unsafe extern "C" fn(_, *const _xmlError)`
                   found fn item `unsafe extern "C" fn(_, *mut 
_xmlError) {_ignoreInvalidTagsErrorFunc}`
help: the type constructed contains `unsafe extern "C" fn(*mut c_void, 
*mut _xmlError) {_ignoreInvalidTagsErrorFunc}` due to the type of the 
argument passed
    --> /usr/share/cargo/registry/libxml-0.3.4/src/c_helpers.rs:112:52
     |
112 |     xmlSetStructuredErrorFunc(ctxt as *mut c_void, 
Some(_ignoreInvalidTagsErrorFunc));
     | 
^^^^^---------------------------^
     |                                                         |
     |                                                         this 
argument influences the type of `Some`
note: tuple variant defined here
    --> 
/build/rustc-1.84-lMqR1x/rustc-1.84-1.84.1+dfsg0ubuntu1/library/core/src/option.rs:580:5

error[E0308]: mismatched types
    --> /usr/share/cargo/registry/libxml-0.3.4/src/tree/node.rs:418:14
     |
418 |     unsafe { xmlNodeSetContent(self.node_ptr_mut()?, 
c_content.as_bytes().as_ptr()) }
     | 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- 
help: consider using a semicolon here: `;`
     |              |
     |              expected `()`, found `i32`

error[E0308]: mismatched types
   --> /usr/share/cargo/registry/libxml-0.3.4/src/schemas/parser.rs:82:14
    |
82 |         Some(common::structured_error_handler),
    |         ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in 
mutability
    |         |
    |         arguments to this enum variant are incorrect
    |
    = note: expected fn pointer `unsafe extern "C" fn(_, *const _xmlError)`
                  found fn item `unsafe extern "C" fn(_, *mut _xmlError) 
{structured_error_handler}`
help: the type constructed contains `unsafe extern "C" fn(*mut c_void, 
*mut _xmlError) {structured_error_handler}` due to the type of the 
argument passed
   --> /usr/share/cargo/registry/libxml-0.3.4/src/schemas/parser.rs:82:9
    |
82 |         Some(common::structured_error_handler),
    |         ^^^^^--------------------------------^
    |              |
    |              this argument influences the type of `Some`
note: tuple variant defined here
   --> 
/build/rustc-1.84-lMqR1x/rustc-1.84-1.84.1+dfsg0ubuntu1/library/core/src/option.rs:580:5

error[E0308]: mismatched types
    --> 
/usr/share/cargo/registry/libxml-0.3.4/src/schemas/validation.rs:104:14
     |
104 |         Some(common::structured_error_handler),
     |         ---- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ types differ in 
mutability
     |         |
     |         arguments to this enum variant are incorrect
     |
     = note: expected fn pointer `unsafe extern "C" fn(_, *const _xmlError)`
                   found fn item `unsafe extern "C" fn(_, *mut 
_xmlError) {structured_error_handler}`
help: the type constructed contains `unsafe extern "C" fn(*mut c_void, 
*mut _xmlError) {structured_error_handler}` due to the type of the 
argument passed
    --> 
/usr/share/cargo/registry/libxml-0.3.4/src/schemas/validation.rs:104:9
     |
104 |         Some(common::structured_error_handler),
     |         ^^^^^--------------------------------^
     |              |
     |              this argument influences the type of `Some`
note: tuple variant defined here
    --> 
/build/rustc-1.84-lMqR1x/rustc-1.84-1.84.1+dfsg0ubuntu1/library/core/src/option.rs:580:5

For more information about this error, try `rustc --explain E0308`.
error: could not compile `libxml` (lib) due to 4 previous errors



More information about the Pkg-rust-maintainers mailing list