Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error[E0603]: module export is private #83

Closed
juristoeckli opened this issue Apr 6, 2021 · 5 comments
Closed

error[E0603]: module export is private #83

juristoeckli opened this issue Apr 6, 2021 · 5 comments

Comments

@juristoeckli
Copy link

Compiling futures v0.3.13
Compiling toml v0.5.8
Compiling bincode v1.3.2
Compiling ipc-channel v0.14.1
Compiling mumlib v0.3.0
error[E0603]: module export is private
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/mumlib-0.3.0/src/error.rs:1:12
|
1 | use serde::export::Formatter;
| ^^^^^^

error[E0603]: module export is private
--> /home/pi/.cargo/registry/src/github.com-1ecc6299db9ec823/mumlib-0.3.0/src/state.rs:1:12
|
1 | use serde::export::Formatter;
| ^^^^^^

error: aborting due to 2 previous errors

For more information about this error, try rustc --explain E0603.
error: could not compile mumlib.
warning: build failed, waiting for other jobs to finish...
^C Building [=====================================================> ] 173/175

@sornas
Copy link
Collaborator

sornas commented Apr 8, 2021

Yeah we haven't published a new version in a while. I believe this has been fixed on main, could you try cloning and building manually?

sornas added a commit that referenced this issue Apr 8, 2021
@sornas
Copy link
Collaborator

sornas commented Apr 8, 2021

I've published 0.3.1 now, see if that one works better.

@sornas sornas added the backport label Apr 8, 2021
@sornas sornas closed this as completed Jun 7, 2021
@sornas
Copy link
Collaborator

sornas commented Jun 7, 2021

Please let me know if it still fails and I'll re-open!

@juristoeckli
Copy link
Author

Tanks for working on this project.
it now works, but fails later during build. (it probably is somehow my fault :)

error[E0658]: use of unstable library feature 'matches_macro'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumd-0.3.1/src/network/tcp.rs:326:16
|
326 | while !matches!(
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error[E0658]: use of unstable library feature 'matches_macro'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumd-0.3.1/src/network/udp.rs:117:16
|
117 | while !matches!(
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error[E0658]: use of unstable library feature 'matches_macro'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumd-0.3.1/src/network/udp.rs:206:16
|
206 | while !matches!(
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error[E0658]: use of unstable library feature 'matches_macro'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumd-0.3.1/src/state.rs:91:21
|
91 | if !matches!(*self.phase_receiver().borrow(), StatePhase::Connected) {
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error[E0658]: use of unstable library feature 'matches_macro'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumd-0.3.1/src/state.rs:141:21
|
141 | if !matches!(*self.phase_receiver().borrow(), StatePhase::Connected) {
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error[E0658]: use of unstable library feature 'matches_macro'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumd-0.3.1/src/state.rs:155:21
|
155 | if !matches!(*self.phase_receiver().borrow(), StatePhase::Connected) {
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error[E0658]: use of unstable library feature 'matches_macro'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumd-0.3.1/src/state.rs:213:21
|
213 | if !matches!(*self.phase_receiver().borrow(), StatePhase::Connected) {
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error[E0658]: use of unstable library feature 'matches_macro'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumd-0.3.1/src/state.rs:248:21
|
248 | if !matches!(*self.phase_receiver().borrow(), StatePhase::Connected) {
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error[E0658]: use of unstable library feature 'matches_macro'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumd-0.3.1/src/state.rs:315:21
|
315 | if !matches!(*self.phase_receiver().borrow(), StatePhase::Disconnected) {
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error[E0658]: use of unstable library feature 'matches_macro'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumd-0.3.1/src/state.rs:360:21
|
360 | if !matches!(*self.phase_receiver().borrow(), StatePhase::Connected) {
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error[E0658]: use of unstable library feature 'matches_macro'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumd-0.3.1/src/state.rs:394:21
|
394 | if !matches!(*self.phase_receiver().borrow(), StatePhase::Connected) {
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error[E0658]: use of unstable library feature 'matches_macro'
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mumd-0.3.1/src/state.rs:403:21
|
403 | if !matches!(*self.phase_receiver().borrow(), StatePhase::Connected) {
| ^^^^^^^
|
= note: for more information, see rust-lang/rust#65721

error: aborting due to 12 previous errors

For more information about this error, try rustc --explain E0658.
error: failed to compile mumd v0.3.1, intermediate artifacts can be found at /tmp/cargo-installQKd3YO

Caused by:
could not compile mumd.

To learn more, run the command again with --verbose.

@sornas
Copy link
Collaborator

sornas commented Jun 8, 2021

This is caused by an outdated compiler. feature(matches_macro) was merged in 1.42 and I belive we require 1.46 at this point. You need to update your compiler, for example with rustup update if you installed Rust via rustup (which I can't recommend enough if you haven't).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants