@@ -54,16 +54,16 @@ impl Origin {
54
54
55
55
pub trait BorrowckErrors < ' cx > {
56
56
fn struct_span_err_with_code < S : Into < MultiSpan > > ( self ,
57
- sp : S ,
58
- msg : & str ,
59
- code : DiagnosticId )
60
- -> DiagnosticBuilder < ' cx >
57
+ sp : S ,
58
+ msg : & str ,
59
+ code : DiagnosticId )
60
+ -> DiagnosticBuilder < ' cx >
61
61
where Self : Sized + Copy ;
62
62
63
63
fn struct_span_err < S : Into < MultiSpan > > ( self ,
64
- sp : S ,
65
- msg : & str )
66
- -> DiagnosticBuilder < ' cx >
64
+ sp : S ,
65
+ msg : & str )
66
+ -> DiagnosticBuilder < ' cx >
67
67
where Self : Sized + Copy ;
68
68
69
69
/// Cancels the given error if we shouldn't emit errors for a given
@@ -72,9 +72,9 @@ pub trait BorrowckErrors<'cx> {
72
72
/// Always make sure that the error gets passed through this function
73
73
/// before you return it.
74
74
fn cancel_if_wrong_origin ( self ,
75
- diag : DiagnosticBuilder < ' cx > ,
76
- o : Origin )
77
- -> DiagnosticBuilder < ' cx >
75
+ diag : DiagnosticBuilder < ' cx > ,
76
+ o : Origin )
77
+ -> DiagnosticBuilder < ' cx >
78
78
where Self : Sized + Copy ;
79
79
80
80
fn cannot_move_when_borrowed ( self , span : Span , desc : & str , o : Origin )
0 commit comments