1
Fork 0

New migration

This commit is contained in:
Aman Arora 2021-01-26 04:08:23 -05:00
parent 8f15cc1d88
commit 84f0a0a1c6
5 changed files with 29 additions and 29 deletions

View file

@ -1270,7 +1270,7 @@ fn migration_suggestion_for_2229(tcx: TyCtxt<'_>, need_migrations: &Vec<hir::Hir
need_migrations.iter().map(|v| format!("{}", var_name(tcx, *v))).collect::<Vec<_>>();
let migrations_list_concat = need_migrations_strings.join(", ");
format!("let ({}) = ({});", migrations_list_concat, migrations_list_concat)
format!("drop(&({}));", migrations_list_concat)
}
/// Helper function to determine if we need to escalate CaptureKind from