diff --git a/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs b/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs index 01157f6a7c7d5..0b6c527b8c082 100644 --- a/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs +++ b/compiler/rustc_borrowck/src/diagnostics/mutability_errors.rs @@ -1341,7 +1341,7 @@ impl<'infcx, 'tcx> MirBorrowckCtxt<'_, '_, 'infcx, 'tcx> { }; err.span_suggestion_verbose( span, - format!("consider {changing} this binding's type xxx"), + format!("consider {changing} this binding's type"), sugg, Applicability::HasPlaceholders, ); @@ -1455,11 +1455,6 @@ fn suggest_ampmut<'tcx>( // let x: &i32 = &'a 5; // ^^ lifetime annotation not allowed // - eprintln!("opt_assignment_rhs_span: {:?}", opt_assignment_rhs_span); - eprintln!( - "code result: {:?}", - tcx.sess.source_map().span_to_snippet(opt_assignment_rhs_span.unwrap()) - ); if let Some(assignment_rhs_span) = opt_assignment_rhs_span && let Ok(src) = tcx.sess.source_map().span_to_snippet(assignment_rhs_span) && let Some(stripped) = src.strip_prefix('&')