From 75bf832ba063b5d738aa01ad116959cb3e563126 Mon Sep 17 00:00:00 2001 From: Jake Hughes Date: Fri, 8 Nov 2024 15:58:11 +0000 Subject: [PATCH] Update Rustdoc tests to reflect removal of ReferenceFree --- tests/rustdoc/auto-trait-bounds-by-associated-type-50159.rs | 2 +- tests/rustdoc/synthetic_auto/basic.rs | 2 +- tests/rustdoc/synthetic_auto/manual.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/rustdoc/auto-trait-bounds-by-associated-type-50159.rs b/tests/rustdoc/auto-trait-bounds-by-associated-type-50159.rs index bb47621ec966b..65cbdb665dc6c 100644 --- a/tests/rustdoc/auto-trait-bounds-by-associated-type-50159.rs +++ b/tests/rustdoc/auto-trait-bounds-by-associated-type-50159.rs @@ -20,7 +20,7 @@ where // @has - '//h3[@class="code-header"]' 'impl Send for Switchwhere ::Item: Send' // @has - '//h3[@class="code-header"]' 'impl Sync for Switchwhere ::Item: Sync' // @count - '//*[@id="implementations-list"]//*[@class="impl"]' 0 -// @count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 8 +// @count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 7 pub struct Switch { pub inner: ::Item2, } diff --git a/tests/rustdoc/synthetic_auto/basic.rs b/tests/rustdoc/synthetic_auto/basic.rs index 04ac56fcc304e..7014714b420c8 100644 --- a/tests/rustdoc/synthetic_auto/basic.rs +++ b/tests/rustdoc/synthetic_auto/basic.rs @@ -2,7 +2,7 @@ // @has - '//h3[@class="code-header"]' 'impl Send for Foowhere T: Send' // @has - '//h3[@class="code-header"]' 'impl Sync for Foowhere T: Sync' // @count - '//*[@id="implementations-list"]//*[@class="impl"]' 0 -// @count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 8 +// @count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 7 pub struct Foo { field: T, } diff --git a/tests/rustdoc/synthetic_auto/manual.rs b/tests/rustdoc/synthetic_auto/manual.rs index 6cec3c9cfc184..15d7851662aad 100644 --- a/tests/rustdoc/synthetic_auto/manual.rs +++ b/tests/rustdoc/synthetic_auto/manual.rs @@ -6,7 +6,7 @@ // 'impl Send for Foo' // // @count - '//*[@id="trait-implementations-list"]//*[@class="impl"]' 1 -// @count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 7 +// @count - '//*[@id="synthetic-implementations-list"]//*[@class="impl"]' 6 pub struct Foo { field: T, }