We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9693b17 commit 722e078Copy full SHA for 722e078
compiler/rustc_hir_typeck/src/generator_interior/mod.rs
@@ -293,10 +293,7 @@ pub fn resolve_interior<'a, 'tcx>(
293
type_causes,
294
FnMutDelegate {
295
regions: &mut |br| {
296
- let kind = match br.kind {
297
- ty::BrAnon(span) => ty::BrAnon(span),
298
- _ => br.kind,
299
- };
+ let kind = br.kind;
300
let var = ty::BoundVar::from_usize(bound_vars.len());
301
bound_vars.push(ty::BoundVariableKind::Region(kind));
302
counter += 1;
0 commit comments