[Pkg-rust-maintainers] Bug#1038138: rust-diesel: FTBFS in unstable

Steve Langasek steve.langasek at canonical.com
Thu Jun 15 21:44:54 BST 2023


Source: rust-diesel
Version: 2.0.3-1
Severity: serious
Justification: FTBFS
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu mantic

Dear maintainers,

In trying to rebuild rust-diesel with the fix for bug #1038135, I've
discovered the package now fails to build from source in both Debian
unstable and Ubuntu mantic:

[...]
error[E0277]: the trait bound `FieldAttr: ToTokens` is not satisfied
   --> /<<PKGBUILDDIR>>/debian/cargo_registry/diesel_derives-2.0.1/src/attrs.rs:143:6
    |
143 | impl Spanned for FieldAttr {
    |      ^^^^^^^ the trait `ToTokens` is not implemented for `FieldAttr`
    |
    = help: the following other types implement trait `ToTokens`:
              &'a T
              &'a mut T
              Abi
              Abstract
              AndAnd
              AndEq
              AngleBracketedGenericArguments
              As
            and 243 others
    = note: required for `FieldAttr` to implement `quote::spanned::private::Sealed`
note: required by a bound in `quote::spanned::Spanned`
   --> /<<PKGBUILDDIR>>/debian/cargo_registry/quote-1.0.27/src/spanned.rs:6:20
    |
6   | pub trait Spanned: private::Sealed {
    |                    ^^^^^^^^^^^^^^^ required by this bound in `quote::spanned::Spanned`

error[E0277]: the trait bound `StructAttr: ToTokens` is not satisfied
   --> /<<PKGBUILDDIR>>/debian/cargo_registry/diesel_derives-2.0.1/src/attrs.rs:242:6
    |
242 | impl Spanned for StructAttr {
    |      ^^^^^^^ the trait `ToTokens` is not implemented for `StructAttr`
    |
    = help: the following other types implement trait `ToTokens`:
              &'a T
              &'a mut T
              Abi
              Abstract
              AndAnd
              AndEq
              AngleBracketedGenericArguments
              As
            and 243 others
    = note: required for `StructAttr` to implement `quote::spanned::private::Sealed`
note: required by a bound in `quote::spanned::Spanned`
   --> /<<PKGBUILDDIR>>/debian/cargo_registry/quote-1.0.27/src/spanned.rs:6:20
    |
6   | pub trait Spanned: private::Sealed {
    |                    ^^^^^^^^^^^^^^^ required by this bound in `quote::spanned::Spanned`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `diesel_derives` due to 2 previous errors
[...]

  (https://launchpad.net/ubuntu/+source/rust-diesel/2.0.3-1ubuntu1/+build/26310394)

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                   https://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-rust-maintainers/attachments/20230615/1342066f/attachment.sig>


More information about the Pkg-rust-maintainers mailing list