Skip to content

Commit 722e078

Browse files
committed
Remove useless match.
1 parent 9693b17 commit 722e078

File tree

1 file changed

+1
-4
lines changed
  • compiler/rustc_hir_typeck/src/generator_interior

1 file changed

+1
-4
lines changed

compiler/rustc_hir_typeck/src/generator_interior/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,7 @@ pub fn resolve_interior<'a, 'tcx>(
293293
type_causes,
294294
FnMutDelegate {
295295
regions: &mut |br| {
296-
let kind = match br.kind {
297-
ty::BrAnon(span) => ty::BrAnon(span),
298-
_ => br.kind,
299-
};
296+
let kind = br.kind;
300297
let var = ty::BoundVar::from_usize(bound_vars.len());
301298
bound_vars.push(ty::BoundVariableKind::Region(kind));
302299
counter += 1;

0 commit comments

Comments
 (0)