Coder Social home page Coder Social logo

"cargo test" fails on 1.5.0+ about dbus-rs HOT 4 CLOSED

diwic avatar diwic commented on July 23, 2024
"cargo test" fails on 1.5.0+

from dbus-rs.

Comments (4)

diwic avatar diwic commented on July 23, 2024

In addition, at least the note line looks broken:

src/methoddisp.rs:793:88: 797:6 error: `count` does not live long enough
src/methoddisp.rs:788:34: 798:2 note: reference must be valid for the block suffix following statement 0 at 788:33...
src/methoddisp.rs:789:15: 798:2 note: ...but borrowed value is only valid for the block suffix following statement 1 at 789:14

...but moving let count above let f = Factory::new_fnmut() just moves the error too:

src/methoddisp.rs:793:88: 797:6 error: `count` does not live long enough
src/methoddisp.rs:787:27: 798:2 note: reference must be valid for the block at 787:26...
src/methoddisp.rs:788:15: 798:2 note: ...but borrowed value is only valid for the block suffix following statement 0 at 788:14

Related issue that might have caused this: rust-lang/rust#29106

from dbus-rs.

diwic avatar diwic commented on July 23, 2024

@apasel422, since you wrote the code for fixing rust-lang/rust#29106 , if it's not too much to ask, would you mind seeing if it's Rust that's overly conservative here? It looks so to me.

from dbus-rs.

apasel422 avatar apasel422 commented on July 23, 2024

@diwic I'm looking at this now, and don't have a sure answer, but I think it's unlikely that Rust is being overly conservative. I have a hunch that it's variance-related.

from dbus-rs.

diwic avatar diwic commented on July 23, 2024

Fixed as part of tree rewrite.

from dbus-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.