Skip to content

Conversation

@Xylphy
Copy link
Contributor

@Xylphy Xylphy commented Jan 30, 2026

Summary
This PR re-activates the unused_qualifications lint by setting it back to warn in the lint config:

- #unused_qualifications = "warn" // TODO: fix warnings in uucore, then re-enable this lint
+ unused_qualifications = "warn"

Motivation
unused_qualifications had been commented out due to warnings in uucore. Those warnings have now been addressed, so we can restore the lint to catch future regressions.

Testing

  • Verified on Linux locally.
  • I haven’t tested on other platforms; CI should confirm if this passes

Notes
If CI reports platform-specific warnings or toolchain differences, I’ll follow up with fixes or adjust the lint scope as needed.

Currently tested in linux environment and wanted to test if this fails in CI
@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/follow-name (passes in this run but fails in the 'main' branch)

@sylvestre
Copy link
Contributor

Some jobs are sad

@Xylphy
Copy link
Contributor Author

Xylphy commented Jan 30, 2026

Hahahahahahaha mhmmm, I'll push a fix in a bit

@Xylphy Xylphy force-pushed the clippy/unused_qualifications branch from 670b9a3 to ad88105 Compare January 30, 2026 13:04
@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/tty/tty-eof (fails in this run but passes in the 'main' branch)

@Xylphy Xylphy force-pushed the clippy/unused_qualifications branch from c5d25d4 to a7a0347 Compare January 30, 2026 13:45
@Xylphy Xylphy marked this pull request as draft January 30, 2026 15:57
@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/shuf/shuf-reservoir (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/sort/sort-stale-thread-mem (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/basenc/bounded-memory is now passing!

1 similar comment
@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/shuf/shuf-reservoir (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/sort/sort-stale-thread-mem (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/basenc/bounded-memory is now passing!

@Xylphy Xylphy force-pushed the clippy/unused_qualifications branch from 651f901 to 40e53e4 Compare January 30, 2026 16:42
@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/shuf/shuf-reservoir (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/sort/sort-stale-thread-mem (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/basenc/bounded-memory is now passing!

1 similar comment
@github-actions
Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/shuf/shuf-reservoir (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/sort/sort-stale-thread-mem (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
Congrats! The gnu test tests/basenc/bounded-memory is now passing!

@Xylphy Xylphy marked this pull request as ready for review January 30, 2026 18:02
@Xylphy Xylphy requested a review from xtqqczze January 30, 2026 18:02
@xtqqczze
Copy link
Contributor

---- test_dd::test_bytes_suffix_recursive stdout ----
bin: "/home/runner/work/coreutils/coreutils/target/aarch64-unknown-linux-gnu/debug/coreutils"
run: /home/runner/work/coreutils/coreutils/target/aarch64-unknown-linux-gnu/debug/coreutils dd count=2Bx2 status=none
bin: "/home/runner/work/coreutils/coreutils/target/aarch64-unknown-linux-gnu/debug/coreutils"
run: /home/runner/work/coreutils/coreutils/target/aarch64-unknown-linux-gnu/debug/coreutils dd skip=2Bx2 status=none
bin: "/home/runner/work/coreutils/coreutils/target/aarch64-unknown-linux-gnu/debug/coreutils"
run: /home/runner/work/coreutils/coreutils/target/aarch64-unknown-linux-gnu/debug/coreutils dd iseek=2Bx2 status=none

thread 'test_dd::test_bytes_suffix_recursive' panicked at tests/uutests/src/lib/util.rs:412:35:
called `Option::unwrap()` on a `None` value

Looks like #10442

@Xylphy Xylphy marked this pull request as draft January 30, 2026 19:09
// Verify content is preserved
assert_eq!(
std::fs::read_to_string(&moved_file1).expect("Failed to read moved file1"),
read_to_string(&moved_file1).expect("Failed to read moved file1"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally I think fs::read_to_string would read better.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xtqqczze I removed read_to_string from the import and use fs::read_to_string now. Should I also switch set_permissions/write to fs::… and just use std::fs?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that would be preferable. Let's wait to see what other reviewers think.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okayy

@xtqqczze
Copy link
Contributor

Overall, the changes look fine to me, but since in some cases the qualification might have been added to improve readability, we should consider those instances carefully.

@Xylphy Xylphy force-pushed the clippy/unused_qualifications branch from e20765d to 4df9e71 Compare January 30, 2026 19:30
@Xylphy Xylphy force-pushed the clippy/unused_qualifications branch from 4df9e71 to ad00954 Compare January 30, 2026 19:35
@github-actions
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/shuf/shuf-reservoir (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/sort/sort-stale-thread-mem (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)
Note: The gnu test tests/printf/printf-surprise is now being skipped but was previously passing.

@Xylphy Xylphy marked this pull request as ready for review January 30, 2026 20:10
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.

5 participants