Skip to content

fix(warnings): drop redundant super::super glob imports - #8493

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

fix(warnings): drop redundant super::super glob imports#8493
proggeramlug merged 1 commit into
mainfrom
fix/8494-redundant-glob-imports

Conversation

@proggeramlug

@proggeramlug proggeramlug commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

The warnings job (RUSTFLAGS=-D warnings) fails on Linux with nine unused import: \super::super::*`errors — six inperry-codegen's node_coretables, three inperry-runtime's node_stream_constructors`.

Pre-existing and not attributable to one PR, and notably intermittent: main at f5a8dcf9c passed warnings in run 32389924489 and failed the identical SHA in run 32396350265. That flakiness, plus the fact that macOS never flags it, is consistent with glob-import resolution shifting under feature unification.

warnings is in both pr-gate and full-suite-gate, so this was blocking every PR and the release.

Why removal is the right fix, checked rather than assumed: each of these files already has use super::*;, and the parent module re-exports the grandparent's surface, so the second glob adds nothing. I explicitly tested the risk that it was platform-load-bearing on macOS (where it is not reported unused): cargo check -p perry-codegen -p perry-runtime compiles cleanly without it, so it was redundant there too.

Verified: the exact CI invocation — RUSTFLAGS='-D warnings' cargo check --workspace --all-targets with the same nine UI excludes — is clean on this branch, and cargo fmt --check passes.

Summary by CodeRabbit

  • Bug Fixes

    • Resolved redundant import warnings that could cause Linux builds with strict warning checks to fail.
    • Improved build reliability without changing application behavior or runtime functionality.
  • Documentation

    • Added a changelog entry describing the warning and build reliability fixes.

The warnings job (RUSTFLAGS=-D warnings) fails on Linux with six
'unused import: super::super::*' errors in perry-codegen's node_core
tables and three in perry-runtime's node_stream_constructors. Each of
those files already carries 'use super::*;', and the parent module
re-exports the grandparent surface, so the second glob is redundant.

Pre-existing on main, not from any one PR, and INTERMITTENT: main at
f5a8dcf passed warnings in run 32389924489 and failed the identical SHA
in run 32396350265 — consistent with glob-import resolution shifting under
feature unification, which also explains why macOS never flagged it.

warnings is in both pr-gate and full-suite-gate, so this blocked every PR
and the release.

Verified: perry-codegen + perry-runtime compile on macOS without the globs
(so they were redundant there too, not platform-load-bearing), and the
exact CI command — RUSTFLAGS='-D warnings' cargo check --workspace
--all-targets with the same nine UI excludes — is clean.
@proggeramlug
proggeramlug merged commit 415f4e2 into main Aug 20, 2026
16 of 17 checks passed
@proggeramlug
proggeramlug deleted the fix/8494-redundant-glob-imports branch August 20, 2026 18:08
@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: 08399c87-f97a-43e3-87dc-ac6d557d978d

📥 Commits

Reviewing files that changed from the base of the PR and between ae7293f and 31c3e8e.

📒 Files selected for processing (10)
  • changelog.d/8494-redundant-glob-imports.md
  • crates/perry-codegen/src/lower_call/native_table/node_core/assert.rs
  • crates/perry-codegen/src/lower_call/native_table/node_core/dgram_fs_os.rs
  • crates/perry-codegen/src/lower_call/native_table/node_core/inspector_vm.rs
  • crates/perry-codegen/src/lower_call/native_table/node_core/module_sea_tls_test.rs
  • crates/perry-codegen/src/lower_call/native_table/node_core/url_punycode_console.rs
  • crates/perry-codegen/src/lower_call/native_table/node_core/util_buffer.rs
  • crates/perry-runtime/src/node_stream_constructors/builders.rs
  • crates/perry-runtime/src/node_stream_constructors/introspection.rs
  • crates/perry-runtime/src/node_stream_constructors/pipeline.rs

📝 Walkthrough

Walkthrough

The change removes nine redundant super::super::* imports from perry-codegen and perry-runtime. Some imports are narrowed to super::*. A changelog entry records the cleanup.

Changes

Redundant glob import cleanup

Layer / File(s) Summary
Remove redundant imports
crates/perry-codegen/src/lower_call/native_table/node_core/*.rs, crates/perry-runtime/src/node_stream_constructors/*.rs, changelog.d/8494-redundant-glob-imports.md
Removes or narrows unused parent-module glob imports. Native mappings, runtime code, and tests remain unchanged. The changelog records the warning-job fix.

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/8494-redundant-glob-imports

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.

proggeramlug added a commit that referenced this pull request Aug 20, 2026
#8494)

#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

Co-authored-by: Ralph Küpper <ralph@skelpo.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