Skip to content

fix(warnings): sweep the remaining redundant super::super glob imports - #8494

Merged
proggeramlug merged 1 commit into
mainfrom
fix/8495-glob-imports-sweep
Aug 20, 2026
Merged

fix(warnings): sweep the remaining redundant super::super glob imports#8494
proggeramlug merged 1 commit into
mainfrom
fix/8495-glob-imports-sweep

Conversation

@proggeramlug

@proggeramlug proggeramlug commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Finishes what #8493 started. warnings stayed red on 415f4e22e — the very commit that carried #8493 — because rustc stops reporting once a crate fails, so the nine sites it named first were masking the rest. Fixing them one CI cycle at a time would take several more rounds.

This handles the class in one pass: every file carrying both use super::super::*; and use super::*; — 24 of them, across object/global_this, object/object_ops, object/native_call_method and node_stream_constructors.

Verified empirically rather than by inspection. I removed all 24 at once and let the compiler arbitrate which were load-bearing: perry-runtime compiles with zero errors, so none was. (Worth checking, because these are not flagged unused on macOS — the same asymmetry that made #8493's originals hard to attribute.)

Checks run:

  • exact CI invocation — RUSTFLAGS='-D warnings' cargo check --workspace --all-targets with the same nine UI excludes — clean
  • cargo fmt --check clean
  • perry-runtime object:: unit tests: 201 passed
  • no file under crates/ carries both globs any more

warnings is in both pr-gate and full-suite-gate, so this is release-gating.

Summary by CodeRabbit

  • Chores

    • Cleaned up redundant internal imports across the runtime.
    • Improved import clarity and reduced unnecessary warnings without changing functionality or public APIs.
  • Tests

    • Verified that the runtime continues to compile successfully with no errors after the cleanup.

#8493 removed the nine 'unused import: super::super::*' sites rustc
reported first, but warnings stayed RED on 415f4e2 — the very commit
carrying that fix — because those errors masked the rest: rustc stops
reporting once a crate fails, so each fix reveals the next batch.

Fix the class in one pass instead of one CI cycle at a time. Found every
file carrying BOTH 'use super::super::*;' and 'use super::*;' (24 across
object/global_this, object/object_ops, object/native_call_method and
node_stream_constructors), removed the redundant glob from all of them,
and let the compiler arbitrate which were actually needed: perry-runtime
compiles with zero errors, so none was load-bearing.

Verified: the exact CI invocation — RUSTFLAGS='-D warnings' cargo check
--workspace --all-targets with the nine UI excludes — is clean; cargo fmt
clean; perry-runtime object:: unit tests 201 passed. No file in crates/
now carries both globs.

Refs #8493
@proggeramlug
proggeramlug merged commit caba324 into main Aug 20, 2026
17 of 18 checks passed
@proggeramlug
proggeramlug deleted the fix/8495-glob-imports-sweep branch August 20, 2026 19:17
@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5af3e243-0c7e-48ce-8f43-2cb94deb274c

📥 Commits

Reviewing files that changed from the base of the PR and between 415f4e2 and cb8ce41.

📒 Files selected for processing (25)
  • changelog.d/8495-glob-imports-sweep.md
  • crates/perry-runtime/src/node_stream_constructors/web_adapter.rs
  • crates/perry-runtime/src/object/global_this/array_error.rs
  • crates/perry-runtime/src/object/global_this/ctor_thunks.rs
  • crates/perry-runtime/src/object/global_this/fetch_globals.rs
  • crates/perry-runtime/src/object/global_this/generator.rs
  • crates/perry-runtime/src/object/global_this/install_static.rs
  • crates/perry-runtime/src/object/global_this/math_temporal.rs
  • crates/perry-runtime/src/object/global_this/populate.rs
  • crates/perry-runtime/src/object/global_this/proto_methods.rs
  • crates/perry-runtime/src/object/global_this/typed_array.rs
  • crates/perry-runtime/src/object/native_call_method/collection_methods.rs
  • crates/perry-runtime/src/object/native_call_method/common_methods.rs
  • crates/perry-runtime/src/object/native_call_method/disposal.rs
  • crates/perry-runtime/src/object/native_call_method/handle_methods.rs
  • crates/perry-runtime/src/object/native_call_method/object_proto.rs
  • crates/perry-runtime/src/object/native_call_method/primitive_methods.rs
  • crates/perry-runtime/src/object/native_call_method/proto_dispatch.rs
  • crates/perry-runtime/src/object/object_ops/accessors.rs
  • crates/perry-runtime/src/object/object_ops/define_property.rs
  • crates/perry-runtime/src/object/object_ops/descriptor_helpers.rs
  • crates/perry-runtime/src/object/object_ops/from_entries.rs
  • crates/perry-runtime/src/object/object_ops/has_own.rs
  • crates/perry-runtime/src/object/object_ops/keys_array.rs
  • crates/perry-runtime/src/object/object_ops/prototype.rs

📝 Walkthrough

Walkthrough

The change removes 24 redundant use super::super::*; imports from perry-runtime. Some modules now use explicit sibling imports. A changelog fragment documents the cleanup and compilation verification.

Changes

Glob import cleanup

Layer / File(s) Summary
Runtime import cleanup and changelog
crates/perry-runtime/src/object/global_this/*, crates/perry-runtime/src/object/native_call_method/*, crates/perry-runtime/src/object/object_ops/*, crates/perry-runtime/src/node_stream_constructors/*
Removed redundant grandparent glob imports. Retained immediate-parent imports and added explicit sibling imports where required. The changelog records the 24 removals and successful compilation verification.

Estimated code review effort: 1 (Trivial) | ~3 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/8495-glob-imports-sweep

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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