From 5ab4d46e9ada163f7f6025500313d2b51c87f657 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sat, 27 Feb 2021 22:17:31 +0100 Subject: [PATCH] Update rustdoc test to make it work with newly added rustc passes --- src/test/rustdoc/implementor-stable-version.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/rustdoc/implementor-stable-version.rs b/src/test/rustdoc/implementor-stable-version.rs index 0a065d8095bf2..a1f3fd5a8c5af 100644 --- a/src/test/rustdoc/implementor-stable-version.rs +++ b/src/test/rustdoc/implementor-stable-version.rs @@ -1,3 +1,4 @@ +#![stable(feature = "bar", since = "OLD 1.0")] #![crate_name = "foo"] #![feature(staged_api)] @@ -8,6 +9,7 @@ pub trait Bar {} #[stable(feature = "baz", since = "OLD 1.0")] pub trait Baz {} +#[stable(feature = "baz", since = "OLD 1.0")] pub struct Foo; // @has foo/trait.Bar.html '//div[@id="implementors-list"]//span[@class="since"]' 'NEW 2.0'