Skip to content

[BUG] gtlib-macros: testsuite started failing with 0.20.3 #1526

@werdahias

Description

@werdahias

Bug description
All autopkgtests in Debian for glib-macros started to fail with 0.20.3:

722s error[E0437]: type `Instance` is not a member of trait `ObjectInterface`
722s    --> src/subclass/object.rs:507:9
722s     |
722s 507 |         #[glib::object_interface]
722s     |         ^^^^^^^^^^^^^^^^^^^^^^^^^ not a member of trait `ObjectInterface`
722s     |
722s     = note: this error originates in the attribute macro `glib::object_interface` (in Nightly builds, run with -Z macro-backtrace for more info)
722s 

Today I updated glib-macros to 0.20.4 and got a different error this time:

error[E0716]: temporary value dropped while borrowed
  --> tests/properties.rs:96:43
   |
85 |         #[derive(Properties, Default)]
   |                  ----------
   |                  |        |
   |                  |        temporary value is freed at the end of this statement
   |                  argument requires that borrow lasts for `'static`
...
96 |             #[property(get, set, builder(&<Option<i32>>::static_variant_type()))]
   |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use

For more information about this error, try `rustc --explain E0716`.
error: could not compile `glib-macros` (test "properties") due to 1 previous error

This happens for all features. Let me know if you need more information

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions