Skip to content

Build rot: Clippy-Lint 'manual_is_multiple_of' + '-D warnings' blockiert alle PRs #8

@stho32

Description

@stho32

Problem

Der Lint and Format (Windows)-Job schlaegt auf main und im offenen PR #7 fehl. Build, Tests und Security-Audit sind gruen — das Problem liegt ausschliesslich im Clippy-Lint-Check.

Root Cause

Neuere Clippy-Version hat den Lint clippy::manual_is_multiple_of hinzugefuegt. Im Quellcode gibt es mindestens eine Stelle mit x % y == 0, die jetzt auf x.is_multiple_of(y) umgestellt werden soll. Durch die CI-Flag -D warnings wird dieser Lint zum Build-Fehler:

error: could not compile `regdumpy` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `regdumpy` (lib test) due to 1 previous error

Fix

Eine der drei Optionen:

  1. Code anpassen: x % y == 0x.is_multiple_of(y) (setzt Rust >= 1.87 voraus — is_multiple_of ist unstable in Rust 1.83, stabil in neueren Versionen).
  2. Lint lokal unterdruecken mit #[allow(clippy::manual_is_multiple_of)] an der betroffenen Funktion.
  3. Rust-Toolchain-Version pinnen, um die Clippy-Version zu stabilisieren.

Empfehlung: Code anpassen, wenn is_multiple_of im MSRV verfuegbar ist; sonst Option 2.

Betroffene PRs

Failing Run

https://github.com/CleverCodeCravers/regdumpy/actions/runs/24527054072

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions