Skip to content

refactor: bump edition to 2024 - #900

Open
xtqqczze wants to merge 1 commit into
uutils:mainfrom
xtqqczze:refactor/edition2024
Open

xtqqczze wants to merge 1 commit into
uutils:mainfrom
xtqqczze:refactor/edition2024

Conversation

@xtqqczze

Copy link
Copy Markdown
Contributor

No description provided.

@xtqqczze
xtqqczze force-pushed the refactor/edition2024 branch from 990c8f9 to 0e76fee Compare October 10, 2026 15:11
@codecov

codecov Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.88679% with 48 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.04%. Comparing base (148f36f) to head (41b1060).

Files with missing lines Patch % Lines
src/find/matchers/mod.rs 76.66% 26 Missing and 2 partials ⚠️
src/locate/mod.rs 23.07% 7 Missing and 3 partials ⚠️
src/find/matchers/type_matcher.rs 62.50% 3 Missing ⚠️
src/find/matchers/entry.rs 71.42% 0 Missing and 2 partials ⚠️
src/find/matchers/size.rs 60.00% 1 Missing and 1 partial ⚠️
src/find/mod.rs 60.00% 2 Missing ⚠️
src/find/matchers/ls.rs 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #900      +/-   ##
==========================================
+ Coverage   92.62%   93.04%   +0.42%     
==========================================
  Files          37       37              
  Lines        7808     7853      +45     
  Branches      392      365      -27     
==========================================
+ Hits         7232     7307      +75     
+ Misses        435      432       -3     
+ Partials      141      114      -27     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xtqqczze
xtqqczze force-pushed the refactor/edition2024 branch from 0e76fee to 81c85cf Compare October 10, 2026 15:14
@codspeed

codspeed Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 15 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 20 untouched benchmarks


Comparing xtqqczze:refactor/edition2024 (41b1060) with main (148f36f)

Open in CodSpeed

@github-actions

Copy link
Copy Markdown

Commit 0e76fee has test result changes:

bfs testsuite:

Test results comparison:
  Current:   TOTAL: 316 / PASSED: 273 / FAILED: 37 / SKIPPED: 6
  Reference: TOTAL: 317 / PASSED: 274 / FAILED: 37 / SKIPPED: 6

Changes from main branch:
  TOTAL: -1
  PASSED: -1
  FAILED: +0

No result in this run (1) - hung, crashed, or renamed:
  ? posix/extra_paren (was PASS)

Comment thread src/find/matchers/mod.rs Outdated
Some(utc_datetime.timestamp_millis())
} else {
None
match re.ok()?.captures(date_str) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

let captures = re.ok()?.captures(date_str)?; would be simpler, no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Maybe so, but I intend to do the minimum necessary in this PR to bump edition to 2024.

Comment thread src/find/matchers/mod.rs
assert!(e.to_string().contains("expected an expression"));
} else {
panic!("parsing argument lists that end in -not should fail");
match build_top_level_matcher(&[arg], &mut config) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the auto-migration made these quite verbose
could you please use let Err(e) = ... else { panic!(...) }; or unwrap_err() instead? it's the same pattern ~25 times

Comment thread src/xargs/mod.rs
}
_ => {
eprintln!(
"WARNING: -L, -n and -I/-i are mutually exclusive, but more than one were given; \

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the string literal isn't reindented anymore, could you please fix it by hand?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I don't know what you're asking for here, like this?:

            eprintln!(
                "WARNING: -L, -n and -I/-i are mutually exclusive, but more than one were given; \
                    only the last option will be used"
            );

@sylvestre

Copy link
Copy Markdown
Contributor

sorry but it needs to be rebased

@xtqqczze
xtqqczze force-pushed the refactor/edition2024 branch from 81c85cf to 5ba77e7 Compare October 24, 2026 12:45
@xtqqczze
xtqqczze force-pushed the refactor/edition2024 branch from 5ba77e7 to 41b1060 Compare October 24, 2026 12:48
@github-actions

Copy link
Copy Markdown

Commit 5ba77e7 has test result changes:

bfs testsuite:

Test results comparison:
  Current:   TOTAL: 317 / PASSED: 277 / FAILED: 34 / SKIPPED: 6
  Reference: TOTAL: 316 / PASSED: 276 / FAILED: 34 / SKIPPED: 6

Changes from main branch:
  TOTAL: +1
  PASSED: +1
  FAILED: +0

@github-actions

Copy link
Copy Markdown

Commit 41b1060 has test result changes:

bfs testsuite:

Test results comparison:
  Current:   TOTAL: 315 / PASSED: 275 / FAILED: 34 / SKIPPED: 6
  Reference: TOTAL: 316 / PASSED: 276 / FAILED: 34 / SKIPPED: 6

Changes from main branch:
  TOTAL: -1
  PASSED: -1
  FAILED: +0

No result in this run (1) - hung, crashed, or renamed:
  ? posix/depth_error (was PASS)

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.

2 participants