Skip to content

Commit 3d85723

Browse files
committedJul 15, 2024·
cleanup
1 parent 578578d commit 3d85723

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed
 

‎compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, '_, 'infcx, 'tcx> {
13411341
};
13421342
err.span_suggestion_verbose(
13431343
span,
1344-
format!("consider {changing} this binding's type xxx"),
1344+
format!("consider {changing} this binding's type"),
13451345
sugg,
13461346
Applicability::HasPlaceholders,
13471347
);
@@ -1455,11 +1455,6 @@ fn suggest_ampmut<'tcx>(
14551455
// let x: &i32 = &'a 5;
14561456
// ^^ lifetime annotation not allowed
14571457
//
1458-
eprintln!("opt_assignment_rhs_span: {:?}", opt_assignment_rhs_span);
1459-
eprintln!(
1460-
"code result: {:?}",
1461-
tcx.sess.source_map().span_to_snippet(opt_assignment_rhs_span.unwrap())
1462-
);
14631458
if let Some(assignment_rhs_span) = opt_assignment_rhs_span
14641459
&& let Ok(src) = tcx.sess.source_map().span_to_snippet(assignment_rhs_span)
14651460
&& let Some(stripped) = src.strip_prefix('&')

0 commit comments

Comments
 (0)