summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2022-04-29 18:20:23 -0400
committerGitHub <noreply@github.com>2022-04-29 18:20:23 -0400
commit5c843a1a6e24aeabb3497065a362caf7b3e2d3b1 (patch)
tree3933db10caabd1ac0f527f8a2e6e7c0d84f63611 /spec/ruby/core/array
parent7c039e423cb59c9e5d76df9f1dc1bf8b1a1b9a6b (diff)
YJIT: Enable default rustc lints (warnings) (#5864)
`rustc` performs in depth dead code analysis and issues warning even for things like unused struct fields and unconstructed enum variants. This was annoying for us during the port but hopefully they are less of an issue now. This patch enables all the unused warnings we disabled and address all the warnings we previously ignored. Generally, the approach I've taken is to use `cfg!` instead of using the `cfg` attribute and to delete code where it makes sense. I've put `#[allow(unused)]` on things we intentionally keep around for printf style debugging and on items that are too annoying to keep warning-free in all build configs.
Notes
Notes: Merged-By: maximecb <maximecb@ruby-lang.org>
Diffstat (limited to 'spec/ruby/core/array')
0 files changed, 0 insertions, 0 deletions