We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--generate-link-to-definition
1 parent 53e87d2 commit d2177d9Copy full SHA for d2177d9
src/librustdoc/config.rs
@@ -733,9 +733,11 @@ impl Options {
733
let html_no_source = matches.opt_present("html-no-source");
734
735
if generate_link_to_definition && (show_coverage || output_format != OutputFormat::Html) {
736
- dcx.fatal(
737
- "--generate-link-to-definition option can only be used with HTML output format",
738
- );
+ dcx.struct_warn(
+ "`--generate-link-to-definition` option can only be used with HTML output format",
+ )
739
+ .with_note("`--generate-link-to-definition` option will be ignored")
740
+ .emit();
741
}
742
743
let scrape_examples_options = ScrapeExamplesOptions::new(matches, dcx);
0 commit comments