@@ -488,7 +488,7 @@ impl<'a> AstValidator<'a> {
488488 . span_suggestion ( 
489489 replace_span, 
490490 & format ! ( "provide a definition for the {}" ,  ctx) , 
491-  sugg. to_string ( ) , 
491+  sugg, 
492492 Applicability :: HasPlaceholders , 
493493 ) 
494494 . emit ( ) ; 
@@ -522,7 +522,7 @@ impl<'a> AstValidator<'a> {
522522 . span_suggestion ( 
523523 span, 
524524 & format ! ( "remove the {}" ,  remove_descr) , 
525-  String :: new ( ) , 
525+  "" , 
526526 Applicability :: MaybeIncorrect , 
527527 ) 
528528 . span_label ( self . current_extern_span ( ) ,  "`extern` block begins here" ) 
@@ -570,7 +570,7 @@ impl<'a> AstValidator<'a> {
570570 . span_suggestion ( 
571571 body. span , 
572572 "remove the invalid body" , 
573-  ";" . to_string ( ) , 
573+  ";" , 
574574 Applicability :: MaybeIncorrect , 
575575 ) 
576576 . help ( 
@@ -599,7 +599,7 @@ impl<'a> AstValidator<'a> {
599599 . span_suggestion_verbose ( 
600600 span. until ( ident. span . shrink_to_lo ( ) ) , 
601601 "remove the qualifiers" , 
602-  "fn " . to_string ( ) , 
602+  "fn " , 
603603 Applicability :: MaybeIncorrect , 
604604 ) 
605605 . emit ( ) ; 
@@ -703,7 +703,7 @@ impl<'a> AstValidator<'a> {
703703 . span_suggestion ( 
704704 generics. span , 
705705 "remove the parameters" , 
706-  String :: new ( ) , 
706+  "" , 
707707 Applicability :: MachineApplicable , 
708708 ) 
709709 . emit ( ) ; 
@@ -721,7 +721,7 @@ impl<'a> AstValidator<'a> {
721721 . span_suggestion ( 
722722 span, 
723723 "remove the super traits or lifetime bounds" , 
724-  String :: new ( ) , 
724+  "" , 
725725 Applicability :: MachineApplicable , 
726726 ) 
727727 . emit ( ) ; 
@@ -753,7 +753,7 @@ impl<'a> AstValidator<'a> {
753753 . span_suggestion ( 
754754 total_span, 
755755 "remove these associated items" , 
756-  String :: new ( ) , 
756+  "" , 
757757 Applicability :: MachineApplicable , 
758758 ) 
759759 . span_label ( ident_span,  "auto trait cannot have associated items" ) 
@@ -993,7 +993,7 @@ fn validate_generic_param_order(
993993 err. span_suggestion ( 
994994 span, 
995995 "reorder the parameters: lifetimes, then consts and types" , 
996-  ordered_params. clone ( ) , 
996+  & ordered_params, 
997997 Applicability :: MachineApplicable , 
998998 ) ; 
999999 err. emit ( ) ; 
0 commit comments