You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 5, 2019. It is now read-only.
I seems like proc_macro_hack broke. Please use rustup override set nightly-2019-08-15 in the meantime.
error: cannot find macro `proc_macro_call_0!` in this scope
--> src/bin/server.rs:92:9
|
92 | / select! {
93 | | msg = messages.next().fuse() => match msg {
94 | | Some(msg) => stream.write_all(msg.as_bytes()).await?,
95 | | None => break,
... |
100 | | }
101 | | }
| |_________^
|
= help: have you added the `#[macro_use]` on the module/import?
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
james@archx1c6g ➜ a-chat git:(master) rustup show
Default host: x86_64-unknown-linux-gnu
# ...
active toolchain
----------------
nightly-x86_64-unknown-linux-gnu (default)
rustc 1.39.0-nightly (2111aed0a 2019-08-17)
james@archx1c6g ➜ a-chat git:(master) cargo clean && cargo build
# ...
Compiling async-std v0.99.3
Compiling a-chat v0.1.0 (/tmp/a-chat)
error: cannot find macro `proc_macro_call_1!` in this scope
--> src/bin/client.rs:31:9
|
31 | / select! {
32 | | line = lines_from_server.next().fuse() => match line {
33 | | Some(line) => {
34 | | let line = line?;
... |
46 | | }
47 | | }
| |_________^
|
= help: have you added the `#[macro_use]` on the module/import?
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: unused import: `futures::FutureExt`
--> src/bin/client.rs:6:5
|
6 | use futures::FutureExt;
| ^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error: cannot find macro `proc_macro_call_0!` in this scope
--> src/bin/server.rs:92:9
|
92 | / select! {
93 | | msg = messages.next().fuse() => match msg {
94 | | Some(msg) => stream.write_all(msg.as_bytes()).await?,
95 | | None => break,
... |
100 | | }
101 | | }
| |_________^
|
= help: have you added the `#[macro_use]` on the module/import?
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: cannot find macro `proc_macro_call_1!` in this scope
--> src/bin/server.rs:126:21
|
126 | let event = select! {
| _____________________^
127 | | event = events.next().fuse() => match event {
128 | | None => break,
129 | | Some(event) => event,
... |
135 | | },
136 | | };
| |_________^
|
= help: have you added the `#[macro_use]` on the module/import?
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: unreachable expression
--> src/bin/client.rs:49:5
|
49 | Ok(())
| ^^^^^^
|
= note: `#[warn(unreachable_code)]` on by default
error: aborting due to previous error
error: Could not compile `a-chat`.
warning: build failed, waiting for other jobs to finish...
warning: unreachable statement
--> src/bin/server.rs:164:5
|
164 | drop(peers);
| ^^^^^^^^^^^^
|
= note: `#[warn(unreachable_code)]` on by default
warning: unreachable expression
--> src/bin/server.rs:103:5
|
103 | Ok(())
| ^^^^^^
warning: unused import: `FutureExt`
--> src/bin/server.rs:12:5
|
12 | FutureExt,
| ^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error: aborting due to 2 previous errors
error: Could not compile `a-chat`.
To learn more, run the command again with --verbose.
james@archx1c6g ➜ a-chat git:(master)
~/prx/a-chat add-rust-toolchain-file ✗ 10m ⚑
▶ rustup show
Default host: x86_64-unknown-linux-gnu
...
active toolchain
----------------
nightly-2019-08-18-x86_64-unknown-linux-gnu (overridden by '/home/synul/prx/a-chat/rust-toolchain')
rustc 1.39.0-nightly (2111aed0a 2019-08-17)
▶ cargo build
Compiling a-chat v0.1.0 (/home/synul/prx/a-chat)
error: cannot find macro `proc_macro_call_1!` in this scope
--> src/bin/client.rs:31:9
|
31 | / select! {
32 | | line = lines_from_server.next().fuse() => match line {
33 | | Some(line) => {
34 | | let line = line?;
... |
46 | | }
47 | | }
| |_________^
|
= help: have you added the `#[macro_use]` on the module/import?
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: unused import: `futures::FutureExt`
--> src/bin/client.rs:6:5
|
6 | use futures::FutureExt;
| ^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error: cannot find macro `proc_macro_call_0!` in this scope
--> src/bin/server.rs:92:9
|
92 | / select! {
93 | | msg = messages.next().fuse() => match msg {
94 | | Some(msg) => stream.write_all(msg.as_bytes()).await?,
95 | | None => break,
... |
100 | | }
101 | | }
| |_________^
|
= help: have you added the `#[macro_use]` on the module/import?
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error: cannot find macro `proc_macro_call_1!` in this scope
--> src/bin/server.rs:126:21
|
126 | let event = select! {
| _____________________^
127 | | event = events.next().fuse() => match event {
128 | | None => break,
129 | | Some(event) => event,
... |
135 | | },
136 | | };
| |_________^
|
= help: have you added the `#[macro_use]` on the module/import?
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
warning: unreachable expression
--> src/bin/client.rs:49:5
|
49 | Ok(())
| ^^^^^^
|
= note: `#[warn(unreachable_code)]` on by default
error: aborting due to previous error
error: Could not compile `a-chat`.
warning: build failed, waiting for other jobs to finish...
warning: unreachable statement
--> src/bin/server.rs:164:5
|
164 | drop(peers);
| ^^^^^^^^^^^^
|
= note: `#[warn(unreachable_code)]` on by default
warning: unreachable expression
--> src/bin/server.rs:103:5
|
103 | Ok(())
| ^^^^^^
warning: unused import: `FutureExt`
--> src/bin/server.rs:12:5
|
12 | FutureExt,
| ^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error: aborting due to 2 previous errors
error: Could not compile `a-chat`.
To learn more, run the command again with --verbose.
Activity
jamesmunns commentedon Aug 18, 2019
I think this has been fixed in rust-lang/rust#63667
jamesmunns commentedon Aug 18, 2019
Though not yet fixed in the latest nightly:
jamesmunns commentedon Aug 19, 2019
This has been fixed as of
rustc 1.39.0-nightly (4cf767307 2019-08-18).morlinbrot commentedon Aug 20, 2019
Doesn't work with that version either:
jamesmunns commentedon Aug 20, 2019
@synul you need the toolchain one day newer, 2019-08-19 (built 2019-08-18). You were using 2019-08-18, built on the 17th.
morlinbrot commentedon Aug 20, 2019
Ah, indeed, the newest version works. I updated my PR with the newer version, not sure if that is still needed though...