File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 61
61
) ,
62
62
on(
63
63
_Self = "unsafe fn" ,
64
+ // SAFETY: tidy is not smart enough to tell that the below unsafe block is a string
64
65
note = "unsafe functions must be wrapped in closures: `|| unsafe {{ /* code */ }}`"
65
66
) ,
66
67
message = "expected a `{Fn}<{Args}>` closure, found `{Self}`" ,
@@ -145,6 +146,7 @@ pub trait Fn<Args>: FnMut<Args> {
145
146
) ,
146
147
on(
147
148
_Self = "unsafe fn" ,
149
+ // SAFETY: tidy is not smart enough to tell that the below unsafe block is a string
148
150
note = "unsafe functions must be wrapped in closures: `|| unsafe {{ /* code */ }}`"
149
151
) ,
150
152
message = "expected a `{FnMut}<{Args}>` closure, found `{Self}`" ,
@@ -221,6 +223,7 @@ pub trait FnMut<Args>: FnOnce<Args> {
221
223
) ,
222
224
on(
223
225
_Self = "unsafe fn" ,
226
+ // SAFETY: tidy is not smart enough to tell that the below unsafe block is a string
224
227
note = "unsafe functions must be wrapped in closures: `|| unsafe {{ /* code */ }}`"
225
228
) ,
226
229
message = "expected a `{FnOnce}<{Args}>` closure, found `{Self}`" ,
You can’t perform that action at this time.
0 commit comments