Fold PatKind::NamedConstant into PatKind::Constant
This commit is contained in:
@@ -536,7 +536,7 @@ impl<'p, 'tcx: 'p> RustcPatCtxt<'p, 'tcx> {
|
||||
),
|
||||
}
|
||||
}
|
||||
PatKind::Constant { value } | PatKind::NamedConstant { value, span: _ } => {
|
||||
PatKind::Constant { value, opt_def: _ } => {
|
||||
match ty.kind() {
|
||||
ty::Bool => {
|
||||
ctor = match value.try_eval_bool(cx.tcx, cx.param_env) {
|
||||
|
||||
Reference in New Issue
Block a user