rustc_
lint
1.83.0-dev
In rustc_
lint::
if_
let_
rescope
Structs
AltHead
ClosingBrackets
ConsequentRewrite
FindSignificantDropper
IfLetRescope
IfLetRescopeLint
IfLetRescopeRewrite
Enums
SingleArmMatchBegin
Statics
IF_LET_RESCOPE
Functions
expr_parent_is_else
expr_parent_is_stmt
match_head_needs_bracket
rustc_lint
::
if_let_rescope
Function
match_head_needs_bracket
Copy item path
Settings
Help
Summary
source
fn match_head_needs_bracket(tcx:
TyCtxt
<'_>, expr: &
Expr
<'_>) ->
bool