[Pkg-rust-maintainers] Bug#1120239: rust-ufmt-macros: FTBFS: error: hiding a lifetime that's elided elsewhere is confusing
Santiago Vila
sanvila at debian.org
Thu Nov 6 12:00:45 GMT 2025
Package: src:rust-ufmt-macros
Version: 0.3.0-1
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202511/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:rust-ufmt-macros, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem cargo
dh_auto_clean -O--buildsystem=cargo
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto =
debian cargo wrapper: rust_type = x86_64-unknown-linux-gnu, gnu_type = x86_64-linux-gnu
debian cargo wrapper: running subprocess (['env', 'RUST_BACKTRACE=1', '/usr/bin/cargo', 'clean', '--verbose', '--verbose'],) {'check': True}
Removed 0 files
dh_autoreconf_clean -O--buildsystem=cargo
dh_clean -O--buildsystem=cargo
debian/rules binary
dh binary --buildsystem cargo
dh_update_autotools_config -O--buildsystem=cargo
dh_autoreconf -O--buildsystem=cargo
dh_auto_configure -O--buildsystem=cargo
debian cargo wrapper: options = ['parallel=2'], profiles = [], parallel = ['-j2'], lto =
[... snipped ...]
|
79 | pub fn iter(&self) -> punctuated::Iter<'_, Field> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/data.rs:90:21
|
90 | pub fn iter_mut(&mut self) -> punctuated::IterMut<Field> {
| ^^^^^^^^^ -------------------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
90 | pub fn iter_mut(&mut self) -> punctuated::IterMut<'_, Field> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/generics.rs:114:24
|
114 | pub fn type_params(&self) -> TypeParams {
| ^^^^^ ---------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
114 | pub fn type_params(&self) -> TypeParams<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/generics.rs:125:28
|
125 | pub fn type_params_mut(&mut self) -> TypeParamsMut {
| ^^^^^^^^^ ------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
125 | pub fn type_params_mut(&mut self) -> TypeParamsMut<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/generics.rs:136:22
|
136 | pub fn lifetimes(&self) -> Lifetimes {
| ^^^^^ --------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
136 | pub fn lifetimes(&self) -> Lifetimes<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/generics.rs:147:26
|
147 | pub fn lifetimes_mut(&mut self) -> LifetimesMut {
| ^^^^^^^^^ ------------ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
147 | pub fn lifetimes_mut(&mut self) -> LifetimesMut<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/generics.rs:158:25
|
158 | pub fn const_params(&self) -> ConstParams {
| ^^^^^ ----------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
158 | pub fn const_params(&self) -> ConstParams<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/generics.rs:169:29
|
169 | pub fn const_params_mut(&mut self) -> ConstParamsMut {
| ^^^^^^^^^ -------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
169 | pub fn const_params_mut(&mut self) -> ConstParamsMut<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/generics.rs:350:27
|
350 | pub fn split_for_impl(&self) -> (ImplGenerics, TypeGenerics, Option<&WhereClause>) {
| ^^^^^ ------------ ------------ ------------ the same lifetime is elided here
| | | |
| | | the same lifetime is hidden here
| | the same lifetime is hidden here
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
350 | pub fn split_for_impl(&self) -> (ImplGenerics<'_>, TypeGenerics<'_>, Option<&WhereClause>) {
| ++++ ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/generics.rs:416:25
|
416 | pub fn as_turbofish(&self) -> Turbofish {
| ^^^^^ --------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
416 | pub fn as_turbofish(&self) -> Turbofish<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/buffer.rs:90:18
|
90 | pub fn begin(&self) -> Cursor {
| ^^^^^ ------ the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
90 | pub fn begin(&self) -> Cursor<'_> {
| ++++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/punctuated.rs:106:17
|
106 | pub fn iter(&self) -> Iter<T> {
| ^^^^^ ------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
106 | pub fn iter(&self) -> Iter<'_, T> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/punctuated.rs:117:21
|
117 | pub fn iter_mut(&mut self) -> IterMut<T> {
| ^^^^^^^^^ ---------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
117 | pub fn iter_mut(&mut self) -> IterMut<'_, T> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/punctuated.rs:128:18
|
128 | pub fn pairs(&self) -> Pairs<T, P> {
| ^^^^^ ----------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
128 | pub fn pairs(&self) -> Pairs<'_, T, P> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/punctuated.rs:137:22
|
137 | pub fn pairs_mut(&mut self) -> PairsMut<T, P> {
| ^^^^^^^^^ -------------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
137 | pub fn pairs_mut(&mut self) -> PairsMut<'_, T, P> {
| +++
warning: hiding a lifetime that's elided elsewhere is confusing
--> /<<PKGBUILDDIR>>/debian/cargo_registry/syn-1.0.109/src/parse.rs:1196:35
|
1196 | fn tokens_to_parse_buffer(tokens: &TokenBuffer) -> ParseBuffer {
| ^^^^^^^^^^^^ ----------- the same lifetime is hidden here
| |
| the lifetime is elided here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
1196 | fn tokens_to_parse_buffer(tokens: &TokenBuffer) -> ParseBuffer<'_> {
| ++++
warning: `syn` (lib) generated 898 warnings (90 duplicates)
Compiling ufmt-macros v0.3.0 (/<<PKGBUILDDIR>>)
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=ufmt_mac [too-long-redacted] 5339d.rlib --extern proc_macro`
Running `CARGO=/usr/bin/cargo CARGO_CRATE_NAME=ufmt_mac [too-long-redacted] 5339d.rlib --extern proc_macro`
error: hiding a lifetime that's elided elsewhere is confusing
--> src/lib.rs:343:26
|
343 | fn unescape(mut literal: &str, span: Span) -> parse::Result<Cow<str>> {
| ^^^^ the lifetime is elided here -------- the same lifetime is hidden here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
note: the lint level is defined here
--> src/lib.rs:3:9
|
3 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(mismatched_lifetime_syntaxes)]` implied by `#[deny(warnings)]`
help: use `'_` for type paths
|
343 | fn unescape(mut literal: &str, span: Span) -> parse::Result<Cow<'_, str>> {
| +++
error: hiding a lifetime that's elided elsewhere is confusing
--> src/lib.rs:377:23
|
377 | fn parse(mut literal: &str, span: Span) -> parse::Result<Vec<Piece>> {
| ^^^^ the lifetime is elided here ----- the same lifetime is hidden here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
377 | fn parse(mut literal: &str, span: Span) -> parse::Result<Vec<Piece<'_>>> {
| ++++
error: hiding a lifetime that's elided elsewhere is confusing
--> src/lib.rs:479:24
|
479 | fn parse_colon(format: &str, span: Span) -> parse::Result<(Piece, &str)> {
| ^^^^ ----- ---- the same lifetime is elided here
| | |
| the lifetime is elided here the same lifetime is hidden here
|
= help: the same lifetime is referred to in inconsistent ways, making the signature confusing
help: use `'_` for type paths
|
479 | fn parse_colon(format: &str, span: Span) -> parse::Result<(Piece<'_>, &str)> {
| ++++
error: could not compile `ufmt-macros` (lib) due to 3 previous errors
Caused by:
process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] rn proc_macro` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
error: could not compile `ufmt-macros` (lib test) due to 3 previous errors
Caused by:
process didn't exit successfully: `CARGO=/usr/bin/cargo CA [too-long-redacted] rn proc_macro` (exit status: 1)
dh_auto_test: error: /usr/share/cargo/bin/cargo test --all returned exit code 101
make[1]: *** [debian/rules:6: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:3: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-rust-maintainers
mailing list