Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 4, 2026

This was a question from the PR author about using nightly rustfmt with a stable toolchain.

Answer Provided

RUSTC_BOOTSTRAP=1 enables unstable features for rustc but not for rustfmt. Stable rustfmt always rejects unstable features regardless of environment variables.

To use the unstable features in rustfmt.toml:

# Install nightly rustfmt
rustup toolchain install nightly --component rustfmt

# Run formatting with nightly
cargo +nightly fmt

Suggested Follow-up

Update these to use cargo +nightly fmt:

  • .pre-commit-config.yaml line 13
  • .github/workflows/ci.yml line 243

No code changes were made as this was an informational question only.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update to stable toolchain and enable RUSTC_BOOTSTRAP No changes needed - answered question about nightly rustfmt usage Feb 4, 2026
Copilot AI requested a review from Itsusinn February 4, 2026 20:36
@Itsusinn
Copy link
Member

Itsusinn commented Feb 6, 2026

@copilot Use rustup component add rustfmt --toolchain nightly & cargo +nightly fmt

move cargo fmt as a standalone job named prepare,which compile relies on

@Itsusinn Itsusinn closed this Feb 9, 2026
@Itsusinn Itsusinn deleted the copilot/sub-pr-1020 branch February 10, 2026 01:42
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

Successfully merging this pull request may close these issues.

2 participants