Closed m-kostrzewa closed 6 years ago
kosiak@battlestation /home/kosiak/Documents/rust/$ cargo install --git https://github.com/krdln/shelly Updating git repository `https://github.com/krdln/shelly` Installing shelly v0.1.0 (https://github.com/krdln/shelly#e2a4e802) Updating registry `https://github.com/rust-lang/crates.io-index` Downloading yansi v0.4.0 Downloading regex v1.0.0 Downloading failure v0.1.1 Downloading walkdir v2.1.4 Downloading lazy_static v1.0.0 Downloading thread_local v0.3.5 Downloading memchr v2.0.1 Downloading regex-syntax v0.6.0 Downloading aho-corasick v0.6.4 Downloading utf8-ranges v1.0.0 Downloading unreachable v1.0.0 Downloading void v1.0.2 Downloading libc v0.2.40 Downloading ucd-util v0.1.1 Downloading failure_derive v0.1.1 Downloading backtrace v0.3.7 Downloading synstructure v0.6.1 Downloading quote v0.3.15 Downloading syn v0.11.11 Downloading unicode-xid v0.0.4 Downloading synom v0.11.3 Downloading cfg-if v0.1.3 Downloading rustc-demangle v0.1.8 Downloading same-file v1.0.2 Downloading backtrace-sys v0.1.16 Downloading cc v1.0.15 Compiling cc v1.0.15 Compiling void v1.0.2 Compiling same-file v1.0.2 Compiling unicode-xid v0.0.4 Compiling rustc-demangle v0.1.8 Compiling quote v0.3.15 Compiling cfg-if v0.1.3 Compiling regex v1.0.0 Compiling libc v0.2.40 Compiling ucd-util v0.1.1 Compiling yansi v0.4.0 Compiling lazy_static v1.0.0 Compiling utf8-ranges v1.0.0 Compiling unreachable v1.0.0 Compiling synom v0.11.3 Compiling walkdir v2.1.4 Compiling regex-syntax v0.6.0 Compiling memchr v2.0.1 Compiling thread_local v0.3.5 Compiling syn v0.11.11 Compiling backtrace-sys v0.1.16 Compiling aho-corasick v0.6.4 Compiling synstructure v0.6.1 Compiling backtrace v0.3.7 Compiling failure_derive v0.1.1 Compiling failure v0.1.1 Compiling shelly v0.1.0 (https://github.com/krdln/shelly#e2a4e802) error[E0425]: cannot find function `read_to_string` in module `fs` --> src/main.rs:328:20 | 328 | let file = fs::read_to_string(path)?; | ^^^^^^^^^^^^^^ did you mean `read_string`? error[E0658]: non-reference pattern used to match a reference (see issue #42640) --> src/main.rs:196:14 | 196 | Some(ScopeWip::Current) => bail!("Recursive import of {}", file.display()), | ^^^^^^^^^^^^^^^^^ help: consider using a reference: `&ScopeWip::Current` error[E0658]: non-reference pattern used to match a reference (see issue #42640) --> src/main.rs:197:14 | 197 | Some(ScopeWip::Resolved(scope)) => return Ok(scope.clone()), | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using a reference: `&ScopeWip::Resolved(scope)` error: aborting due to 3 previous errors error: failed to compile `shelly v0.1.0 (https://github.com/krdln/shelly#e2a4e802)`, intermediate artifacts can be found at `/tmp/cargo-install.ahZt1rvhYgB9` Caused by: Could not compile `shelly`. To learn more, run the command again with --verbose.
Actually nvm, forgot to update rustc to 1.26