Giter Club home page Giter Club logo

Comments (8)

frehberg avatar frehberg commented on June 12, 2024 1

Workaround:

Sticking to the specific rust-compiler version 1.69, the code compiles

Add the following file to the project root ./rust-toolchain.toml

[toolchain]
channel = "1.69"

from gluon.

Marwes avatar Marwes commented on June 12, 2024 1

Gluon compiles on newer versions of rust again, I just forgot to close this one out

from gluon.

frehberg avatar frehberg commented on June 12, 2024

master build error with rustc 1.69.0 (84c898d65 2023-04-16)

   Compiling gluon v0.18.1 (.../3rdpary/gluon)
   Compiling gluon_parser v0.18.0 (.../3rdpary/gluon/parser)
error[E0106]: missing lifetime specifier
   --> src/query.rs:808:57
    |
808 | pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
    |                        -----------------------          ^^ expected named lifetime parameter
    |
    = help: this function's return type contains a borrowed value, but the signature does not say which one of `env`'s 2 lifetimes it is borrowed from
help: consider introducing a named lifetime parameter
    |
808 | pub(crate) fn env<'a>(env: &'a (dyn Compilation + 'a)) -> Env<&'a CompilerDatabase> {
    |                  ++++       ++                    ~~           ~~

For more information about this error, try `rustc --explain E0106`.
error: could not compile `gluon` due to previous error

from gluon.

Marwes avatar Marwes commented on June 12, 2024

Reported the ICE upstream at rust-lang/rust#112832

from gluon.

lockbox avatar lockbox commented on June 12, 2024

in the meantime can there be a rust-toolchain file in the source tree

from gluon.

sheosi avatar sheosi commented on June 12, 2024

FWIW, using Gluon on a project with Rust 1.71 does not compile either (though no compiler panics at least):

error[E0308]: mismatched types
    --> /home/sergio/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gluon_base-0.18.0/src/types/mod.rs:1042:24
     |
1042 | const _: [(); 8 * 6] = [(); std::mem::size_of::<Type<Symbol, ArcType>>()];
     |               -----    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an array with a fixed size of 48 elements, found one with 40 elements
     |               |
     |               help: consider specifying the actual array length: `40`

from gluon.

chenrui333 avatar chenrui333 commented on June 12, 2024

any update on this thread?

from gluon.

pillowtrucker avatar pillowtrucker commented on June 12, 2024

seems to work on current nightly ? both the gluon-repl package and the head of this repository build just fine on 1.76

from gluon.

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.