Closed
Description
I'm trying to build the latest version on Mac with this command:
CARGO_NET_GIT_FETCH_WITH_CLI=true cargo +nightly install --force --branch master --git https://github.com/rust-lang/rustfmt.git
But it gives the following errors:
Compiling rustc-ap-rustc_parse v659.0.0
error: environment variable `CFG_RELEASE_CHANNEL` not defined
--> /Users/me/.cargo/registry/src/github.colasdn.workers.dev-1ecc6299db9ec823/rustc-ap-rustc_attr-659.0.0/builtin.rs:655:27
|
655 | let channel = env!("CFG_RELEASE_CHANNEL");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: environment variable `CFG_RELEASE` not defined
--> /Users/me/.cargo/registry/src/github.colasdn.workers.dev-1ecc6299db9ec823/rustc-ap-rustc_attr-659.0.0/builtin.rs:657:48
|
657 | let rustc_version = Version::parse(env!("CFG_RELEASE")).unwrap();
| ^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
Any ideas? I found it mentioned in #4174 but that seems to imply that it has been fixed. Am I missing something?
Metadata
Metadata
Assignees
Labels
No labels