diff options
| author | Will Crichton <wcrichto@cs.stanford.edu> | 2021-10-07 10:27:09 -0700 |
|---|---|---|
| committer | Will Crichton <wcrichto@cs.stanford.edu> | 2021-10-08 11:14:01 -0700 |
| commit | e22e8586877925c731e712f3116e53bdcccfffa7 (patch) | |
| tree | e057905ca960da50a1b36d75e5471332ee0c9907 /src/librustdoc/scrape_examples.rs | |
| parent | bb383edb69e2aaa718dc94147275053005d112e3 (diff) | |
| download | rust-e22e8586877925c731e712f3116e53bdcccfffa7.tar.gz rust-e22e8586877925c731e712f3116e53bdcccfffa7.zip | |
Move more scrape-examples logic from JS to rust
Fix failing test Add missing backslash Fix padding issue with horizontal scrollbar
Diffstat (limited to 'src/librustdoc/scrape_examples.rs')
| -rw-r--r-- | src/librustdoc/scrape_examples.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustdoc/scrape_examples.rs b/src/librustdoc/scrape_examples.rs index 3a8e5337f5b..c75a4244620 100644 --- a/src/librustdoc/scrape_examples.rs +++ b/src/librustdoc/scrape_examples.rs @@ -171,7 +171,7 @@ where let cx = &self.cx; let mk_call_data = || { let clean_span = crate::clean::types::Span::new(span); - let url = cx.href_from_span(clean_span).unwrap(); + let url = cx.href_from_span(clean_span, false).unwrap(); let display_name = file_path.display().to_string(); let edition = span.edition(); CallData { locations: Vec::new(), url, display_name, edition } @@ -233,6 +233,7 @@ crate fn run( Ok(()) } +// Note: the Handler must be passed in explicitly because sess isn't available while parsing options crate fn load_call_locations( with_examples: Vec<String>, diag: &rustc_errors::Handler, |
