Repository navigation
fix(lint): pin Rust toolchain so soldr builds fastled-lint via rustup - #3729
Merged
Merged
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds ChangesRust toolchain configuration
Estimated code review effort: 1 (Trivial) | ~3 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Without a repo-root pin, soldr resolves rustc from PATH. On hosts where a non-rustup Rust shadows rustup (e.g. chocolatey's x86_64-pc-windows-gnu build), soldr still canonicalizes the build target to x86_64-pc-windows-msvc and every crate fails with E0463 (can't find crate for `std`). Pinning the toolchain routes resolution through rustup, which always carries the host target's std. Co-Authored-By: Claude <[email protected]>
zackees
force-pushed
the
fix/soldr-rust-toolchain-pin
branch
from
July 27, 2026 17:03
d098463 to
a45214e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
bash lintwas hard-failing on hosts where a non-rustup Rust shadows rustup on PATH: thefastled-lintbuild (via soldr) died on every crate witherror[E0463]: can't find crate forstd``.Root cause: with no
rust-toolchain.tomlin the repo, soldr resolvesrustcfrom PATH. On this bench host that's chocolatey'srustc.exe— anx86_64-pc-windows-gnu-host build whose sysroot contains only the gnu std. soldr canonicalizes the build target tox86_64-pc-windows-msvc, so every compile requests an msvc std that doesn't exist.Fix: pin the toolchain at the repo root. With the pin present, soldr (and rustup-proxied cargo) resolve through rustup — verified with
cargo build -v: rustc switches fromC:\ProgramData\chocolatey\bin\rustc.exeto soldr's managedrustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exeand the build succeeds. Onlyci/lint_cpp_rsis affected (sole crate in the repo).Second commit: repairing the linter surfaced a previously-invisible
BannedMacrosCheckerviolation inexamples/hydropack/hydropack.ino(rawstatic_assertfrom #3712, which merged while the Rust linter couldn't build). Swapped toFL_STATIC_ASSERT+ its include.Testing
soldr --no-cache cargo build --bin fastled-lint— was E0463 on all crates, now succeedsbash lint --cpp— fully green (previously❌ cpp_linting FAILED)bash compile wasm --examples hydropack— builds successfully🤖 Generated with Claude Code
Summary by CodeRabbit