Skip to content

chore: fix lints from newer clippy and nightly deprecations - #1622

Merged
akern40 merged 1 commit into
refactorfrom
fix-new-lints
Oct 19, 2026
Merged

akern40 merged 1 commit into
refactorfrom
fix-new-lints

Conversation

@akern40

@akern40 akern40 commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

CI on refactor is currently red because of newer toolchains, not code changes. Since CI runs with -D warnings, the following are now errors:

  • clippy 1.99 removed clippy::from_iter_instead_of_collect, so our allow for it in lib.rs now errors.
  • clippy 1.99 question_mark fires in Indices and the Iter/IndexedIter iterators.
  • clippy 1.99 manual_checked_ops fires in into_scalar.
  • Nightly (and stable in the weekly latest-deps job) now deprecates the legacy std::f64 / std::isize modules and constants. These are used in tests/numeric.rs and in tests in dimension/mod.rs and tri.rs.

No behavior change.

Link to Devin session: https://app.devin.ai/sessions/4b52e943e29a466ea652d856b7f556c4
Open in Devin Desktop: https://app.devin.ai/desktop/session/4b52e943e29a466ea652d856b7f556c4?variant=devin
Requested by: @akern40

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

@akern40
akern40 merged commit 643181c into refactor Oct 19, 2026
15 checks passed
akern40 added a commit that referenced this pull request Oct 19, 2026
#1575 moved `ndim` off of `Dimension` and onto the new `Ranked`
supertrait. Generic code with a `D: Dimension` bound still works, but
calling `.ndim()` on a concrete dimension type now needs `Ranked` in
scope, so this stopped compiling:

```rust
use ndarray::prelude::*;
Ix2(3, 4).ndim(); // E0599: trait `Ranked` is not in scope
```

This exports `Ranked` from the prelude next to `Dimension`. Code that
imports `ndarray::Dimension` directly, rather than going through the
prelude, still has to import `ndarray::layout::ranked::Ranked` too.

CI is red until #1622 lands. That PR fixes lints from newer toolchains
that also fail on `refactor` itself.

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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.

1 participant