1
Fork 0

Make the diagnostic message more readable

This commit is contained in:
Aman Arora 2021-04-01 21:33:11 -04:00
parent a721957a3d
commit 1b9620d75f
13 changed files with 56 additions and 56 deletions

View file

@ -511,8 +511,8 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
};
let diagnostic_msg = format!(
"`{}` causes {} to be fully captured",
migration_string, migrated_variables_concat
"add a dummy let to cause {} to be fully captured",
migrated_variables_concat
);
diagnostics_builder.span_suggestion(