diff options
| author | Noah Lev <camelidcamel@gmail.com> | 2021-11-26 15:31:38 -0800 |
|---|---|---|
| committer | Noah Lev <camelidcamel@gmail.com> | 2021-11-28 11:49:12 -0800 |
| commit | 959dc77e6e3cd8eeba12cee775287477a04baf26 (patch) | |
| tree | 65e42434ac7686f0e16ab91f29bcbc17efbf466a | |
| parent | ee58c06a12fc74dbc553eb3d63281fd8d8cf4137 (diff) | |
| download | rust-959dc77e6e3cd8eeba12cee775287477a04baf26.tar.gz rust-959dc77e6e3cd8eeba12cee775287477a04baf26.zip | |
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.
| -rw-r--r-- | src/test/rustdoc/primitive-generic-impl.rs | 7 | ||||
| -rw-r--r-- | src/test/rustdoc/primitive/primitive-generic-impl.rs | 4 |
2 files changed, 3 insertions, 8 deletions
diff --git a/src/test/rustdoc/primitive-generic-impl.rs b/src/test/rustdoc/primitive-generic-impl.rs deleted file mode 100644 index bc689c6ed2f..00000000000 --- a/src/test/rustdoc/primitive-generic-impl.rs +++ /dev/null @@ -1,7 +0,0 @@ -#![feature(rustdoc_internals)] - -#![crate_name = "foo"] - -include!("primitive/primitive-generic-impl.rs"); - -// @has foo/primitive.i32.html '//div[@id="impl-ToString"]//h3[@class="code-header in-band"]' 'impl<T> ToString for T' diff --git a/src/test/rustdoc/primitive/primitive-generic-impl.rs b/src/test/rustdoc/primitive/primitive-generic-impl.rs index 63ea1d8e31c..f9737240c70 100644 --- a/src/test/rustdoc/primitive/primitive-generic-impl.rs +++ b/src/test/rustdoc/primitive/primitive-generic-impl.rs @@ -1,6 +1,8 @@ #![feature(rustdoc_internals)] -// FIXME: this test doesn't test anything +#![crate_name = "foo"] + +// @has foo/primitive.i32.html '//div[@id="impl-ToString"]//h3[@class="code-header in-band"]' 'impl<T> ToString for T' #[doc(primitive = "i32")] /// Some useless docs, wouhou! |
