Repository navigation
test: drop unused use super::* in issue3255 interactive mod (Refs #3789) - #3794
Merged
Merged
Conversation
Root cause: `#[cfg(unix)] mod interactive` in tests/issue3255_histexpand_prefix_invocation_name.rs imported `super::*` but referenced no parent item — the parent helpers parse_c_no_name/apply_with_bash_argv0 are used only in parent scope, and the mod uses only fully-qualified std::/libc:: paths plus its own items. Under RUSTFLAGS="-D warnings" the whole-tree `cargo check --tests` hard-errors on the unused glob import. Fix is a one-line deletion (+0/-1); nail semantics unchanged. Refs #3789
caomengxuan666
marked this pull request as ready for review
November 16, 2026 14:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
根因
tests/issue3255_histexpand_prefix_invocation_name.rs:117(#[cfg(unix)] mod interactive内)的use super::*;在该 mod 内无任何引用:父级 helper(parse_c_no_name/apply_with_bash_argv0)只在父级作用域被使用,mod 内只用全限定std::/libc::路径与自身 items(scratch_home/interactive_session/FAILED_INPUT)。整树RUSTFLAGS="-D warnings" cargo check --tests --keep-going在此硬错(error: unused import: super::*),与 #3772/#3776 同类。修法
删该行 import 一行(+0/−1),其余不动;钉语义不动。
本 PR 删除了什么
tests/issue3255_histexpand_prefix_invocation_name.rs内#[cfg(unix)] mod interactive中的use super::*;一行(未使用的 glob import)。无产品代码、无测试用例、无公开 API 被删除或改动。验证(UNVERIFIED-BY-CAPTAIN)
RUSTFLAGS="-D warnings" cargo check --locked --tests+ 该 stem 全绿,待补。Refs #3789