Code Monkey home page Code Monkey logo

Comments (5)

MaikKlein avatar MaikKlein commented on June 8, 2024

env RUSTFLAGS="-Z treat-err-as-bug" RUST_BACKTRACE=1 cargo build revealed that it is most likely the impl trait that causes this error. Sadly I use the impl trait feature pretty often.

from rlsl.

MaikKlein avatar MaikKlein commented on June 8, 2024

#0 [normalize_projection_ty] normalizing Canonical { variables: Slice([CanonicalVarInfo { kind: Region }, CanonicalVarInfo { kind: Region }, CanonicalVarInfo { kind: Region }]), value: ParamEnvAnd { param_env: ParamEnv { caller_bounds: Slice([]), reveal: UserFacing }, value: ProjectionTy { substs: Slice([std::iter::FlatMap<std::slice::Iter<'_, EntryPoint<'_, '_>>, impl std::iter::Iterator, fn(&'_ EntryPoint<'_, '_>) -> impl std::iter::Iterator {EntryPoint<'_, '_>::input_iter}>]), item_def_id: DefId(2/0:1904 ~ core[fc79]::iter[0]::iterator[0]::Iterator[0]::Item[0]) } } }
#1 [mir_const] processing <Entry<'tcx, Input<'tcx>>>::input
#2 [mir_validated] processing <Entry<'tcx, Input<'tcx>>>::input
#3 [borrowck] processing <Entry<'tcx, Input<'tcx>>>::input

from rlsl.

MaikKlein avatar MaikKlein commented on June 8, 2024

After a long debugging session, I could reduce the error to the following lines

    let set: HashSet<_> = entry_points
        .iter()
        .flat_map(EntryPoint::input_iter)
        .collect();

Where input_iter uses the impl trait

from rlsl.

MaikKlein avatar MaikKlein commented on June 8, 2024

Hm this seems to fix the error

    let set: HashSet<_> = entry_points
        .iter()
        .flat_map(|entry| EntryPoint::input_iter(entry))
        .collect();

from rlsl.

MaikKlein avatar MaikKlein commented on June 8, 2024

Fixed by eaf9edf

from rlsl.

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.