Skip to content

Commit afbab80

Browse files
Update rustdoc-ui test for --generate-link-to-definition option
1 parent d2177d9 commit afbab80

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/rustdoc-ui/generate-link-to-definition/generate-link-to-definition-opt.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
// option can only be used with HTML generation.
33

44
//@ compile-flags: -Zunstable-options --generate-link-to-definition --output-format json
5+
//@ check-pass
56

67
pub fn f() {}
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
error: --generate-link-to-definition option can only be used with HTML output format
1+
warning: `--generate-link-to-definition` option can only be used with HTML output format
2+
|
3+
= note: `--generate-link-to-definition` option will be ignored
24

0 commit comments

Comments
 (0)