Skip to content

Issues: rust-lang/rust

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

Author
Filter by author
Loading
Label
Filter by label
Loading
Use alt + click/return to exclude labels
or + click/return for logical OR
Projects
Filter by project
Loading
Milestones
Filter by milestone
Loading
Assignee
Filter by who’s assigned
Sort

Issues list

pub items in binary crates should not be excluded from dead_code lint A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. L-dead_code Lint: dead_code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#127497 opened Jul 8, 2024 by alice-i-cecile
Associated constants used in equality should be considered as used A-diagnostics Area: Messages for errors, warnings, and lints F-associated_const_equality `#![feature(associated_const_equality)]` L-dead_code Lint: dead_code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#126729 opened Jun 20, 2024 by mu001999
Dead code pass no longer considers enum used in pub extern "C" fn as used A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. L-dead_code Lint: dead_code S-has-mcve Status: A Minimal Complete and Verifiable Example has been found for this issue T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-lang Relevant to the language team, which will review and decide on the PR/issue.
#126706 opened Jun 19, 2024 by chinedufn
dead_code lint wrongly warns about public repr(C) structs with private fields but no constructors A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. L-dead_code Lint: dead_code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#126169 opened Jun 8, 2024 by asomers
weird behavior from -Fdead_code vs -Funused A-clippy Area: Clippy A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. L-dead_code Lint: dead_code L-unused_imports Lint: unused_imports
#126029 opened Jun 5, 2024 by andrewbanchich
cannot forbid dead_code since lint triggers for third party macros A-clippy Area: Clippy A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. L-dead_code Lint: dead_code
#126028 opened Jun 5, 2024 by andrewbanchich
&T -> *const T or &mut T -> *mut T should be considered a use of inner fields A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. L-dead_code Lint: dead_code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#125435 opened May 23, 2024 by workingjubilee
Unexpected dead_code warning when returning Result type from main A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. L-dead_code Lint: dead_code S-has-mcve Status: A Minimal Complete and Verifiable Example has been found for this issue T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#123418 opened Apr 3, 2024 by zschreur
Allow dead_code lint to be configured to validate that all pub code is used within the workspace A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-enhancement Category: An issue proposing an enhancement or a PR with one. C-feature-request Category: A feature request, i.e: not implemented / a PR. L-dead_code Lint: dead_code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#120079 opened Jan 18, 2024 by alice-i-cecile
Unused extern fn in dead code warns A-diagnostics Area: Messages for errors, warnings, and lints A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. L-dead_code Lint: dead_code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#116944 opened Oct 19, 2023 by robertbastian
dead_code: Inherent associated types are unconditionally considered dead A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. F-inherent_associated_types `#![feature(inherent_associated_types)]` L-dead_code Lint: dead_code requires-nightly This issue requires a nightly compiler in some way.
#110332 opened Apr 14, 2023 by fmease
Rust compiler shows unused function warning when using modules with the path expression A-diagnostics Area: Messages for errors, warnings, and lints A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. A-resolve Area: Path resolution C-bug Category: This is a bug. D-incorrect Diagnostics: A diagnostic that is giving misleading or incorrect information. L-dead_code Lint: dead_code P-low Low priority S-has-mcve Status: A Minimal Complete and Verifiable Example has been found for this issue T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#108695 opened Mar 3, 2023 by DEMON1A
Incorrect dead_code warning on a function that is being called A-diagnostics Area: Messages for errors, warnings, and lints A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. D-confusing Diagnostics: Confusing error or lint that should be reworked. L-dead_code Lint: dead_code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#103686 opened Oct 28, 2022 by RalfJung
1.64 - Unexpected dead_code warning from inside macro expansion. A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example E-needs-test Call for participation: An issue has been fixed and does not reproduce, but no test has been added. L-dead_code Lint: dead_code P-medium Medium priority regression-from-stable-to-stable Performance or correctness regression from one stable version to another. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#102217 opened Sep 24, 2022 by Themayu
False positive dead code warning A-diagnostics Area: Messages for errors, warnings, and lints A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. A-proc-macros Area: Procedural macros C-bug Category: This is a bug. L-dead_code Lint: dead_code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#102190 opened Sep 23, 2022 by alexkazik
dead_code warning on an used module. A-diagnostics Area: Messages for errors, warnings, and lints A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. L-dead_code Lint: dead_code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#101164 opened Aug 29, 2022 by Aex12
Compiler warning about dead code when enum is used in a match against return value of FFI call A-ffi Area: Foreign Function Interface (FFI) A-lint Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. L-dead_code Lint: dead_code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#85677 opened May 25, 2021 by felipeamp
ProTip! Type g i on any issue or pull request to go back to the issue listing page.