forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#129050 - GuillaumeGomez:generate-link-to-de…
…finition-warning, r=notriddle Emit a warning instead of an error if `--generate-link-to-definition` is used with other output formats than HTML Fixes rust-lang/docs.rs#2581. It's a bit weird to emit an error in this case anyway, a warning is more than enough. r? `@notriddle`
- Loading branch information
Showing
5 changed files
with
9 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
tests/rustdoc-ui/generate-link-to-definition/generate-link-to-definition-opt.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
error: --generate-link-to-definition option can only be used with HTML output format | ||
warning: `--generate-link-to-definition` option can only be used with HTML output format | ||
| | ||
= note: `--generate-link-to-definition` option will be ignored | ||
|
6 changes: 0 additions & 6 deletions
6
tests/rustdoc-ui/generate-link-to-definition/generate-link-to-definition-opt2.rs
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
tests/rustdoc-ui/generate-link-to-definition/generate-link-to-definition-opt2.stderr
This file was deleted.
Oops, something went wrong.