Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

error: pub(restricted) syntax is experimental (see issue #32409) #6294

@stone212

Description

@stone212

Before filing a new issue, please provide the following information.

I'm running:

  • Parity version: 0.0.0

From current source tree 14 August 2017

  • Operating system: Windows / MacOS / Linux

Debian 9

  • And installed: via installer / homebrew / binaries / from source

Attempting to install from source.

Your issue description goes here below. Try to include actual vs. expected behavior and steps to reproduce the issue.

I am attempting to install from source on Debian 9.

The following are fine:
# apt-get install openssl libssl-dev libudev-dev

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

$ git clone https://github.com/paritytech/parity
$ cd parity

Then I alter my path and then I type:
$ cargo build --release

Compilation proceeds and then aborts. Here is a printout beginning when things are still green/good:

Compiling libflate v0.1.9
Compiling unicode-width v0.1.4
error: pub(restricted) syntax is experimental (see issue #32409)
--> /home/parity/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/libflate-0.1.9/src/zlib.rs:202:9
|
202 | pub(crate) fn read_from(mut reader: R) -> io::Result
| ^^^^^

error: pub(restricted) syntax is experimental (see issue #32409)
--> /home/parity/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/libflate-0.1.9/src/gzip.rs:98:5
|
98 | pub(crate) struct Trailer {
| ^^^^^

error: pub(restricted) syntax is experimental (see issue #32409)
--> /home/parity/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/libflate-0.1.9/src/gzip.rs:370:9
|
370 | pub(crate) fn read_from(mut reader: R) -> io::Result
| ^^^^^

error: pub(restricted) syntax is experimental (see issue #32409)
--> /home/parity/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/libflate-0.1.9/src/deflate/mod.rs:29:5
|
29 | pub(crate) mod symbol;
| ^^^^^

error: pub(restricted) syntax is experimental (see issue #32409)
--> /home/parity/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/libflate-0.1.9/src/non_blocking/deflate/decode.rs:72:9
|
72 | pub(crate) fn bit_reader_mut(&mut self) -> &mut TransactionalBitReader {
| ^^^^^

error: pub(restricted) syntax is experimental (see issue #32409)
--> /home/parity/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/libflate-0.1.9/src/bit.rs:143:9
|
143 | pub(crate) fn state(&self) -> BitReaderState {
| ^^^^^

error: pub(restricted) syntax is experimental (see issue #32409)
--> /home/parity/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/libflate-0.1.9/src/bit.rs:150:9
|
150 | pub(crate) fn restore_state(&mut self, state: BitReaderState) {
| ^^^^^

error: pub(restricted) syntax is experimental (see issue #32409)
--> /home/parity/.cargo/registry/src/git.colasdn.top-1ecc6299db9ec823/libflate-0.1.9/src/bit.rs:171:5
|
171 | pub(crate) struct BitReaderState {
| ^^^^^

error: aborting due to 8 previous errors

I have searched for issue 32409 and it seems like a closed issue with rust. I do not understand why Parity is triggering this error.

I'm probably doing something foolish.


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions