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