Skip to content

Conversation

tgross35
Copy link
Contributor

@tgross35 tgross35 commented Jun 2, 2025

lints: Warn rather than deny

We check with -Dwarnings in CI, so these still get checked. This
change serves to prevent failures to compile downstream if the lint
expectations are not met on untested targets.


lints: Remove allow(dead_code)

As discussed in 1, some changes to dead code warnings caused a lot of
code to be inaccurately reported as dead in libc. The change was
reverted and improved since then, so we no longer need to skip this
check.


lints: Remove allow(redundant_semicolons)

@tgross35 tgross35 added stable-nominated This PR should be considered for cherry-pick to libc's stable release branch and removed S-waiting-on-review labels Jun 2, 2025
We check with `-Dwarnings` in CI, so these still get checked. This
change serves to prevent failures to compile downstream if the lint
expectations are not met on untested targets.
@rustbot
Copy link
Collaborator

rustbot commented Jun 2, 2025

Some changes occurred in solarish module

cc @jclulow, @pfmooney

@tgross35 tgross35 force-pushed the update-lints branch 2 times, most recently from f726a7d to 64a03e3 Compare June 3, 2025 18:13
@rustbot rustbot added the O-musl label Jun 3, 2025
@rustbot rustbot added the O-redox label Jun 3, 2025
As discussed in [1], some changes to dead code warnings caused a lot of
code to be inaccurately reported as dead in `libc`. The change was
reverted and improved since then, so we no longer need to skip this
check.

Includes some changes to make things pass with the lint.

[1]: rust-lang#3740
@tgross35 tgross35 added this pull request to the merge queue Jun 3, 2025
Merged via the queue into rust-lang:main with commit 2d96246 Jun 3, 2025
75 of 78 checks passed
@tgross35 tgross35 deleted the update-lints branch June 3, 2025 20:13
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Jun 3, 2025
We check with `-Dwarnings` in CI, so these still get checked. This
change serves to prevent failures to compile downstream if the lint
expectations are not met on untested targets.

(backport <rust-lang#4473>)
(cherry picked from commit 260e357)
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Jun 3, 2025
(backport <rust-lang#4473>)
(cherry picked from commit 0b6aa1b)
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Jun 3, 2025
As discussed in [1], some changes to dead code warnings caused a lot of
code to be inaccurately reported as dead in `libc`. The change was
reverted and improved since then, so we no longer need to skip this
check.

Includes some changes to make things pass with the lint.

[1]: rust-lang#3740

(backport <rust-lang#4473>)
(cherry picked from commit 77a21a8)
@tgross35 tgross35 mentioned this pull request Jun 3, 2025
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Jun 3, 2025
We check with `-Dwarnings` in CI, so these still get checked. This
change serves to prevent failures to compile downstream if the lint
expectations are not met on untested targets.

(backport <rust-lang#4473>)
(cherry picked from commit 260e357)
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Jun 3, 2025
(backport <rust-lang#4473>)
(cherry picked from commit 0b6aa1b)
tgross35 added a commit to tgross35/rust-libc that referenced this pull request Jun 3, 2025
As discussed in [1], some changes to dead code warnings caused a lot of
code to be inaccurately reported as dead in `libc`. The change was
reverted and improved since then, so we no longer need to skip this
check.

Includes some changes to make things pass with the lint.

[1]: rust-lang#3740

(backport <rust-lang#4473>)
(cherry picked from commit 77a21a8)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Jun 3, 2025
DorianNiemiecSVRJS pushed a commit to DorianNiemiecSVRJS/rust-libc that referenced this pull request Jun 21, 2025
We check with `-Dwarnings` in CI, so these still get checked. This
change serves to prevent failures to compile downstream if the lint
expectations are not met on untested targets.

(backport <rust-lang#4473>)
(cherry picked from commit 260e357)
DorianNiemiecSVRJS pushed a commit to DorianNiemiecSVRJS/rust-libc that referenced this pull request Jun 21, 2025
(backport <rust-lang#4473>)
(cherry picked from commit 0b6aa1b)
DorianNiemiecSVRJS pushed a commit to DorianNiemiecSVRJS/rust-libc that referenced this pull request Jun 21, 2025
As discussed in [1], some changes to dead code warnings caused a lot of
code to be inaccurately reported as dead in `libc`. The change was
reverted and improved since then, so we no longer need to skip this
check.

Includes some changes to make things pass with the lint.

[1]: rust-lang#3740

(backport <rust-lang#4473>)
(cherry picked from commit 77a21a8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-linux O-mips O-musl O-redox O-solarish O-unix stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants