File tree 1 file changed +6
-7
lines changed
compiler/rustc_middle/src
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -274,29 +274,28 @@ pub fn explain_lint_level_source(
274
274
}
275
275
}
276
276
277
- pub fn struct_lint_level < ' s , ' d > (
278
- sess : & ' s Session ,
277
+ pub fn struct_lint_level (
278
+ sess : & Session ,
279
279
lint : & ' static Lint ,
280
280
level : Level ,
281
281
src : LintLevelSource ,
282
282
span : Option < MultiSpan > ,
283
283
msg : impl Into < DiagnosticMessage > ,
284
- decorate : impl ' d
285
- + for <' a , ' b > FnOnce (
284
+ decorate : impl for <' a , ' b > FnOnce (
286
285
& ' b mut DiagnosticBuilder < ' a , ( ) > ,
287
286
) -> & ' b mut DiagnosticBuilder < ' a , ( ) > ,
288
287
) {
289
288
// Avoid codegen bloat from monomorphization by immediately doing dyn dispatch of `decorate` to
290
289
// the "real" work.
291
- fn struct_lint_level_impl < ' s , ' d > (
292
- sess : & ' s Session ,
290
+ fn struct_lint_level_impl (
291
+ sess : & Session ,
293
292
lint : & ' static Lint ,
294
293
level : Level ,
295
294
src : LintLevelSource ,
296
295
span : Option < MultiSpan > ,
297
296
msg : impl Into < DiagnosticMessage > ,
298
297
decorate : Box <
299
- dyn ' d
298
+ dyn ' _
300
299
+ for <' a , ' b > FnOnce (
301
300
& ' b mut DiagnosticBuilder < ' a , ( ) > ,
302
301
) -> & ' b mut DiagnosticBuilder < ' a , ( ) > ,
You can’t perform that action at this time.
0 commit comments