Skip to content

Commit 89bdc33

Browse files
Update rustdoc tests
1 parent 1abb7fa commit 89bdc33

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustdoc/html/highlight/fixtures/sample.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<span class="macro">assert!</span>(<span class="self">self</span>.<span class="ident">length</span> <span class="op">&lt;</span> <span class="ident">N</span> <span class="op">&amp;&amp;</span> <span class="ident">index</span> <span class="op">&lt;</span><span class="op">=</span> <span class="self">self</span>.<span class="ident">length</span>);
2424
<span class="ident">::std::env::var</span>(<span class="string">&quot;gateau&quot;</span>).<span class="ident">is_ok</span>();
2525
<span class="attribute">#[<span class="ident">rustfmt::skip</span>]</span>
26-
<span class="kw">let</span> <span class="ident">s</span>:<span class="ident">std</span><span class="ident">::path::PathBuf</span> <span class="op">=</span> <span class="ident">std::path::PathBuf::new</span>();
26+
<span class="kw">let</span> <span class="ident">s</span>:<span class="ident">std::path::PathBuf</span> <span class="op">=</span> <span class="ident">std::path::PathBuf::new</span>();
2727
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">s</span> <span class="op">=</span> <span class="ident">String::new</span>();
2828

2929
<span class="kw">match</span> <span class="kw-2">&amp;</span><span class="ident">s</span> {

src/librustdoc/html/highlight/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fn test_html_highlighting() {
2222
let src = include_str!("fixtures/sample.rs");
2323
let html = {
2424
let mut out = Buffer::new();
25-
write_code(&mut out, src, Edition::Edition2018);
25+
write_code(&mut out, src, Edition::Edition2018, 0, None, "");
2626
format!("{}<pre><code>{}</code></pre>\n", STYLE, out.into_inner())
2727
};
2828
expect_file!["fixtures/sample.html"].assert_eq(&html);
@@ -36,7 +36,7 @@ fn test_dos_backline() {
3636
println!(\"foo\");\r\n\
3737
}\r\n";
3838
let mut html = Buffer::new();
39-
write_code(&mut html, src, Edition::Edition2018);
39+
write_code(&mut html, src, Edition::Edition2018, 0, None, "");
4040
expect_file!["fixtures/dos_line.html"].assert_eq(&html.into_inner());
4141
});
4242
}

0 commit comments

Comments
 (0)