From 28596ade7169abd483410b22a4bd8703c4ccc8f7 Mon Sep 17 00:00:00 2001 From: Philip Munksgaard Date: Fri, 5 Oct 2018 23:28:08 +0200 Subject: [PATCH] Fix empty-section.rs test The Auto Trait Implementation section is not wrapped in a `synthetic-implementations` class. In fact, it is wrapped in a `synthetic-implementations` id. However, we can generalize and completely remove the `synthetic-implementations` requirement. We just have to verify that there's no mention of "Auto Trait Implementations" anywhere. --- src/test/rustdoc/empty-section.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/rustdoc/empty-section.rs b/src/test/rustdoc/empty-section.rs index 3748313593fc..11a027a13f7e 100644 --- a/src/test/rustdoc/empty-section.rs +++ b/src/test/rustdoc/empty-section.rs @@ -15,6 +15,6 @@ pub struct Foo; // @has foo/struct.Foo.html -// @!has - '//*[@class="synthetic-implementations"]' 'Auto Trait Implementations' +// @!has - 'Auto Trait Implementations' impl !Send for Foo {} impl !Sync for Foo {}