https://crates.io/crates/gluon compiles fine for me on Rust stable.
On cargo +nightly
, I get a compile error of:
/.cargo/registry/src/github.com-1ecc6299db9ec823/gluon-0.18.1/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> {
| ++++ ++ ~~ ~~
Is my only choice here to maintain a local fork of gluon, if I still want cargo --timings ?