about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc_builtin_macros/test.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_builtin_macros/test.rs b/src/librustc_builtin_macros/test.rs
index a246e114953..02a0bc00c11 100644
--- a/src/librustc_builtin_macros/test.rs
+++ b/src/librustc_builtin_macros/test.rs
@@ -377,13 +377,13 @@ fn has_test_signature(cx: &ExtCtxt<'_>, i: &ast::Item) -> bool {
     if let ast::ItemKind::Fn(ref sig, ref generics, _) = i.kind {
         if let ast::Unsafe::Yes(span) = sig.header.unsafety {
             sd.struct_span_err(i.span, "unsafe functions cannot be used for tests")
-                .span_label(span, "unsafe because of this")
+                .span_label(span, "`unsafe` because of this")
                 .emit();
             return false;
         }
         if let ast::Async::Yes { span, .. } = sig.header.asyncness {
             sd.struct_span_err(i.span, "async functions cannot be used for tests")
-                .span_label(span, "async because of this")
+                .span_label(span, "`async` because of this")
                 .emit();
             return false;
         }