@@ -253,28 +253,28 @@ pub struct BorrowckCtxt<'a, 'tcx: 'a> {
253
253
used_mut_nodes : RefCell < FxHashSet < HirId > > ,
254
254
}
255
255
256
- impl < ' b , ' tcx : ' b > BorrowckErrors for BorrowckCtxt < ' b , ' tcx > {
257
- fn struct_span_err_with_code < ' a , S : Into < MultiSpan > > ( & ' a self ,
258
- sp : S ,
259
- msg : & str ,
260
- code : DiagnosticId )
261
- -> DiagnosticBuilder < ' a >
256
+ impl < ' a , ' b , ' tcx : ' b > BorrowckErrors < ' a > for & ' a BorrowckCtxt < ' b , ' tcx > {
257
+ fn struct_span_err_with_code < S : Into < MultiSpan > > ( self ,
258
+ sp : S ,
259
+ msg : & str ,
260
+ code : DiagnosticId )
261
+ -> DiagnosticBuilder < ' a >
262
262
{
263
263
self . tcx . sess . struct_span_err_with_code ( sp, msg, code)
264
264
}
265
265
266
- fn struct_span_err < ' a , S : Into < MultiSpan > > ( & ' a self ,
267
- sp : S ,
268
- msg : & str )
269
- -> DiagnosticBuilder < ' a >
266
+ fn struct_span_err < S : Into < MultiSpan > > ( self ,
267
+ sp : S ,
268
+ msg : & str )
269
+ -> DiagnosticBuilder < ' a >
270
270
{
271
271
self . tcx . sess . struct_span_err ( sp, msg)
272
272
}
273
273
274
- fn cancel_if_wrong_origin < ' a > ( & ' a self ,
275
- mut diag : DiagnosticBuilder < ' a > ,
276
- o : Origin )
277
- -> DiagnosticBuilder < ' a >
274
+ fn cancel_if_wrong_origin ( self ,
275
+ mut diag : DiagnosticBuilder < ' a > ,
276
+ o : Origin )
277
+ -> DiagnosticBuilder < ' a >
278
278
{
279
279
if !o. should_emit_errors ( self . tcx . borrowck_mode ( ) ) {
280
280
self . tcx . sess . diagnostic ( ) . cancel ( & mut diag) ;
0 commit comments