Make the diagnostic message more readable
This commit is contained in:
parent
a721957a3d
commit
1b9620d75f
13 changed files with 56 additions and 56 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue