@@ -1481,38 +1481,38 @@ impl<'a, 'tcx> ErrorReportingHelpers<'tcx> for InferCtxt<'a, 'tcx> {
1481
1481
infer:: Subtype ( ref trace) => {
1482
1482
let desc = match trace. origin {
1483
1483
infer:: Misc ( _) => {
1484
- format ! ( "types are compatible" )
1484
+ "types are compatible"
1485
1485
}
1486
1486
infer:: MethodCompatCheck ( _) => {
1487
- format ! ( "method type is compatible with trait" )
1487
+ "method type is compatible with trait"
1488
1488
}
1489
1489
infer:: ExprAssignable ( _) => {
1490
- format ! ( "expression is assignable" )
1490
+ "expression is assignable"
1491
1491
}
1492
1492
infer:: RelateTraitRefs ( _) => {
1493
- format ! ( "traits are compatible" )
1493
+ "traits are compatible"
1494
1494
}
1495
1495
infer:: RelateSelfType ( _) => {
1496
- format ! ( "self type matches impl self type" )
1496
+ "self type matches impl self type"
1497
1497
}
1498
1498
infer:: RelateOutputImplTypes ( _) => {
1499
- format ! ( "trait type parameters matches those \
1500
- specified on the impl")
1499
+ "trait type parameters matches those \
1500
+ specified on the impl"
1501
1501
}
1502
1502
infer:: MatchExpressionArm ( _, _) => {
1503
- format ! ( "match arms have compatible types" )
1503
+ "match arms have compatible types"
1504
1504
}
1505
1505
infer:: IfExpression ( _) => {
1506
- format ! ( "if and else have compatible types" )
1506
+ "if and else have compatible types"
1507
1507
}
1508
1508
infer:: IfExpressionWithNoElse ( _) => {
1509
- format ! ( "if may be missing an else clause" )
1509
+ "if may be missing an else clause"
1510
1510
}
1511
1511
infer:: RangeExpression ( _) => {
1512
- format ! ( "start and end of range have compatible types" )
1512
+ "start and end of range have compatible types"
1513
1513
}
1514
1514
infer:: EquatePredicate ( _) => {
1515
- format ! ( "equality where clause is satisfied" )
1515
+ "equality where clause is satisfied"
1516
1516
}
1517
1517
} ;
1518
1518
@@ -1652,8 +1652,8 @@ impl<'a, 'tcx> ErrorReportingHelpers<'tcx> for InferCtxt<'a, 'tcx> {
1652
1652
infer:: RelateRegionParamBound ( span) => {
1653
1653
self . tcx . sess . span_note (
1654
1654
span,
1655
- & format ! ( "...so that the declared lifetime parameter bounds \
1656
- are satisfied") ) ;
1655
+ "...so that the declared lifetime parameter bounds \
1656
+ are satisfied") ;
1657
1657
}
1658
1658
infer:: SafeDestructor ( span) => {
1659
1659
self . tcx . sess . span_note (
0 commit comments