New migration
This commit is contained in:
parent
8f15cc1d88
commit
84f0a0a1c6
5 changed files with 29 additions and 29 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue