about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-04-13 14:46:51 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-04-13 14:47:14 +1000
commit722e07854a8ea7b276c802400ac7224f41aa6910 (patch)
tree146e2de0e1745add733ea1e80d36c83c357d17e3
parent9693b178fcebe3cc27129b7bc1237ee5eb706af8 (diff)
downloadrust-722e07854a8ea7b276c802400ac7224f41aa6910.tar.gz
rust-722e07854a8ea7b276c802400ac7224f41aa6910.zip
Remove useless match.
-rw-r--r--compiler/rustc_hir_typeck/src/generator_interior/mod.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_hir_typeck/src/generator_interior/mod.rs b/compiler/rustc_hir_typeck/src/generator_interior/mod.rs
index 5faa6ab13dd..6f0d078fb2c 100644
--- a/compiler/rustc_hir_typeck/src/generator_interior/mod.rs
+++ b/compiler/rustc_hir_typeck/src/generator_interior/mod.rs
@@ -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;