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

if and else have incompatible types in a let statement, where else block's evaluation will never be assigned A-control-flow Area: Control flow A-diagnostics Area: Messages for errors, warnings, and lints D-confusing Diagnostics: Confusing error or lint that should be reworked. D-terse Diagnostics: An error or lint that doesn't give enough information about the problem at hand. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#133316 opened Nov 21, 2024 by shanebishop
"Binding is possibly uninitalized" reports some additional spans incorrectly in addition to the correct one A-control-flow Area: Control flow A-diagnostics Area: Messages for errors, warnings, and lints D-papercut Diagnostics: An error or lint that needs small tweaks. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#126133 opened Jun 7, 2024 by Arnavion
Some unused_parens suggestions can result in keyword soup (even if technically correct). A-control-flow Area: Control flow A-diagnostics Area: Messages for errors, warnings, and lints A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. L-unused_parens Lint: unused_parens T-lang Relevant to the language team, which will review and decide on the PR/issue.
#114161 opened Jul 28, 2023 by eddyb
"Unreachable definition" warning after infallible expression in if-block A-control-flow Area: Control flow A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. L-unreachable_code Lint: unreachable_code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#111370 opened May 8, 2023 by fnetz
Compiler incorrectly understand initialisation of vars with patterns. A-control-flow Area: Control flow A-patterns Relating to patterns and pattern matching C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#110452 opened Apr 17, 2023 by lovely-error
"unreachable_code" warns even on "unreachable!" itself A-control-flow Area: Control flow A-diagnostics Area: Messages for errors, warnings, and lints A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. L-unreachable_code Lint: unreachable_code T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#107953 opened Feb 12, 2023 by safinaskar
Unexpectedly long lifetime of values created in let bindings A-control-flow Area: Control flow C-enhancement Category: An issue proposing an enhancement or a PR with one. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#98052 opened Jun 13, 2022 by theduke
Can't return reference to passed-in referent that is assigned in a loop A-borrow-checker Area: The borrow checker A-control-flow Area: Control flow A-NLL Area: Non-lexical lifetimes (NLL) C-bug Category: This is a bug. fixed-by-polonius Compiling with `-Zpolonius` fixes this issue. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#97901 opened Jun 8, 2022 by jonhoo
Recursive call warning does not appear inside a match statement A-control-flow Area: Control flow A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. C-enhancement Category: An issue proposing an enhancement or a PR with one. L-unconditional_recursion Lint: unconditional_recursion T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#94778 opened Mar 9, 2022 by levkk
Inserting a conditional break in working code causes strange borrowck error A-borrow-checker Area: The borrow checker A-control-flow Area: Control flow C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#91363 opened Nov 29, 2021 by SNCPlay42
unconditional_panic lint getting recognized in code that actually panics condtionally A-const-prop Area: Constant propagation A-control-flow Area: Control flow A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#90534 opened Nov 3, 2021 by pro465
Suggest removing let when unused variable shadows another variable A-control-flow Area: Control flow A-diagnostics Area: Messages for errors, warnings, and lints A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. A-resolve Area: Name/path resolution done by `rustc_resolve` specifically C-enhancement Category: An issue proposing an enhancement or a PR with one. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#84664 opened Apr 28, 2021 by meithecatte
Confusing lifetime error in the presence of a loop A-borrow-checker Area: The borrow checker A-control-flow Area: Control flow A-diagnostics Area: Messages for errors, warnings, and lints D-papercut Diagnostics: An error or lint that needs small tweaks. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
#81673 opened Feb 2, 2021 by jyn514
Diagnostics Improvement: Same Body in Branches A-control-flow Area: Control flow A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. C-bug Category: This is a bug. T-lang Relevant to the language team, which will review and decide on the PR/issue.
#79210 opened Nov 19, 2020 by jamesmunns
unreachable warning when an unreachable!() macro is called A-control-flow Area: Control flow A-lints Area: Lints (warnings about flaws in source code) such as unused_mut. C-feature-request Category: A feature request, i.e: not implemented / a PR.
#79157 opened Nov 18, 2020 by gilescope
ProTip! Updated in the last three days: updated:>2025-05-06.