SpaceManiac / SpacemanDMM

A BYOND language smartness provider, map renderer, and more.
https://marketplace.visualstudio.com/items?itemName=platymuus.dm-langclient
GNU General Public License v3.0
83 stars 83 forks source link

Doesn't compile #20

Closed Mothblocks closed 6 years ago

Mothblocks commented 6 years ago
error: expected pattern, found reserved keyword `proc`
   --> src/dreammaker/objtree.rs:240:25
    |
240 |             if let Some(proc) = ty.get().procs.get(name) {
    |                         ^^^^

error[E0658]: underscore lifetimes are unstable (see issue #44524)
   --> src/dreammaker/parser.rs:613:53
    |
613 |                     let mut subparser: Parser<'ctx, '_, _> = Parser::new(self.context, body_tt.iter().cloned());
    |                                                     ^^

error: aborting due to 2 previous errors

error: Could not compile `dreammaker`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Command ran: cargo build -p dm-langserver

Mothblocks commented 6 years ago

Apparently I might just have an old version of Rust? proc was unreserved 3 months ago...

SpaceManiac commented 6 years ago

Yeah, my editor still highlights proc red, so it's pretty recent. Looks like its unreservation reached stable in Rust 1.27.

Mothblocks commented 6 years ago

@SpaceManiac

rustc -V rustc 1.27.2 (58cc626de 2018-07-18)

Weird

SpaceManiac commented 6 years ago

Passing on Travis with:

$ rustc -Vv
rustc 1.27.2 (58cc626de 2018-07-18)
binary: rustc
commit-hash: 58cc626de3301192d5d8c6dcbde43b5b44211ae2
commit-date: 2018-07-18
host: x86_64-unknown-linux-gnu
release: 1.27.2
LLVM version: 6.0

I guess double-check your Rust installation?

Mothblocks commented 6 years ago

I have the exact same output as you. Not sure, but I'll try and get this working.