gluon-lang / gluon

A static, type inferred and embeddable language written in Rust.
https://gluon-lang.org
MIT License
3.2k stars 145 forks source link

gluon doesn't compile with latest rustc: missing lifetime specifier #938

Closed Boscop closed 1 year ago

Boscop commented 1 year ago
    Checking gluon v0.18.1 (https://github.com/gluon-lang/gluon#aed14859)
error: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: missing lifetime specifier
error: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: Errors occurred in .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs from external crate
error: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: Macro text: pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
error: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: expected named lifetime parameter
error: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: Errors occurred in .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs from external crate
error: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: Macro text: pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
help: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: 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: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: Errors occurred in .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs from external crate
help: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: Macro text: pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
help: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: consider introducing a named lifetime parameter
help: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: Errors occurred in .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs from external crate
help: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: Macro text: pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
help: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: consider introducing a named lifetime parameter
help: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: Errors occurred in .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs from external crate
help: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: Macro text: pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
help: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: consider introducing a named lifetime parameter
help: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: Errors occurred in .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs from external crate
help: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: Macro text: pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
help: .cargo\registry\src\github.com-1ecc6299db9ec823\gluon-0.18.1\src\query.rs:808: consider introducing a named lifetime parameter
error: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: missing lifetime specifier
error: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: Errors occurred in .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs from external crate
error: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: Macro text: pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
error: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: expected named lifetime parameter
error: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: Errors occurred in .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs from external crate
error: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: Macro text: pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
help: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: 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: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: Errors occurred in .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs from external crate
help: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: Macro text: pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
help: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: consider introducing a named lifetime parameter
help: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: Errors occurred in .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs from external crate
help: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: Macro text: pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
help: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: consider introducing a named lifetime parameter
help: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: Errors occurred in .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs from external crate
help: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: Macro text: pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
help: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: consider introducing a named lifetime parameter
help: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: Errors occurred in .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs from external crate
help: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: Macro text: pub(crate) fn env(env: &(dyn Compilation + '_)) -> Env<&'_ CompilerDatabase> {
help: .cargo\git\checkouts\gluon-9c68e1737197fd9b\aed1485\src\query.rs:808: consider introducing a named lifetime parameter
error: could not compile `gluon` due to 2 previous errors

It expects a lifetime here:

image