Skip to content

Add MSRV test for unnecessary_debug_formatting with OsStr #15001

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

donkomura
Copy link
Contributor

@donkomura donkomura commented Jun 6, 2025

unnecessary_debug_formatting suggests display() respected for
MSRV but lacking of tests. This adds tests to check MSRV for OsStr.

changelog: none

@donkomura donkomura marked this pull request as ready for review June 6, 2025 17:02
@rustbot
Copy link
Collaborator

rustbot commented Jun 6, 2025

r? @Jarcho

rustbot has assigned @Jarcho.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jun 6, 2025
@lopopolo
Copy link

hey folks, can we get this merged?

@Jarcho
Copy link
Contributor

Jarcho commented Jun 19, 2025

The lint was working correctly in the first place. Path::display has been stable since 1.0.

Can you keep just the test on OsStr?

@donkomura donkomura force-pushed the fix-unnecessary-debug-formatting-msrv branch from b2d176f to 424bdc9 Compare June 19, 2025 14:19
@donkomura
Copy link
Contributor Author

Thank you for the information. I removed the test on Path::display.

@Jarcho
Copy link
Contributor

Jarcho commented Jun 20, 2025

The rest of the changes are also unnecessary. The lint was already correctly checking the required MSRV in can_display_format. Only a test was missing.

@rustbot
Copy link
Collaborator

rustbot commented Jun 20, 2025

☔ The latest upstream changes (possibly 6064822) made this pull request unmergeable. Please resolve the merge conflicts.

`unnecessary_debug_formatting` suggests display() respected for
MSRV but lacking of tests. This adds tests to check MSRV for OsStr.

changelog: none
@donkomura donkomura force-pushed the fix-unnecessary-debug-formatting-msrv branch from 424bdc9 to e0cb4ce Compare June 21, 2025 06:04
@donkomura donkomura changed the title unnecessary_debug_formatting respect MSRV Check the MSRV for unnecessary_debug_formatting Jun 21, 2025
@donkomura
Copy link
Contributor Author

updated

@samueltardieu samueltardieu changed the title Check the MSRV for unnecessary_debug_formatting Add MSRV test for unnecessary_debug_formatting with OsStr Jun 21, 2025
@samueltardieu
Copy link
Contributor

samueltardieu commented Jun 21, 2025

Merging as the change is not now trivial

@samueltardieu samueltardieu added this pull request to the merge queue Jun 21, 2025
Merged via the queue into rust-lang:master with commit 07cc166 Jun 21, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants