Skip to content

Commit bfb70a7

Browse files
committed
mention that know-bug test directive takes arguments
1 parent ab76257 commit bfb70a7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/tests/ui.md

+8
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,14 @@ reasons, including:
415415
can alert the developer so they know that the associated issue has been fixed
416416
and can possibly be closed.
417417

418+
This directive takes comma-separated issue numbers as arguments, or `"unknown"`:
419+
420+
- `//@ known-bug: #123, #456` (when the issue is on rust-lang/rust)
421+
- `//@ known-bug: rust-lang/chalk#123456`
422+
(allows arbitrary text before the `#`, which is useful when the issue is on another repo)
423+
- `//@ known-bug: unknown`
424+
(when there is no known issue yet; preferrably open one if it does not already exist)
425+
418426
Do not include [error annotations](#error-annotations) in a test with
419427
`known-bug`. The test should still include other normal directives and
420428
stdout/stderr files.

0 commit comments

Comments
 (0)