Problems with Mxpy contract build – `#![feature]` may not be used on the stable release channel

I keep running into this issue when trying to run mxpy contract build for a MultiversX smart contract:

error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/dubskiski/multiversx-sdk/vendor-rust/registry/src/
4 | #![feature(proc_macro_quote)]
  |            ^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `multiversx-sc-derive` due to previous error
warning: build failed, waiting for other jobs to finish...
CRITICAL:cli:Build error: None.====>   ] 108/119: serde_derive  

I have set nightly to override and default (rustup show):

Default host: x86_64-unknown-linux-gnu
rustup home:  /home/dubskiski/snap/rustup/common/rustup

nightly-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
rustc 1.70.0-nightly (17c116721 2023-03-29)

Everywhere I look it says to do 'rustup default nightly', this does not work for me. I found another thread on here with the same issue that wasn't resolved and closed after 90 days. Please help, thanks!

Can you be more specific? What behavior are you seeing?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.