File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
compiler/rustc_middle/src Expand file tree Collapse file tree 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(
274274 }
275275}
276276
277- pub fn struct_lint_level < ' s , ' d > (
278- sess : & ' s Session ,
277+ pub fn struct_lint_level (
278+ sess : & Session ,
279279 lint : & ' static Lint ,
280280 level : Level ,
281281 src : LintLevelSource ,
282282 span : Option < MultiSpan > ,
283283 msg : impl Into < DiagnosticMessage > ,
284- decorate : impl ' d
285- + for <' a , ' b > FnOnce (
284+ decorate : impl for <' a , ' b > FnOnce (
286285 & ' b mut DiagnosticBuilder < ' a , ( ) > ,
287286 ) -> & ' b mut DiagnosticBuilder < ' a , ( ) > ,
288287) {
289288 // Avoid codegen bloat from monomorphization by immediately doing dyn dispatch of `decorate` to
290289 // the "real" work.
291- fn struct_lint_level_impl < ' s , ' d > (
292- sess : & ' s Session ,
290+ fn struct_lint_level_impl (
291+ sess : & Session ,
293292 lint : & ' static Lint ,
294293 level : Level ,
295294 src : LintLevelSource ,
296295 span : Option < MultiSpan > ,
297296 msg : impl Into < DiagnosticMessage > ,
298297 decorate : Box <
299- dyn ' d
298+ dyn ' _
300299 + for <' a , ' b > FnOnce (
301300 & ' b mut DiagnosticBuilder < ' a , ( ) > ,
302301 ) -> & ' b mut DiagnosticBuilder < ' a , ( ) > ,
You can’t perform that action at this time.
0 commit comments