- AdjustAddEnv(_, store) => {
- match unadjusted_ty.sty {
- ty::ty_bare_fn(Some(_), ref b) => {
- let bounds = ty::ExistentialBounds {
- region_bound: ReStatic,
- builtin_bounds: all_builtin_bounds(),
- projection_bounds: vec!(),
- };
-
- ty::mk_closure(
- cx,
- ty::ClosureTy {unsafety: b.unsafety,
- onceness: ast::Many,
- store: store,
- bounds: bounds,
- sig: b.sig.clone(),
- abi: b.abi})
- }
- ref b => {
- cx.sess.bug(
- format!("add_env adjustment on non-fn-item: \
- {}",
- b).as_slice());
- }
- }
- }
-