unable to compile with rust nightly or rust stable
hi! I am trying to build the main branch and end up with the following error when compiling with either rustc 1.44.1 or rust nightly. I wonder if I am doing something silly? The gitlab CI tests seem to be working fine, so I must be ;-).
$ cargo build --all-features
...
error[E0478]: lifetime bound not satisfied
--> src/bin/libslirp-helper/main.rs:142:1
|
142 | #[dbus_interface(name = "org.freedesktop.Slirp1.Helper")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lifetime parameter instantiated with the lifetime `'a` as defined on the impl at 143:6
--> src/bin/libslirp-helper/main.rs:143:6
|
143 | impl<'a> Slirp1<'a> {
| ^^
= note: but lifetime parameter must outlive the static lifetime
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0478]: lifetime bound not satisfied
--> src/bin/libslirp-helper/main.rs:154:1
|
154 | #[dbus_interface(name = "org.qemu.VMState1")]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lifetime parameter instantiated with the lifetime `'a` as defined on the impl at 155:6
--> src/bin/libslirp-helper/main.rs:155:6
|
155 | impl<'a> VMState1<'a> {
| ^^
= note: but lifetime parameter must outlive the static lifetime
= note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0478`.
error: could not compile `libslirp`.