diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-07-21 13:35:29 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-07-22 21:03:21 +0200 |
| commit | d64c2ac01a831d9936d155fd38eaa53ffe672893 (patch) | |
| tree | 788ee871000e5b4f9a87b5fe67c6e1c7a19de444 /src/test | |
| parent | 6b830ec23e25f3e325e97fc49b0bec9a7f2a5b53 (diff) | |
| download | rust-d64c2ac01a831d9936d155fd38eaa53ffe672893.tar.gz rust-d64c2ac01a831d9936d155fd38eaa53ffe672893.zip | |
Improve code
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/rustdoc/generic-impl.rs | 2 | ||||
| -rw-r--r-- | src/test/rustdoc/synthetic_auto/basic.rs | 2 | ||||
| -rw-r--r-- | src/test/rustdoc/synthetic_auto/manual.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/test/rustdoc/generic-impl.rs b/src/test/rustdoc/generic-impl.rs index 68277835d2b..e69a3277d7f 100644 --- a/src/test/rustdoc/generic-impl.rs +++ b/src/test/rustdoc/generic-impl.rs @@ -12,7 +12,7 @@ use std::fmt; -// @!has foo/struct.Bar.html 'impl<T> ToString for Bar' +// @!has foo/struct.Bar.html '//h3[@id="impl-ToString"]//code' 'impl<T> ToString for Bar' pub struct Bar; // @has foo/struct.Foo.html '//h3[@id="impl-ToString"]//code' 'impl<T> ToString for Foo' diff --git a/src/test/rustdoc/synthetic_auto/basic.rs b/src/test/rustdoc/synthetic_auto/basic.rs index 200747bf6cd..f9a6c2607cd 100644 --- a/src/test/rustdoc/synthetic_auto/basic.rs +++ b/src/test/rustdoc/synthetic_auto/basic.rs @@ -12,7 +12,7 @@ // @has - '//code' 'impl<T> Send for Foo<T> where T: Send' // @has - '//code' 'impl<T> Sync for Foo<T> where T: Sync' // @count - '//*[@id="implementations-list"]/*[@class="impl"]' 0 -// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 11 +// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 9 pub struct Foo<T> { field: T, } diff --git a/src/test/rustdoc/synthetic_auto/manual.rs b/src/test/rustdoc/synthetic_auto/manual.rs index 461b922e28e..8c7f9d8cc65 100644 --- a/src/test/rustdoc/synthetic_auto/manual.rs +++ b/src/test/rustdoc/synthetic_auto/manual.rs @@ -16,7 +16,7 @@ // 'impl<T> Send for Foo<T>' // // @count - '//*[@id="implementations-list"]/*[@class="impl"]' 1 -// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 10 +// @count - '//*[@id="synthetic-implementations-list"]/*[@class="impl"]' 8 pub struct Foo<T> { field: T, } |
