We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3341c94 commit 27f6090Copy full SHA for 27f6090
src/librustc_builtin_macros/test.rs
@@ -377,13 +377,13 @@ fn has_test_signature(cx: &ExtCtxt<'_>, i: &ast::Item) -> bool {
377
if let ast::ItemKind::Fn(ref sig, ref generics, _) = i.kind {
378
if let ast::Unsafe::Yes(span) = sig.header.unsafety {
379
sd.struct_span_err(i.span, "unsafe functions cannot be used for tests")
380
- .span_label(span, "unsafe because of this")
+ .span_label(span, "`unsafe` because of this")
381
.emit();
382
return false;
383
}
384
if let ast::Async::Yes { span, .. } = sig.header.asyncness {
385
sd.struct_span_err(i.span, "async functions cannot be used for tests")
386
- .span_label(span, "async because of this")
+ .span_label(span, "`async` because of this")
387
388
389
0 commit comments