Skip to content

Commit 27f6090

Browse files
committed
rustc_bulltin_macros: tweak span_labels
1 parent 3341c94 commit 27f6090

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/librustc_builtin_macros/test.rs

+2-2
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)