title: rust unable to run edition2021
body: <p>I'm trying to run a project in rust. I keep running into this edition 2021 error:</p>
  <pre><code>% rustc --version
  rustc 1.60.0-nightly (a7e2e3396 2022-01-08)
  </code></pre>
  <p>I ran all this:</p>
  <pre><code>If you are trying to migrate from the previous edition (2018), the
  process requires following these steps:
  
  1. Start with edition = &quot;2018&quot; in Cargo.toml
  2. Run cargo fix --edition
  3. Modify Cargo.toml to set edition = &quot;2021&quot;
  4. Run cargo build or cargo test to verify the fixes worked 
  </code></pre>
  <p>I keep getting this error:</p>
  <pre><code>Failed to obtain package metadata: Error during execution of cargo metadata: error: failed to parse manifest at /workdir/program/Cargo.toml
  
  Caused by:
    the cargo feature edition2021 requires a nightly version of Cargo, but this is the stable channel 
  </code></pre>
  <p>I'm at a total loss here. I've found a lot of conflicting information. I've changed directories, found answers on SO like this: <a href="https://stackoverflow.com/questions/69848319/unable-to-specify-edition2021-in-order-to-use-unstable-packages-in-rust">Unable to specify `edition2021` in order to use unstable packages in Rust</a></p>
  <p>I'm at a total loss here. What is the step I'm missing here? I'm on MacOS Big Sur.</p>