File tree 2 files changed +8
-9
lines changed
2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1024,14 +1024,14 @@ fn confirm_object_candidate<'cx,'tcx>(
1024
1024
{
1025
1025
let self_ty = obligation_trait_ref. self_ty ( ) ;
1026
1026
let object_ty = selcx. infcx ( ) . shallow_resolve ( self_ty) ;
1027
- debug ! ( "assemble_candidates_from_object_type (object_ty={:?})" ,
1027
+ debug ! ( "confirm_object_candidate (object_ty={:?})" ,
1028
1028
object_ty) ;
1029
1029
let data = match object_ty. sty {
1030
1030
ty:: TyTrait ( ref data) => data,
1031
1031
_ => {
1032
1032
span_bug ! (
1033
1033
obligation. cause. span,
1034
- "assemble_candidates_from_object_type called with non-object: {:?}" ,
1034
+ "confirm_object_candidate called with non-object: {:?}" ,
1035
1035
object_ty) ;
1036
1036
}
1037
1037
} ;
Original file line number Diff line number Diff line change @@ -930,10 +930,10 @@ fn ast_type_binding_to_poly_projection_predicate<'tcx>(
930
930
let br_name = match * br {
931
931
ty:: BrNamed ( _, name) => name,
932
932
_ => {
933
- this . tcx ( ) . sess . span_bug (
933
+ span_bug ! (
934
934
binding. span,
935
- & format ! ( "anonymous bound region {:?} in binding but not trait ref" ,
936
- br ) ) ;
935
+ "anonymous bound region {:?} in binding but not trait ref" ,
936
+ br ) ;
937
937
}
938
938
} ;
939
939
this. tcx ( ) . sess . add_lint (
@@ -1709,11 +1709,10 @@ pub fn ast_ty_to_ty<'tcx>(this: &AstConv<'tcx>,
1709
1709
let br_name = match * br {
1710
1710
ty:: BrNamed ( _, name) => name,
1711
1711
_ => {
1712
- this . tcx ( ) . sess . span_bug (
1712
+ span_bug ! (
1713
1713
bf. decl. output. span( ) ,
1714
- & format ! ( "anonymous bound region {:?} in \
1715
- return but not args",
1716
- br) ) ;
1714
+ "anonymous bound region {:?} in return but not args" ,
1715
+ br) ;
1717
1716
}
1718
1717
} ;
1719
1718
this. tcx ( ) . sess . add_lint (
You can’t perform that action at this time.
0 commit comments