Skip to content

[test-hygiene] 整树 -D warnings 普查:16 个钉文件共 31 处死代码/未用 import(#3772/#3776 同类,Windows 腿) #3779

Closed

Description

@caomengxuan666

普查结论

#3776 车道在 X299 上以 RUSTFLAGS="-D warnings" cargo check --locked --tests --keep-going 对 tip 1a51222 + #3776 修法做整树普查:16 个钉文件、31 处诊断,全部是测试文件里的死代码/未用 import,src/ 无红。issue523 与 issue1794 均不在普查名单内(#3776 与 #3775 已干净)。

名单(文件 → 诊断)

文件 诊断
tests/issue566_bare_drive_root_enoent_regressions.rs 未用 import Path(:28:17)
tests/issue1276_env_import_diagnostics_regressions.rs 未用 import Stdio(:19:29)
tests/issue2298_numbered_readwrite_spawn_regressions.rs RUBASH 常量、Fixture、fixture、Fixture::run/read 未用(4 处)
tests/issue2294_stage_stderr_redirect_regressions.rs test_dir、rubash_stdin、run_in、wait_file_contents 未用(4 处)
tests/issue1331_1334_signal_and_startup.rs run_script 未用
tests/issue1657_tilde_passwd_contract_regressions.rs Scratch 未构造、Scratch::new/run、passwd_home 未用(3 处)
tests/issue2737_compgen_user_tilde.rs run 未用
tests/regression.rs 两个 run 函数未用(:5850、:6009)
tests/issue592_argv_translation_completeness.rs 未用变量 stdout(:249:16)
tests/issue2036_s2_introspection_windows.rs 字段 stderr 未读(:56:5)
tests/issue2278_numbered_stdio_dup_regressions.rs rubash_in_stdin_file 未用(:57:4)
tests/issue2473_procsub_operand_marker_regressions.rs 未用 import std::io::Write as _(:29:5)
tests/issue2390_for_list_procsub_regressions.rs RUBASH、Outcome、run_script、normalize_fd_numbers、assert_case 未用(5 处)
tests/issue3540_3541_nounset_comsub_subscript.rs 未用变量 stdout(:72:10)
tests/issue1021_exec_procsub_regressions.rs 未用 import BufRead/BufReader、std::sync::mpsc、std::time::Duration(3 处)
tests/d11_pipeline_squote_carrier_regressions.rs 字段 stderr 未读(:32:5)

注意(修法车道必读)

归宿

测试卫生波,与 #3772/#3776 同批处理。

Refs #3772, Refs #3776.

Activity

  1. added this to the 1.5.1 milestone on Nov 16, 2026
  2. added
    bug
    P3-low
    on Nov 16, 2026
  3. caomengxuan666 commented on Nov 16, 2026

    @caomengxuan666
    MemberAuthor

    续作车道接手:前任车道因重复派工指令提前收尾,未交付修法;本车道在同一工作区(~/workspace/fix-3779/,分支 fix/3779-test-dead-code-census,基底 364478d)继续完成 16 处清理 + 双腿 --keep-going 零诊断收尾。前任的 Linux base census 日志已接收(墙期 EDQUOT 噪声部分墙开后重跑)。

  4. caomengxuan666 commented on Nov 16, 2026

    @caomengxuan666
    MemberAuthor

    修法已合入:PR #3781(squash merge c3bf91e)完成整树 -D warnings 普查 16 处 + Linux 腿对照第 17 处(issue2642),皆为 tests/ 死代码/未用 import,src/ 不动。#3781 正文为 Refs-only,故手关本单。队长复核 PASS 6917331951:rebase 后 X299 腿零诊断;Linux 腿唯一红 issue3255:117 属上游带入(blob sha 两边一致),已另立单 #3789;CI goldens 2 红与 master 自身腿逐字相同(基线)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P3-lowbug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions