Git Product home page Git Product logo

Comments (3)

Aaron1011 avatar Aaron1011 commented on May 24, 2024 3

All of these errors appear to be caused by the fact that #[derive] is now a normal attribute, and will therefore not be imported by default with #![no_core]. Adding use _core::prelude::v1::derive; to tests/no-core/lib.rs fixed all of the errors for me locally.

The "derive helper attribute is used before it is introduced" lint appears to be spurious. I suspect it's caused by the recovery code in rustc (which is based on checking for a literal 'derive' ident, ignoring resolution) running when #[derive] is not actually in scope.

from pin-project.

Aaron1011 avatar Aaron1011 commented on May 24, 2024 1

Opened rust-lang/rust#81871 to track the spurious legacy_derive_helpers lint

from pin-project.

taiki-e avatar taiki-e commented on May 24, 2024

@Aaron1011 Thanks! I've confirmed that we can fix the problem by the way you mentioned.

from pin-project.

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.