- TyKind::BareFn(ref f) => {
- self.with_in_scope_lifetime_defs(&f.generic_params, |this| {
- this.with_anonymous_lifetime_mode(AnonymousLifetimeMode::PassThrough, |this| {
- hir::TyKind::BareFn(this.arena.alloc(hir::BareFnTy {
- generic_params: this.lower_generic_params(
- &f.generic_params,
- &NodeMap::default(),
- ImplTraitContext::disallowed(),
- ),
- unsafety: f.unsafety,
- abi: this.lower_extern(f.ext),
- decl: this.lower_fn_decl(&f.decl, None, false, None),
- param_names: this.arena.alloc_from_iter(
- this.lower_fn_params_to_names(&f.decl).into_iter(),
- ),
- }))
- })
+ TyKind::BareFn(ref f) => self.with_in_scope_lifetime_defs(&f.generic_params, |this| {
+ this.with_anonymous_lifetime_mode(AnonymousLifetimeMode::PassThrough, |this| {
+ hir::TyKind::BareFn(this.arena.alloc(hir::BareFnTy {
+ generic_params: this.lower_generic_params(
+ &f.generic_params,
+ &NodeMap::default(),
+ ImplTraitContext::disallowed(),
+ ),
+ unsafety: f.unsafety,
+ abi: this.lower_extern(f.ext),
+ decl: this.lower_fn_decl(&f.decl, None, false, None),
+ param_names: this.lower_fn_params_to_names(&f.decl),
+ }))