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 {
377377 if let ast:: ItemKind :: Fn ( ref sig, ref generics, _) = i. kind {
378378 if let ast:: Unsafe :: Yes ( span) = sig. header . unsafety {
379379 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" )
381381 . emit ( ) ;
382382 return false ;
383383 }
384384 if let ast:: Async :: Yes { span, .. } = sig. header . asyncness {
385385 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" )
387387 . emit ( ) ;
388388 return false ;
389389 }
You can’t perform that action at this time.
0 commit comments