@@ -288,10 +288,9 @@ impl<'tcx> ty::ctxt<'tcx> {
288288 let found_str = values. found . sort_string ( self ) ;
289289 if expected_str == found_str && expected_str == "closure" {
290290 self . sess . span_note ( sp,
291- & format ! ( "no two closures, even if identical, have the same type" ) ) ;
291+ "no two closures, even if identical, have the same type" ) ;
292292 self . sess . span_help ( sp,
293- & format ! ( "consider boxing your closure and/or \
294- using it as a trait object") ) ;
293+ "consider boxing your closure and/or using it as a trait object" ) ;
295294 }
296295 } ,
297296 TyParamDefaultMismatch ( values) => {
@@ -307,8 +306,7 @@ impl<'tcx> ty::ctxt<'tcx> {
307306 . and_then ( |node_id| self . map . opt_span ( node_id) )
308307 {
309308 Some ( span) => {
310- self . sess . span_note ( span,
311- & format ! ( "a default was defined here..." ) ) ;
309+ self . sess . span_note ( span, "a default was defined here..." ) ;
312310 }
313311 None => {
314312 self . sess . note (
@@ -319,15 +317,14 @@ impl<'tcx> ty::ctxt<'tcx> {
319317
320318 self . sess . span_note (
321319 expected. origin_span ,
322- & format ! ( "...that was applied to an unconstrained type variable here" ) ) ;
320+ "...that was applied to an unconstrained type variable here" ) ;
323321
324322 match
325323 self . map . as_local_node_id ( found. def_id )
326324 . and_then ( |node_id| self . map . opt_span ( node_id) )
327325 {
328326 Some ( span) => {
329- self . sess . span_note ( span,
330- & format ! ( "a second default was defined here..." ) ) ;
327+ self . sess . span_note ( span, "a second default was defined here..." ) ;
331328 }
332329 None => {
333330 self . sess . note (
@@ -338,7 +335,7 @@ impl<'tcx> ty::ctxt<'tcx> {
338335
339336 self . sess . span_note (
340337 found. origin_span ,
341- & format ! ( "...that also applies to the same type variable here" ) ) ;
338+ "...that also applies to the same type variable here" ) ;
342339 }
343340 _ => { }
344341 }
0 commit comments