Remove useless match.

This commit is contained in:
Nicholas Nethercote 2023-04-13 14:46:51 +10:00
parent 9693b178fc
commit 722e07854a

View File

@ -293,10 +293,7 @@ pub fn resolve_interior<'a, 'tcx>(
type_causes,
FnMutDelegate {
regions: &mut |br| {
let kind = match br.kind {
ty::BrAnon(span) => ty::BrAnon(span),
_ => br.kind,
};
let kind = br.kind;
let var = ty::BoundVar::from_usize(bound_vars.len());
bound_vars.push(ty::BoundVariableKind::Region(kind));
counter += 1;