You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cargo +toolchain commands are not rewritten or filtered #3387
Cargo commands using rustup's +toolchain syntax are not recognized by the current rewrite path. Support for these commands was previously added in #99, including cargo +nightly test, but the behavior is not present in RTK 0.44.2.
In a crate containing a compilation error, compare:
rtk cargo check
rtk cargo +stable check
Actual behavior
rtk cargo check applies the Cargo filter and produces compact output:
cargo check: 1 errors, 0 warnings (1 crates)
rtk cargo +stable check executes the command but produces unfiltered Cargo output.
Expected behavior
rtk rewrite should recognize Cargo commands with a +toolchain selector, preserve the selector, and route the Cargo subcommand through the same output filter used without a selector.
This affects filtered subcommands such as build, check, clippy, and test.
Regression: rtk rewrite/hook no longer recognizes cargo's +toolchain selector (e.g. cargo +stable check), so the command isn't routed through the Cargo output filter — restore matching that preserves the selector and reuses the existing filter path.
This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.
📁 Relevant files
src/rewrite/cargo.rs
src/hook/rewrite.rs
Triaged automatically by wshm · This is an automated analysis, not a human review.
Activity
pszymkowiak commentedon Aug 4, 2026
🔍 Automated Triage
bugmediumSummary
Regression:
rtk rewrite/hook no longer recognizes cargo's+toolchainselector (e.g.cargo +stable check), so the command isn't routed through the Cargo output filter — restore matching that preserves the selector and reuses the existing filter path.📁 Relevant files
src/rewrite/cargo.rssrc/hook/rewrite.rsTriaged automatically by wshm · This is an automated analysis, not a human review.