Giter Site home page Giter Site logo

Comments (5)

nerdypepper avatar nerdypepper commented on May 28, 2024

Which version of rustc are you compiling against?

Works fine on Ubuntu 18.04 with rustc version 1.26.2

from taizen.

altaaa avatar altaaa commented on May 28, 2024

I built it on 18.04 like this:

sudo apt-get install libncursesw5-dev libssl-dev
curl https://sh.rustup.rs -sSf | sh

# log out and back in

cd ~/Downloads
git clone https://github.com/nerdypepper/taizen
cd taizen
cargo run --release

from taizen.

0x3444ac53 avatar 0x3444ac53 commented on May 28, 2024

`~ [ cd taizen ] 3:05 PM
~/taizen [ cargo run --release master ] 3:05 PM
Compiling arc-swap v0.2.0
Compiling unicode-width v0.1.5
error[E0658]: slice pattern syntax is experimental (see issue #23121)
--> /home/adien/.cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.2.0/src/lib.rs:658:59
|
658 | let groups = self.shards.iter().fold([0, 0], |[a1, a2], s| {
| ^^^^^^^^

error[E0658]: slice pattern syntax is experimental (see issue #23121)
--> /home/adien/.cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.2.0/src/lib.rs:659:21
|
659 | let [v1, v2] = s.snapshot();
| ^^^^^^^^

error: aborting due to 2 previous errors

error: Could not compile arc-swap.
warning: build failed, waiting for other jobs to finish...
error: build failed
~/taizen [ rustc -v master ] 3:05 PM
error: no input filename given

~/taizen [ rustc --version master ] 3:05 PM
rustc 1.25.0
~/taizen [ cargo run --release master ] 3:23 PM
Compiling build_const v0.2.1
Compiling arc-swap v0.2.0
error[E0658]: slice pattern syntax is experimental (see issue #23121)
--> /home/adien/.cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.2.0/src/lib.rs:658:59
|
658 | let groups = self.shards.iter().fold([0, 0], |[a1, a2], s| {
| ^^^^^^^^

error[E0658]: slice pattern syntax is experimental (see issue #23121)
--> /home/adien/.cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.2.0/src/lib.rs:659:21
|
659 | let [v1, v2] = s.snapshot();
| ^^^^^^^^

error: aborting due to 2 previous errors

error: Could not compile arc-swap.
warning: build failed, waiting for other jobs to finish...
error: build failed
~/taizen [ cargo run --release master ] 3:23 PM
Compiling array-macro v1.0.2
Compiling futures v0.1.23
Compiling num-rational v0.2.1
Compiling void v1.0.2
Compiling openssl v0.9.24
Compiling unicode-segmentation v1.2.1
Compiling arc-swap v0.2.0
error[E0658]: slice pattern syntax is experimental (see issue #23121)
--> /home/adien/.cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.2.0/src/lib.rs:658:59
|
658 | let groups = self.shards.iter().fold([0, 0], |[a1, a2], s| {
| ^^^^^^^^

error[E0658]: slice pattern syntax is experimental (see issue #23121)
--> /home/adien/.cargo/registry/src/github.com-1ecc6299db9ec823/arc-swap-0.2.0/src/lib.rs:659:21
|
659 | let [v1, v2] = s.snapshot();
| ^^^^^^^^

error: aborting due to 2 previous errors

error: Could not compile arc-swap.
warning: build failed, waiting for other jobs to finish...
error: build failed
~/taizen [ master ] 3:25 PM
`

from taizen.

altaaa avatar altaaa commented on May 28, 2024

error[E0658]: slice pattern syntax is experimental (see issue #23121)

I got this error with rustc 1.25 which is in the Ubuntu repos.

Please try sudo apt-get remove rustc and then installing rustc like this:

curl https://sh.rustup.rs -sSf | sh

This installed rustc 1.29.2 (17a9dc751 2018-10-05) earlier today for me and I could then build taizen.

from taizen.

0x3444ac53 avatar 0x3444ac53 commented on May 28, 2024

thank you, I suppose I misread the output, because I tried removing the rust package. thank you for the guidance

from taizen.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.