Comments (8)
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.
Gluon compiles on newer versions of rust again, I just forgot to close this one out
from gluon.
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.
Reported the ICE upstream at rust-lang/rust#112832
from gluon.
in the meantime can there be a rust-toolchain
file in the source tree
from gluon.
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.
any update on this thread?
from gluon.
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)
- VM - Lifetimes in `DeSeed::new` allow aliased mutable references HOT 1
- Stack overflow on code loading / evaluation
- Incremental compilation / linking? HOT 1
- Sandboxing by disallowing file/network access? HOT 1
- gluon doesn't compile with latest rustc: missing lifetime specifier
- How to check return type of script before trying to convert it? HOT 1
- Runtime error on WASM HOT 3
- Function to convert List to Array or to sort Array by key?
- stateful run_expr
- Rust crate page outdated
- Release a new version? HOT 4
- How to get names of all symbols that a script defined?
- Stack overflow with polymorphic recursion HOT 1
- Gluom and Profile-Guided Optimization (PGO)
- 24 example fails to compile HOT 1
- Report a vulnerability in gluon-lang/gluon HOT 1
- `cargo install gluon_repl` fails to compile HOT 1
- `cargo install gluon_repl` won't compile HOT 1
- Missing 0.18.2 tag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gluon.