Skip to content

Commit 959dc77

Browse files
committed
Remove unnecessary use of include! in rustdoc test
Using `include!` shouldn't affect the test. It was only added because: > I replicated how it was performed in libstd. Since it's the main > target of this fix, I thought it was the best way. <https://github.com/rust-lang/rust/pull/52827/files#r207647331> But it's unnecessary and adds unnecessary indirection.
1 parent ee58c06 commit 959dc77

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/test/rustdoc/primitive-generic-impl.rs

-7
This file was deleted.

src/test/rustdoc/primitive/primitive-generic-impl.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#![feature(rustdoc_internals)]
22

3-
// FIXME: this test doesn't test anything
3+
#![crate_name = "foo"]
4+
5+
// @has foo/primitive.i32.html '//div[@id="impl-ToString"]//h3[@class="code-header in-band"]' 'impl<T> ToString for T'
46

57
#[doc(primitive = "i32")]
68
/// Some useless docs, wouhou!

0 commit comments

Comments
 (0)