File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/librustc_builtin_macros Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -377,13 +377,13 @@ fn has_test_signature(cx: &ExtCtxt<'_>, i: &ast::Item) -> bool {
377
377
if let ast:: ItemKind :: Fn ( ref sig, ref generics, _) = i. kind {
378
378
if let ast:: Unsafe :: Yes ( span) = sig. header . unsafety {
379
379
sd. struct_span_err ( i. span , "unsafe functions cannot be used for tests" )
380
- . span_label ( span, "unsafe because of this" )
380
+ . span_label ( span, "` unsafe` because of this" )
381
381
. emit ( ) ;
382
382
return false ;
383
383
}
384
384
if let ast:: Async :: Yes { span, .. } = sig. header . asyncness {
385
385
sd. struct_span_err ( i. span , "async functions cannot be used for tests" )
386
- . span_label ( span, "async because of this" )
386
+ . span_label ( span, "` async` because of this" )
387
387
. emit ( ) ;
388
388
return false ;
389
389
}
You can’t perform that action at this time.
0 commit comments