BREG: clippy fails with the runtime feature alone
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 75/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust
- Domain
- build-system, ci-cd, tooling
Research direction
Reproduce the failure with the listed cargo clippy command for registry-breg. Read crates/registry-breg/src/lib.rs:16, mutation.rs:6, mutation/action.rs:2141, and action_evidence_maintenance.rs to determine the intended feature gate. Align the gate or document the unsupported feature set, then add the standalone combination to CI or Cargo.toml and rerun clippy with -D warnings.
Written by the indexing model from the issue text.
Description
Follow-up to #1057.
cargo clippy --locked -p registry-breg --no-default-features --features runtime --all-targets -- -D warnings fails:
error: unused import: `action::erase_expired_action_evidence`
--> crates/registry-breg/src/mutation.rs:6:16
error: function `erase_expired_action_evidence` is never used
--> crates/registry-breg/src/mutation/action.rs:2141:21
crates/registry-breg/src/action_evidence_maintenance.rs is the only consumer,
and crates/registry-breg/src/lib.rs:16 gates it on all(feature = "runtime", feature = "tooling") while mutation.rs:6 re-exports the function
unconditionally. Root CI's rust job runs cargo clippy --workspace --all-targets, which enables the union of workspace features, so the
combination is never exercised there. --no-default-features alone, and the
schema and tooling feature sets on their own, are clean.
- Match the gate: either gate the
pub(crate) usein
crates/registry-breg/src/mutation.rs:6and the definition in
crates/registry-breg/src/mutation/action.rs:2141on the same
all(feature = "runtime", feature = "tooling")the module is gated on,
or relaxcrates/registry-breg/src/lib.rs:16tofeature = "runtime"if
the maintenance module does not actually needtooling. - Add the combination to CI so it cannot regress, or state in
crates/registry-breg/Cargo.tomlthatruntimeis not a supported
standalone feature set.
- Dominant language
- Rust
- Stars
- 2
- Forks
- 0
- Avg merge
- 3h 45m
- Merged PRs (30d)
- 134
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from registrystack/registry-stack
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
registrystack/registry-stack#1239 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
registrystack/registry-stack#1235 ·
-
area:breg bug good first issue rust
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
registrystack/registry-stack#1227 ·
-
area:casework documentation
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
registrystack/registry-stack#1217 ·
-
area:breg documentation
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
registrystack/registry-stack#1213 ·
All issues in registrystack/registry-stack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100